Accepting request 1205279 from Java:packages

Spec file cleanup

OBS-URL: https://build.opensuse.org/request/show/1205279
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/plexus-interpolation?expand=0&rev=5
This commit is contained in:
Ana Guerrero 2024-10-02 19:36:06 +00:00 committed by Git OBS Bridge
commit 9e1b5aac67
2 changed files with 8 additions and 8 deletions

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Oct 2 15:58:55 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Spec file cleanup
-------------------------------------------------------------------
Thu Jun 13 17:09:48 UTC 2024 - Fridrich Strba <fstrba@suse.com>

View File

@ -28,7 +28,7 @@ Source0: https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{ver
Source1: %{name}-build.xml
BuildRequires: ant
BuildRequires: fdupes
BuildRequires: javapackages-local
BuildRequires: javapackages-local >= 6
BuildArch: noarch
%if %{with tests}
BuildRequires: ant-junit
@ -50,14 +50,9 @@ API documentation for %{name}.
%prep
%setup -q -n %{name}-%{name}-%{version}
cp %{SOURCE1} build.xml
%pom_remove_plugin :maven-release-plugin
%pom_remove_parent
%pom_xpath_inject "pom:project" "<groupId>org.codehaus.plexus</groupId>"
%build
%{ant} \
ant \
%if %{without tests}
-Dtest.skip=true \
%endif
@ -69,7 +64,7 @@ install -dm 0755 %{buildroot}%{_javadir}/plexus
install -pm 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/plexus/interpolation.jar
# pom
install -dm 0755 %{buildroot}%{_mavenpomdir}/plexus
install -pm 0644 pom.xml %{buildroot}%{_mavenpomdir}/plexus/interpolation.pom
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/plexus/interpolation.pom
%add_maven_depmap plexus/interpolation.pom plexus/interpolation.jar
# javadoc
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}