Skip to content

Commit 3ef876f

Browse files
oro: Build error fix (microsoft#12676)
Co-authored-by: Sandeep Karambelkar <[email protected]>
1 parent f9b357d commit 3ef876f

File tree

3 files changed

+19
-8
lines changed

3 files changed

+19
-8
lines changed

SPECS-EXTENDED/oro/oro.signatures.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
"jakarta-oro-2.0.8.tar.gz": "4c4f3c7c479994c3ce09f542d4fbdc03eed58a2d7f320d32f2baf238b5b6f566",
44
"oro-2.0.8.pom": "9aa9dfeb2e85e1d5e7932c87140697cecc2b0fadd933d679fd420a2e43831a82"
55
}
6-
}
6+
}

SPECS-EXTENDED/oro/oro.spec

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,14 @@ Distribution: Azure Linux
2121
%define full_name jakarta-%{name}
2222
Name: oro
2323
Version: 2.0.8
24-
Release: 297%{?dist}
24+
Release: 298%{?dist}
2525
Summary: Full regular expressions API
2626
License: Apache-2.0
2727
Group: 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+
3132
BuildRequires: ant
3233
BuildRequires: fdupes
3334
BuildRequires: javapackages-local-bootstrap
@@ -64,7 +65,7 @@ for file in `find . -type f -name .cvsignore`; do rm -rf $file; done
6465

6566
%build
6667
ant \
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
8081
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
8182
cp -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

cgmanifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15694,7 +15694,7 @@
1569415694
"other": {
1569515695
"name": "oro",
1569615696
"version": "2.0.8",
15697-
"downloadUrl": "http://archive.apache.org/dist/jakarta/oro/jakarta-oro-2.0.8.tar.gz"
15697+
"downloadUrl": "https://archive.apache.org/dist/jakarta/oro/source/jakarta-oro-2.0.8.tar.gz"
1569815698
}
1569915699
}
1570015700
},

0 commit comments

Comments
 (0)