Name:                language-detector
Version:             0.6
Release:             1
Summary:             Language Detection Library for Java
License:             ASL 2.0
URL:                 https://github.com/optimaize/language-detector
Source0:             https://github.com/optimaize/language-detector/archive/%{name}-%{version}.tar.gz
BuildRequires:       maven-local mvn(ch.qos.logback:logback-classic) mvn(com.google.guava:guava)
BuildRequires:       mvn(com.intellij:annotations) mvn(junit:junit) mvn(net.arnx:jsonic)
BuildRequires:       mvn(org.hamcrest:hamcrest-core) mvn(org.hamcrest:hamcrest-library)
BuildRequires:       mvn(org.mockito:mockito-all) mvn(org.slf4j:slf4j-api)
Provides:            bundled(langdetect) = 1.1-20120112
BuildArch:           noarch
%description
A language detector / language guesser library in Java.

%package javadoc
Summary:             Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :maven-dependency-plugin
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin
%pom_change_dep :junit-dep :junit
%mvn_file com.optimaize.languagedetector:%{name} %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE

%changelog
* Tue Jan 18 2022 SimpleUpdate Robot <tc@openeuler.org> - 0.6-1
- Upgrade to version 0.6

* Mon Aug 24 2020 wangyue <wangyue92@huawei.com> - 0.5-1
- package init
