diff --git a/jwnl-1.4-rc3.tar.xz b/jwnl-1.4-rc3.tar.xz new file mode 100644 index 0000000..69aa94a Binary files /dev/null and b/jwnl-1.4-rc3.tar.xz differ diff --git a/jwnl.spec b/jwnl.spec new file mode 100644 index 0000000..0afd40f --- /dev/null +++ b/jwnl.spec @@ -0,0 +1,53 @@ +%global namedreltag -rc3 +%global namedversion %{version}%{?namedreltag} +Name: jwnl +Version: 1.4 +Release: 1 +Summary: Java API for accessing the WordNet relational dictionary +License: BSD +URL: https://sourceforge.net/projects/jwordnet/ +# Source0: http://downloads.sourceforge.net/jwordnet/jwnl14-rc2.zip +# svn checkout svn://svn.code.sf.net/p/jwordnet/code/trunk/jwnl/ jwnl-1.4-rc3 +# tar cJf jwnl-1.4-rc3.tar.xz jwnl-1.4-rc3 +Source0: %{name}-%{namedversion}.tar.xz +BuildRequires: maven-local mvn(commons-logging:commons-logging) mvn(junit:junit) +BuildArch: noarch +%description +JWNL is a Java API for accessing the WordNet relational dictionary. +WordNet is widely used for developing NLP applications, and a Java +API such as JWNL will allow developers to more easily use Java for +building NLP applications. + +%package help +Summary: Javadoc for %{name} +Provides: %{name}-javadoc = %{version}-%{release} +Obsoletes: %{name}-javadoc < %{version}-%{release} +%description help +This package contains javadoc for %{name}. + +%prep +%setup -q -n %{name}-%{namedversion} +%pom_remove_plugin :maven-assembly-plugin +%pom_remove_plugin :maven-deploy-plugin +%pom_remove_plugin :maven-javadoc-plugin +%pom_remove_plugin :maven-source-plugin +sed -i 's/\r//' changes.txt doc/* +%mvn_file :%{name} %{name} +%mvn_alias %{name}: net.sf.jwordnet: + +%build +%mvn_build -- -Dproject.build.sourceEncoding=UTF-8 + +%install +%mvn_install + +%files -f .mfiles +%doc changes.txt doc/* +%license license.txt + +%files help -f .mfiles-javadoc +%license license.txt + +%changelog +* Sat Aug 22 2020 wangyue - 1.4-1 +- package init diff --git a/jwnl.yaml b/jwnl.yaml new file mode 100644 index 0000000..75db84d --- /dev/null +++ b/jwnl.yaml @@ -0,0 +1,4 @@ +version_control: svn +src_repo: https://svn.code.sf.net/p/jwordnet/code/trunkjwordnet-code +tag_prefix: "^v" +seperator: "."