Accepting request 1205255 from Java:packages

Spec file cleanup

OBS-URL: https://build.opensuse.org/request/show/1205255
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/j2objc-annotations?expand=0&rev=2
This commit is contained in:
Ana Guerrero 2024-10-02 19:35:49 +00:00 committed by Git OBS Bridge
commit 367a0feaf6
3 changed files with 1232 additions and 9 deletions

1229
LICENSE

File diff suppressed because it is too large Load Diff

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Oct 2 15:43:13 UTC 2024 - Fridrich Strba <fstrba@suse.com>
- Spec file cleanup
-------------------------------------------------------------------
Tue May 17 05:30:34 UTC 2022 - Fridrich Strba <fstrba@suse.com>

View File

@ -1,7 +1,7 @@
#
# spec file for package j2objc-annotations
#
# Copyright (c) 2022 SUSE LLC
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -28,7 +28,8 @@ Source1: https://raw.githubusercontent.com/google/j2objc/master/LICENSE
Source2: %{name}-build.xml
BuildRequires: ant
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8 javapackages-local
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local >= 6
BuildArch: noarch
%description
@ -58,7 +59,7 @@ install -d -m 0755 %{buildroot}%{_javadir}
install -p -m 0644 target/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
# pom
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
%{mvn_install_pom} pom.xml %{buildroot}%{_mavenpomdir}/%{name}.pom
%add_maven_depmap %{name}.pom %{name}.jar
# javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}