From 684a08a182e94c9f2e50b38d13180bbee4ed38d86f866b53f662b024c99e985a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Sat, 4 May 2024 00:03:25 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main regexp revision d557e523025d5a329ee438562c645477 --- .gitattributes | 23 +++++++++++ jakarta-regexp-1.5.tar.gz | 3 ++ regexp-1.5.pom | 6 +++ regexp.changes | 81 +++++++++++++++++++++++++++++++++++++++ regexp.spec | 79 ++++++++++++++++++++++++++++++++++++++ 5 files changed, 192 insertions(+) create mode 100644 .gitattributes create mode 100644 jakarta-regexp-1.5.tar.gz create mode 100644 regexp-1.5.pom create mode 100644 regexp.changes create mode 100644 regexp.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/jakarta-regexp-1.5.tar.gz b/jakarta-regexp-1.5.tar.gz new file mode 100644 index 0000000..6840732 --- /dev/null +++ b/jakarta-regexp-1.5.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:79e80af8cbeb68ddad75a1aa6244d7acd62176bfd69bcdc0640d11177dcde97d +size 170142 diff --git a/regexp-1.5.pom b/regexp-1.5.pom new file mode 100644 index 0000000..ec0ec70 --- /dev/null +++ b/regexp-1.5.pom @@ -0,0 +1,6 @@ + + 4.0.0 + regexp + regexp + 1.5 + diff --git a/regexp.changes b/regexp.changes new file mode 100644 index 0000000..edcb130 --- /dev/null +++ b/regexp.changes @@ -0,0 +1,81 @@ +------------------------------------------------------------------- +Fri Mar 18 16:43:40 UTC 2022 - Fridrich Strba + +- Build with source/target levels 8 + +------------------------------------------------------------------- +Thu Nov 15 10:23:30 UTC 2018 - Fridrich Strba + +- Add jakarta-regexp:jakarta-regexp alias to the maven artifact + +------------------------------------------------------------------- +Tue Oct 3 10:48:19 UTC 2017 - fstrba@suse.com + +- Don't depend on java-gcj-compat, since it is bound to go +- Specify java source and target level 1.6 + +------------------------------------------------------------------- +Fri May 19 11:22:28 UTC 2017 - dziolkowski@suse.com + +- New build dependency: javapackages-local +- spec cleaned using spec-cleaner + +------------------------------------------------------------------- +Wed Mar 18 09:46:19 UTC 2015 - tchvatal@suse.com + +- Fix build with new javapackages-tools + +------------------------------------------------------------------- +Mon Sep 9 11:06:18 UTC 2013 - tchvatal@suse.com + +- Move from jpackage-utils to javapackage-tools + +------------------------------------------------------------------- +Fri Aug 23 11:13:04 UTC 2013 - mvyskocil@suse.com + +- disable javadoc build + +------------------------------------------------------------------- +Mon Nov 8 09:57:25 UTC 2010 - mvyskocil@suse.cz + +- merge with regexp-1.5-1.jpp5.src.rpm +- update to 1.5 bugfix and optimization release + http://jakarta.apache.org/regexp/changes.html +- ignore also jaxp-1.3-apis + +------------------------------------------------------------------- +Sun Jul 27 13:32:47 CEST 2008 - coolo@suse.de + +- build with gcj to avoid bootstrapping problems with openjdk + +------------------------------------------------------------------- +Wed Sep 27 15:30:34 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:40 CET 2006 - mls@suse.de + +- converted neededforbuild to BuildRequires + +------------------------------------------------------------------- +Fri Jul 29 10:09:48 CEST 2005 - jsmeix@suse.de + +- Adjustments in the spec file. + +------------------------------------------------------------------- +Mon Jul 18 17:04:57 CEST 2005 - jsmeix@suse.de + +- Current version 1.3 from JPackage.org + +------------------------------------------------------------------- +Thu Sep 16 15:25:56 CEST 2004 - skh@suse.de + +- Fix prerequires of javadoc subpackage + +------------------------------------------------------------------- +Thu Sep 2 16:19:53 CEST 2004 - skh@suse.de + +- Initial package created with version 1.3 (JPackage 1.5) + diff --git a/regexp.spec b/regexp.spec new file mode 100644 index 0000000..dc1bf38 --- /dev/null +++ b/regexp.spec @@ -0,0 +1,79 @@ +# +# spec file for package regexp +# +# Copyright (c) 2022 SUSE LLC +# Copyright (c) 2000-2008, JPackage Project +# +# 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} +%define section free +Name: regexp +Version: 1.5 +Release: 0 +Summary: Simple regular expressions API +License: Apache-2.0 +Group: Development/Libraries/Java +URL: http://jakarta.apache.org/%{name}/ +Source0: http://www.apache.org/dist/jakarta/regexp/jakarta-regexp-%{version}.tar.gz +Source1: regexp-%{version}.pom +BuildRequires: ant +BuildRequires: ant >= 1.6 +BuildRequires: java-devel +BuildRequires: javapackages-local +BuildRequires: javapackages-tools +BuildRequires: xml-commons-apis-bootstrap +BuildRoot: %{_tmppath}/%{name}-%{version}-build +#!BuildIgnore: xml-commons-apis xml-commons-resolver xml-commons xerces-j2 +#!BuildIgnore: xml-commons-jaxp-1.3-apis +BuildArch: noarch + +%description +Regexp is a 100% Pure Java Regular Expression package that was +graciously donated to the Apache Software Foundation by Jonathan Locke. +He originally wrote this software back in 1996 and it has stood up +quite well to the test of time. It includes complete Javadoc +documentation as well as a simple Applet for visual debugging and +testing suite for compatibility. + +%prep +%setup -q -n %{full_name}-%{version} +# remove all binary libs +find . -type f -name "*.jar" | xargs -t rm + +%build +export OPT_JAR_LIST=: +export CLASSPATH= +mkdir lib +ant -Djakarta-site2.dir=. -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 jar + +%install +# jars +install -d -m 755 %{buildroot}%{_javadir} +install -m 644 build/*.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar +(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) +[ -d docs/api ] && rm -rf docs/api +# pom +mkdir -p %{buildroot}%{_mavenpomdir} +install -p -m 0644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom +%add_maven_depmap JPP-%{name}.pom %{name}.jar -a %{full_name}:%{full_name} + +%files +%defattr(0644,root,root,0755) +%doc LICENSE +%{_javadir}/*.jar +%{_mavenpomdir}/* +%{_datadir}/maven-metadata/%{name}.xml* + +%changelog