From 0884f5726d441e56de9a467ea896f19bae533ce93bd47138a448a36d663180cf Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Sun, 29 Sep 2024 20:33:51 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/Java:packages/regexp?expand=0&rev=23 --- .gitattributes | 23 +++++++++++ .gitignore | 1 + jakarta-regexp-1.5.tar.gz | 3 ++ regexp-1.5.pom | 6 +++ regexp.changes | 81 +++++++++++++++++++++++++++++++++++++++ regexp.spec | 71 ++++++++++++++++++++++++++++++++++ 6 files changed, 185 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore 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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc 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..f19549e --- /dev/null +++ b/regexp.spec @@ -0,0 +1,71 @@ +# +# spec file for package regexp +# +# Copyright (c) 2024 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} +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 >= 1.6 +BuildRequires: java-devel +BuildRequires: javapackages-local >= 6 +BuildRequires: xml-commons-apis-bootstrap +#!BuildIgnore: xerces-j2 +#!BuildIgnore: xml-commons +#!BuildIgnore: xml-commons-apis +#!BuildIgnore: xml-commons-jaxp-1.3-apis +#!BuildIgnore: xml-commons-resolver +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 +mkdir lib +ant -Djakarta-site2.dir=. -Dant.build.javac.source=1.8 -Dant.build.javac.target=1.8 jar + +%install +# jars +install -dm 0755 %{buildroot}%{_javadir} +install -pm 0644 build/*.jar %{buildroot}%{_javadir}/%{name}.jar +[ -d docs/api ] && rm -rf docs/api +# pom +mkdir -p %{buildroot}%{_mavenpomdir} +%{mvn_install_pom} %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom +%add_maven_depmap JPP-%{name}.pom %{name}.jar -a %{full_name}:%{full_name} + +%files -f .mfiles +%license LICENSE + +%changelog