Fridrich Strba 2024-09-24 14:03:04 +00:00 committed by Git OBS Bridge
parent da31fb9526
commit beefb642e2

View File

@ -25,7 +25,7 @@ URL: https://opennlp.sourceforge.net
Source0: https://repo1.maven.org/maven2/edu/washington/cs/knowitall/%{name}/%{version}/%{name}-%{version}-sources.jar
Source1: http://www.apache.org/licenses/LICENSE-2.0.txt
BuildRequires: java-devel
BuildRequires: javapackages-local
BuildRequires: javapackages-local >= 6
BuildRequires: unzip
BuildArch: noarch
@ -35,7 +35,6 @@ Stock OpenNLP chunker models trained on conll2000 shared task data.
%prep
%setup -q -c
cp %{SOURCE1} LICENSE
%pom_remove_parent
%build
jar --create --verbose \
@ -50,7 +49,7 @@ install -dm 0755 %{buildroot}%{_javadir}/%{name}
install -pm 0644 %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
# pom
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar
%files -f .mfiles