44 lines
1.1 KiB
RPMSpec
44 lines
1.1 KiB
RPMSpec
Name: evo-inflector
|
|
Version: 1.2.1
|
|
Release: 10
|
|
Summary: Implements English pluralization algorithm
|
|
License: ASL 2.0
|
|
URL: https://github.com/atteo/evo-inflector
|
|
Source0: https://github.com/atteo/evo-inflector/archive/%{version}.tar.gz
|
|
BuildRequires: mvn(org.apache.ant:ant) mvn(junit:junit) maven-local
|
|
BuildArch: noarch
|
|
%description
|
|
Evo Inflector implements English pluralization algorithm
|
|
based on Damian Conway's paper "An Algorithmic Approach to
|
|
English Pluralization".
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
%description javadoc
|
|
This package contains javadoc for %{name}.
|
|
|
|
%prep
|
|
%setup -q
|
|
find . -name "*.jar" -print -delete
|
|
find . -name "*.class" -print -delete
|
|
%pom_remove_parent
|
|
%pom_xpath_inject pom:project "<groupId>org.atteo</groupId>"
|
|
%mvn_file :%{name} %{name}
|
|
|
|
%build
|
|
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%doc README.md
|
|
%license LICENSE
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE
|
|
|
|
%changelog
|
|
* Mon Jul 27 2020 Anan Fu <fuanan3@huawei.com> - 1.2.1-10
|
|
- package init
|