Package init

This commit is contained in:
lei_ju 2020-08-04 15:25:40 +08:00
parent 1fa3148635
commit 3f360a6422
3 changed files with 68 additions and 0 deletions

BIN
2.0.1.tar.gz Normal file

Binary file not shown.

63
morfologik-stemming.spec Normal file
View File

@ -0,0 +1,63 @@
Name: morfologik-stemming
Version: 2.0.1
Release: 1
Summary: Morfologik stemming library
License: BSD
URL: https://github.com/morfologik/morfologik-stemming
Source0: https://github.com/morfologik/morfologik-stemming/archive/%{version}.tar.gz
BuildRequires: maven-local mvn(com.beust:jcommander) mvn(com.carrotsearch:hppc)
BuildRequires: mvn(com.google.guava:guava) mvn(commons-cli:commons-cli)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
%if 0
# test deps
BuildRequires: mvn(com.carrotsearch:junit-benchmarks) mvn(org.hamcrest:hamcrest-core)
BuildRequires: mvn(junit:junit) mvn(org.easytesting:fest-assert-core:2.0M10)
%endif
BuildArch: noarch
%description
Morfologik provides high quality lemmatisation for the Polish language,
along with tools for building and using byte-based finite state automata.
%package javadoc
Summary: Javadoc for %{name}
%description javadoc
This package contains javadoc for %{name}.
%prep
%setup -q
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete
chmod 644 README.txt
for file in CHANGES.txt CONTRIBUTING.txt README.txt LICENSE.txt; do
sed -i.orig 's|\r||g' $file
touch -r $file.orig $file
rm $file.orig
done
%pom_add_dep org.hamcrest:hamcrest-core::test morfologik-tools
%pom_remove_plugin com.carrotsearch.randomizedtesting:junit4-maven-plugin
%pom_remove_plugin de.thetaphi:forbiddenapis
%pom_remove_plugin :maven-javadoc-plugin
%pom_xpath_set pom:addClasspath false morfologik-tools
%pom_remove_plugin :maven-assembly-plugin morfologik-tools
%pom_change_dep :morfologik-polish ::'${project.version}' morfologik-speller
%build
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8
%install
%mvn_install
%files -f .mfiles
%doc CHANGES.txt CONTRIBUTING.txt README.txt
%license LICENSE.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%changelog
* Wed Jul 29 2020 leiju <leiju4@huawei.com> - 2.0.1-1
- Package init

5
morfologik-stemming.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/morfologik/morfologik-stemming
version_control: github
src_repo: morfologik/morfologik-stemming
tag_prefix: "^"
seperator: "."