package init

This commit is contained in:
wang_yue111 2020-09-01 17:07:14 +08:00
parent 932391c32d
commit c655a2d095
3 changed files with 57 additions and 0 deletions

BIN
jwnl-1.4-rc3.tar.xz Normal file

Binary file not shown.

53
jwnl.spec Normal file
View File

@ -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 <wangyue92@huawei.com> - 1.4-1
- package init

4
jwnl.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: svn
src_repo: https://svn.code.sf.net/p/jwordnet/code/trunkjwordnet-code
tag_prefix: "^v"
seperator: "."