diff options
author | Rail Aliev <rail@i-rs.ru> | 2009-11-17 10:00:40 +0300 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2018-12-26 20:22:34 +0100 |
commit | 3e97f03f694b1804e6c31b1fd086ac7b84014456 (patch) | |
tree | 784fb36a7e6dcabbab04239b0adb190887a95ae5 | |
parent | 781e1fe64337af4712341611a88654670c43a67d (diff) |
Import Debian changes 1.2.2-1
morfologik-stemming (1.2.2-1) unstable; urgency=low
* Initial release. (Closes: #533882)
-rw-r--r-- | debian/README.source | 2 | ||||
-rw-r--r-- | debian/changelog | 5 | ||||
-rw-r--r-- | debian/compat | 1 | ||||
-rw-r--r-- | debian/control | 19 | ||||
-rw-r--r-- | debian/copyright | 44 | ||||
-rw-r--r-- | debian/patches/build.xml.diff | 142 | ||||
-rw-r--r-- | debian/patches/getOptionObject.diff | 50 | ||||
-rw-r--r-- | debian/patches/series | 2 | ||||
-rwxr-xr-x | debian/rules | 27 | ||||
-rw-r--r-- | debian/watch | 2 |
10 files changed, 294 insertions, 0 deletions
diff --git a/debian/README.source b/debian/README.source new file mode 100644 index 0000000..4d6f276 --- /dev/null +++ b/debian/README.source @@ -0,0 +1,2 @@ +This package uses quilt to manage all modifications to the upstream +source. See /usr/share/doc/quilt/README.source for details. diff --git a/debian/changelog b/debian/changelog new file mode 100644 index 0000000..1ef79a4 --- /dev/null +++ b/debian/changelog @@ -0,0 +1,5 @@ +morfologik-stemming (1.2.2-1) unstable; urgency=low + + * Initial release. (Closes: #533882) + + -- Rail Aliev <rail@i-rs.ru> Tue, 17 Nov 2009 10:00:40 +0300 diff --git a/debian/compat b/debian/compat new file mode 100644 index 0000000..7ed6ff8 --- /dev/null +++ b/debian/compat @@ -0,0 +1 @@ +5 diff --git a/debian/control b/debian/control new file mode 100644 index 0000000..8f087e5 --- /dev/null +++ b/debian/control @@ -0,0 +1,19 @@ +Source: morfologik-stemming +Section: java +Priority: optional +Maintainer: Rail Aliev <rail@i-rs.ru> +Build-Depends: cdbs, debhelper (>= 5), ant, quilt +Build-Depends-Indep: openjdk-6-jdk, locales, libcommons-cli-java, junit4 +Standards-Version: 3.8.3 +Vcs-Bzr: http://bzr.debian.org/users/rail-guest/morfologik-stemming/ +Vcs-Browser: http://bzr.debian.org/loggerhead/users/rail-guest/morfologik-stemming +Homepage: http://sourceforge.net/projects/morfologik + +Package: libmorfologik-stemming-java +Architecture: all +Depends: ${misc:Depends} +Description: Finite state automaton and stemming engine library + Java based morfologik-stemming library provides the following fatures: + - Finite state automaton traversal routines for Jan Daciuk's FSA package. + - A stemming engine for the Polish language built on top of FSA traversal. + The library may be used for other languages as well. diff --git a/debian/copyright b/debian/copyright new file mode 100644 index 0000000..161b0f2 --- /dev/null +++ b/debian/copyright @@ -0,0 +1,44 @@ +This package was debianized by Rail Aliev <rail@i-rs.ru> on +Sat, 20 Jun 2009 22:27:21 +0400 + +It was downloaded from http://sourceforge.net/projects/morfologik + +Upstream Authors: + + Marcin Miłkowski <milek_pl@o2.pl> + Dawid Weiss <dawid.weiss@cs.put.poznan.pl> + +Copyright: + + Copyright © 2006 Dawid Weiss. + Copyright © 2007 Morfologik project. + +The Debian packaging is © 2008, Rail Aliev <rail@i-rs.ru> and +is licensed under the GPL, see `/usr/share/common-licenses/GPL-3'. + +License: + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + * Neither the name of Morfologik nor the names of its contributors + may be used to endorse or promote products derived from this software + without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/debian/patches/build.xml.diff b/debian/patches/build.xml.diff new file mode 100644 index 0000000..23406b3 --- /dev/null +++ b/debian/patches/build.xml.diff @@ -0,0 +1,142 @@ +Description: Workaround for building the package using system jar files instead + of precompiled ones. +Forwarded: not-needed +Author: Rail Aliev <rail@i-rs.ru> + +--- a/build.xml ++++ b/build.xml +@@ -4,8 +4,8 @@ +
+ <property name="tmp.dir" value="tmp" />
+ <property name="build.dir" value="${tmp.dir}/build" />
+- <property name="build.test.dir" value="${tmp.dir}/test" />
+ <property name="dist.dir" value="dist" />
++ <property name="ext.commons.cli.lib" value="/usr/share/java/commons-cli.jar" />
+
+ <property name="jarfile-nodict" value="${tmp.dir}/bin/${build.name}-nodict-${build.ver}.jar" />
+ <property name="jarfile" value="${tmp.dir}/bin/${build.name}-${build.ver}.jar" />
+@@ -14,22 +14,9 @@ + <property name="binzip" value="${dist.dir}/${build.name}-${build.ver}.zip" />
+
+
+- <path id="compile.classpath">
+- <fileset dir="lib">
+- <include name="**/*.jar" />
+- </fileset>
+- </path>
+-
+- <fileset dir="lib" id="runtime.dependencies">
+- <include name="**/*.jar" />
+- <exclude name="junit*.jar" />
+- </fileset>
+-
+-
+ <target name="init">
+ <tstamp />
+ <mkdir dir="${build.dir}" />
+- <mkdir dir="${build.test.dir}" />
+ <mkdir dir="${dist.dir}" />
+ </target>
+
+@@ -48,7 +35,6 @@ + <target name="compile" depends="init">
+ <javac classpath="${classpath}" destdir="${build.dir}" encoding="UTF-8"
+ source="1.5" target="1.5">
+- <classpath refid="compile.classpath" />
+ <include name="**/*.java" />
+ <src location="src" />
+ </javac>
+@@ -63,46 +49,8 @@ +
+
+
+- <target name="compile.test" depends="init,compile">
+- <javac classpath="${classpath}" destdir="${build.test.dir}" encoding="UTF-8">
+- <classpath refid="compile.classpath" />
+- <classpath location="${build.dir}" />
+-
+- <src location="src-test" />
+- </javac>
+-
+- <!-- Copy additional resources to the build folder. -->
+- <copy todir="${build.test.dir}">
+- <fileset dir="src-test">
+- <exclude name="**/*.java" />
+- </fileset>
+- </copy>
+- </target>
+-
+-
+-
+- <target name="test" depends="compile, compile.test">
+- <mkdir dir="${tmp.dir}/tests" />
+- <junit printsummary="yes" haltonfailure="yes">
+- <classpath refid="compile.classpath" />
+- <classpath location="${build.dir}" />
+- <classpath location="${build.test.dir}" />
+-
+- <formatter type="plain" />
+-
+- <batchtest todir="${tmp.dir}/tests">
+- <fileset dir="src-test">
+- <include name="**/*Test.java" />
+- </fileset>
+- </batchtest>
+- </junit>
+- </target>
+-
+-
+-
+ <target name="javadoc" depends="init">
+ <javadoc sourcepath="src" packagenames="morfologik.*" destdir="${tmp.dir}/javadoc">
+- <classpath refid="compile.classpath" />
+ </javadoc>
+ </target>
+
+@@ -113,19 +61,12 @@ +
+ <property name="main.class" value="morfologik.tools.Launcher" />
+
+- <pathconvert property="manifest.classpath" pathsep=" ">
+- <flattenmapper />
+- <path>
+- <fileset refid="runtime.dependencies" />
+- </path>
+- </pathconvert>
+-
+ <jar jarfile="${jarfile}">
+ <fileset dir="${build.dir}" />
+ <zipfileset file="LICENSE" fullpath="META-INF/Morfologik.LICENSE" />
+ <manifest>
+ <attribute name="Main-Class" value="${main.class}" />
+- <attribute name="Class-Path" value="${manifest.classpath}" />
++ <attribute name="Class-Path" value="file://${ext.commons.cli.lib}" />
+ </manifest>
+ </jar>
+
+@@ -136,7 +77,7 @@ + <zipfileset file="LICENSE" fullpath="META-INF/Morfologik.LICENSE" />
+ <manifest>
+ <attribute name="Main-Class" value="${main.class}" />
+- <attribute name="Class-Path" value="${manifest.classpath}" />
++ <attribute name="Class-Path" value="file://${ext.commons.cli.lib}" />
+ </manifest>
+ </jar>
+ </target>
+@@ -145,7 +86,6 @@ +
+ <target name="build" depends="jar">
+ <copy todir="${tmp.dir}/bin">
+- <fileset refid="runtime.dependencies" />
+ <fileset dir=".">
+ <include name="LICENSE*.txt" />
+ <include name="README.txt" />
+@@ -156,7 +96,7 @@ +
+
+
+- <target name="dist" depends="clean, test, build, javadoc, licenses">
++ <target name="dist" depends="clean, build, javadoc, licenses">
+ <!-- Package source distribution -->
+ <fileset dir="." id="srcdistfiles">
+ <exclude name="tmp/**" />
diff --git a/debian/patches/getOptionObject.diff b/debian/patches/getOptionObject.diff new file mode 100644 index 0000000..18b34ee --- /dev/null +++ b/debian/patches/getOptionObject.diff @@ -0,0 +1,50 @@ +Description: Workaround for building the package against the current version of + commons-cli +Forwarded: not-needed +Author: Rail Aliev <rail@i-rs.ru> + +--- a/src/morfologik/tools/DumpTool.java ++++ b/src/morfologik/tools/DumpTool.java +@@ -40,7 +40,7 @@ + */
+ protected void go(CommandLine line) throws Exception {
+ final File dictionaryFile = (File) line
+- .getParsedOptionValue(SharedOptions.fsaDictionaryFileOption
++ .getOptionObject(SharedOptions.fsaDictionaryFileOption
+ .getOpt());
+
+ dataOnly = line.hasOption(SharedOptions.dataOnly.getOpt());
+@@ -238,4 +238,4 @@ + final DumpTool fsaDump = new DumpTool();
+ fsaDump.go(args);
+ }
+-} +\ No newline at end of file ++}
+--- a/src/morfologik/tools/PolishStemmingTool.java ++++ b/src/morfologik/tools/PolishStemmingTool.java +@@ -139,7 +139,7 @@ + // Use output file.
+ output = new OutputStreamWriter(
+ new BufferedOutputStream(new FileOutputStream((File) line
+- .getParsedOptionValue(opt))), outputEncoding);
++ .getOptionObject(opt))), outputEncoding);
+ } else {
+ // Use standard output.
+ output = new OutputStreamWriter(System.out, outputEncoding);
+@@ -159,7 +159,7 @@ + // Use input file.
+ input = new InputStreamReader(
+ new BufferedInputStream(new FileInputStream((File) line
+- .getParsedOptionValue(opt))), inputEncoding);
++ .getOptionObject(opt))), inputEncoding);
+ } else {
+ // Use standard input.
+ input = new InputStreamReader(System.in, inputEncoding);
+@@ -185,4 +185,4 @@ + final PolishStemmingTool tool = new PolishStemmingTool();
+ tool.go(args);
+ }
+-} +\ No newline at end of file ++}
diff --git a/debian/patches/series b/debian/patches/series new file mode 100644 index 0000000..f13dc24 --- /dev/null +++ b/debian/patches/series @@ -0,0 +1,2 @@ +build.xml.diff +getOptionObject.diff diff --git a/debian/rules b/debian/rules new file mode 100755 index 0000000..c678276 --- /dev/null +++ b/debian/rules @@ -0,0 +1,27 @@ +#!/usr/bin/make -f +include /usr/share/cdbs/1/rules/debhelper.mk +include /usr/share/cdbs/1/rules/patchsys-quilt.mk +include /usr/share/cdbs/1/class/ant.mk + +JAVA_HOME := /usr/lib/jvm/java-6-openjdk +DEB_JARS := commons-cli junit4 +DEB_INSTALL_CHANGELOGS_ALL := CHANGES + +install/libmorfologik-stemming-java:: + install -m 644 -D tmp/bin/morfologik-stemming-nodict-$(DEB_UPSTREAM_VERSION).jar \ + $(CURDIR)/debian/$(cdbs_curpkg)/usr/share/java/morfologik-stemming-nodict-$(DEB_UPSTREAM_VERSION).jar + dh_link -p$(cdbs_curpkg) usr/share/java/morfologik-stemming-nodict-$(DEB_UPSTREAM_VERSION).jar \ + usr/share/java/morfologik-stemming-nodict.jar + +get-orig-source: + uscan --upstream-version $(DEB_UPSTREAM_VERSION) --force-download --destdir . && \ + unzip $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)-src.zip \ + -d $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) && \ + rm -rf $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)/lib && \ + rm -rf $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)/src-test && \ + rm -rf $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)/src/res && \ + rm -rf $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)/src/morfologik/dictionaries && \ + GZIP=--best tar czf $(DEB_SOURCE_PACKAGE)_$(DEB_UPSTREAM_VERSION).orig.tar.gz \ + $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) && \ + rm -rf $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION) \ + $(DEB_SOURCE_PACKAGE)-$(DEB_UPSTREAM_VERSION)-src.zip diff --git a/debian/watch b/debian/watch new file mode 100644 index 0000000..92dea4e --- /dev/null +++ b/debian/watch @@ -0,0 +1,2 @@ +version=3 +http://sf.net/morfologik/morfologik-stemming-(.+)-src\.zip |