package init
This commit is contained in:
parent
932391c32d
commit
c655a2d095
BIN
jwnl-1.4-rc3.tar.xz
Normal file
BIN
jwnl-1.4-rc3.tar.xz
Normal file
Binary file not shown.
53
jwnl.spec
Normal file
53
jwnl.spec
Normal 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
|
||||||
Loading…
x
Reference in New Issue
Block a user