54 lines
1.7 KiB
RPMSpec
54 lines
1.7 KiB
RPMSpec
%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
|