2022-03-19 12:45:44 +00:00
committed by Git OBS Bridge
parent 5b11d700d3
commit 7f61a44147
3 changed files with 2071 additions and 5 deletions

2053
oro-javadoc.patch Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,3 +1,11 @@
-------------------------------------------------------------------
Sat Mar 19 12:44:52 UTC 2022 - Fridrich Strba <fstrba@suse.com>
- Build with source/target levels 8
- Added patch:
* oro-javadoc.patch
+ fix javadoc errors that prevent the generation with jdk 17
-------------------------------------------------------------------
Thu Feb 14 08:46:56 UTC 2019 - Fridrich Strba <fstrba@suse.com>

View File

@@ -1,7 +1,7 @@
#
# spec file for package oro
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2022 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -23,11 +23,13 @@ Release: 0
Summary: Full regular expressions API
License: Apache-2.0
Group: Development/Libraries/Java
Url: http://jakarta.apache.org/oro/
Source0: http://archive.apache.org/dist/jakarta/oro/%{full_name}-%{version}.tar.gz
Source1: http://repo1.maven.org/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
URL: https://jakarta.apache.org/oro/
Source0: https://archive.apache.org/dist/jakarta/oro/%{full_name}-%{version}.tar.gz
Source1: https://repo1.maven.org/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
Patch0: oro-javadoc.patch
BuildRequires: ant
BuildRequires: fdupes
BuildRequires: java-devel >= 1.8
BuildRequires: javapackages-local
BuildRequires: xml-commons-apis
Provides: %{full_name} = %{version}-%{release}
@@ -54,15 +56,18 @@ Javadoc for %{name}.
%prep
%setup -q -n %{full_name}-%{version}
%patch0 -p1
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
# remove all CVS files
for dir in `find . -type d -name CVS`; do rm -rf $dir; done
for file in `find . -type f -name .cvsignore`; do rm -rf $file; done
perl -pi -e 's#\@version\@#VERSION#g' $(grep -rl \@version\@ . |xargs)
%build
ant \
-Dant.build.javac.source=1.6 -Dant.build.javac.target=1.6 \
-Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 \
-Dfinal.name=%{name} jar javadocs
%install