@@ -21,13 +21,14 @@ Distribution: Azure Linux
2121%define full_name jakarta-%{name }
2222Name: oro
2323Version: 2.0.8
24- Release: 297 %{?dist }
24+ Release: 298 %{?dist }
2525Summary: Full regular expressions API
2626License: Apache-2.0
2727Group: Development/Libraries/Java
28- Url: http://jakarta.apache.org/oro/
29- Source0: http://archive.apache.org/dist/jakarta/oro/%{full_name }-%{version }.tar.gz
30- Source1: http://repo1.maven.org/maven2/%{name }/%{name }/%{version }/%{name }-%{version }.pom
28+ Url: https://jakarta.apache.org/oro/
29+ Source0: https://archive.apache.org/dist/jakarta/oro/source/%{full_name }-%{version }.tar.gz
30+ Source1: https://repo1.maven.org/maven2/%{name }/%{name }/%{version }/%{name }-%{version }.pom
31+
3132BuildRequires: ant
3233BuildRequires: fdupes
3334BuildRequires: javapackages-local -bootstrap
@@ -64,7 +65,7 @@ for file in `find . -type f -name .cvsignore`; do rm -rf $file; done
6465
6566%build
6667ant \
67- -Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \
68+ -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 \
6869 -Dfinal.name=%{name } jar javadocs
6970
7071%install
@@ -79,18 +80,28 @@ install -pm 0644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}.pom
7980# javadoc
8081install -dm 0755 %{buildroot }%{_javadocdir }/%{name }
8182cp -pr docs/api/* %{buildroot }%{_javadocdir }/%{name }/
83+ mv %{buildroot }%{_javadocdir }/%{name }/legal/ADDITIONAL_LICENSE_INFO .
8284%fdupes %{buildroot }%{_javadocdir }
8385
86+ # Remove LICENSE from javadoc directory to avoid duplicate license warning
87+ rm -f %{buildroot }%{_javadocdir }/%{name }/legal/LICENSE
88+
8489%files -f .mfiles
8590%doc COMPILE ISSUES README TODO CHANGES CONTRIBUTORS STYLE
8691%license LICENSE
92+ %license ADDITIONAL_LICENSE_INFO
8793%{_javadir }/%{full_name }.jar
8894
8995%files javadoc
90- %license LICENSE
9196%{_javadocdir }/%{name }
9297
9398%changelog
99+ *
Fri Feb 28 2025 Durga Jagadeesh Palli <[email protected] > -
2.0.8-298 100+ - Build error fix, bump up the java source version from 1.6 to 1.8.
101+ - Fixed duplicate LICENSE warning
102+ - Marked extra legal files as documentation
103+ - License verified
104+
94105*
Thu Oct 14 2021 Pawel Winogrodzki <[email protected] > -
2.0.8-297 95106- Converting the 'Release' tag to the '[number].[distribution]' format.
96107
0 commit comments