From a2aba978235f3c78612d2ed1f8e17eea278cc9e1b71ca00129518c21b891caab Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sun, 29 Sep 2024 20:57:55 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/oro?expand=0&rev=26 --- .gitattributes | 23 ++++++++++ .gitignore | 1 + jakarta-oro-2.0.8.tar.gz | 3 ++ oro-2.0.8.pom | 6 +++ oro.changes | 66 ++++++++++++++++++++++++++++ oro.spec | 93 ++++++++++++++++++++++++++++++++++++++++ 6 files changed, 192 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 jakarta-oro-2.0.8.tar.gz create mode 100644 oro-2.0.8.pom create mode 100644 oro.changes create mode 100644 oro.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/jakarta-oro-2.0.8.tar.gz b/jakarta-oro-2.0.8.tar.gz new file mode 100644 index 0000000..856f014 --- /dev/null +++ b/jakarta-oro-2.0.8.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4c4f3c7c479994c3ce09f542d4fbdc03eed58a2d7f320d32f2baf238b5b6f566 +size 345304 diff --git a/oro-2.0.8.pom b/oro-2.0.8.pom new file mode 100644 index 0000000..5640525 --- /dev/null +++ b/oro-2.0.8.pom @@ -0,0 +1,6 @@ + + 4.0.0 + oro + oro + 2.0.8 + \ No newline at end of file diff --git a/oro.changes b/oro.changes new file mode 100644 index 0000000..4f36a0a --- /dev/null +++ b/oro.changes @@ -0,0 +1,66 @@ +------------------------------------------------------------------- +Sat Mar 19 12:44:52 UTC 2022 - Fridrich Strba + +- Build with source/target levels 8 + +------------------------------------------------------------------- +Thu Feb 14 08:46:56 UTC 2019 - Fridrich Strba + +- Add the maven pom file +- Build and distribute the api documentation too + +------------------------------------------------------------------- +Sun Sep 10 07:06:34 UTC 2017 - fstrba@suse.com + +- Specify java source and target level 1.6 in order to allow + building with jdk9 + +------------------------------------------------------------------- +Fri Jun 9 10:22:50 UTC 2017 - tchvatal@suse.com + +- Drop javadoc so we can bootstrap using gcj + +------------------------------------------------------------------- +Sat May 20 18:16:52 UTC 2017 - tchvatal@suse.com + +- Do not require dead package + +------------------------------------------------------------------- +Fri Jun 27 12:01:25 UTC 2014 - tchvatal@suse.com + +- Cleanup with spec-cleaner +- Add support for SLE11 again. + +------------------------------------------------------------------- +Tue Mar 30 11:34:33 UTC 2010 - mvyskocil@suse.cz + +- remove source 1.4 from build +- provide jakarta-oro symbols and jars to ensure compatibility with + jpackage.org + +------------------------------------------------------------------- +Tue Sep 26 12:17:45 CEST 2006 - skh@suse.de + +- don't use icecream +- use source="1.4" and target="1.4" for build with java 1.5 + +------------------------------------------------------------------- +Wed Jan 25 21:47:21 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Thu Jul 28 17:39:08 CEST 2005 - jsmeix@suse.de + +- Adjustments in the spec file. + +------------------------------------------------------------------- +Mon Jul 18 16:59:12 CEST 2005 - jsmeix@suse.de + +- Current version 2.0.8 from JPackage.org + +------------------------------------------------------------------- +Thu Sep 2 16:45:58 CEST 2004 - skh@suse.de + +- Initial package created with version 2.08 (JPackage 1.5) + diff --git a/oro.spec b/oro.spec new file mode 100644 index 0000000..2cdc17b --- /dev/null +++ b/oro.spec @@ -0,0 +1,93 @@ +# +# spec file for package oro +# +# 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 +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%define full_name jakarta-%{name} +Name: oro +Version: 2.0.8 +Release: 0 +Summary: Full regular expressions API +License: Apache-2.0 +Group: Development/Libraries/Java +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 +BuildRequires: ant +BuildRequires: fdupes +BuildRequires: java-devel >= 1.8 +BuildRequires: javapackages-local +BuildRequires: xml-commons-apis +Provides: %{full_name} = %{version}-%{release} +BuildArch: noarch + +%description +The Jakarta-ORO Java classes are a set of text-processing Java classes +that provide Perl5 compatible regular expressions, AWK-like regular +expressions, glob expressions, and utility classes for performing +substitutions, splits, filtering filenames, etc. This library is the +successor to the OROMatcher, AwkTools, PerlTools, and TextTools +libraries from ORO, Inc. (www.oroinc.com). They have been donated to +the Jakarta Project by Daniel Savarese (www.savarese.org), the +copyright holder of the ORO libraries. Daniel will continue to +participate in their development under the Jakarta Project. + +%package javadoc +Summary: Javadoc for %{name} +Group: Development/Libraries/Java + +%description javadoc +Javadoc for %{name}. + +%prep +%setup -q -n %{full_name}-%{version} +# 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.8 -Dant.build.javac.target=1.8 \ + -Dfinal.name=%{name} jar javadocs + +%install +# jar +install -dm 0755 %{buildroot}%{_javadir} +install -pm 0644 %{name}.jar %{buildroot}%{_javadir}/ +ln -sf %{name}.jar %{buildroot}%{_javadir}/%{full_name}.jar +# pom +install -dm 0755 %{buildroot}%{_mavenpomdir} +%{mvn_install_pom} %{SOURCE1} %{buildroot}%{_mavenpomdir}/%{name}.pom +%add_maven_depmap %{name}.pom %{name}.jar +# javadoc +install -dm 0755 %{buildroot}%{_javadocdir}/%{name} +cp -pr docs/api/* %{buildroot}%{_javadocdir}/%{name}/ +%fdupes %{buildroot}%{_javadocdir} + +%files -f .mfiles +%doc COMPILE ISSUES README TODO CHANGES CONTRIBUTORS STYLE +%license LICENSE +%{_javadir}/%{full_name}.jar + +%files javadoc +%license LICENSE +%{_javadocdir}/%{name} + +%changelog