From a679aa4b5e6669c4b93e3023cb6cadae261b669c4e6d33f94e85fb7bd2927e09 Mon Sep 17 00:00:00 2001 From: OBS User unknown Date: Mon, 15 Jan 2007 23:35:06 +0000 Subject: [PATCH] OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/regexp?expand=0&rev=1 --- .gitattributes | 23 ++++++++ .gitignore | 1 + jakarta-regexp-1.3.tar.gz | 3 + ready | 0 regexp-java14compat.patch | 14 +++++ regexp.changes | 31 +++++++++++ regexp.spec | 113 ++++++++++++++++++++++++++++++++++++++ 7 files changed, 185 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 jakarta-regexp-1.3.tar.gz create mode 100644 ready create mode 100644 regexp-java14compat.patch 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.3.tar.gz b/jakarta-regexp-1.3.tar.gz new file mode 100644 index 0000000..2420fd9 --- /dev/null +++ b/jakarta-regexp-1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:4cff646b26b258897bf0bafe64dfb6d1422611ecbfaf4787a78f2e042be1366e +size 127069 diff --git a/ready b/ready new file mode 100644 index 0000000..473a0f4 diff --git a/regexp-java14compat.patch b/regexp-java14compat.patch new file mode 100644 index 0000000..f92177d --- /dev/null +++ b/regexp-java14compat.patch @@ -0,0 +1,14 @@ +diff -Naur ../jakarta-regexp-1.3.orig/build.xml ./build.xml +--- ../jakarta-regexp-1.3.orig/build.xml 2003-09-02 20:56:46.000000000 +0200 ++++ ./build.xml 2006-09-27 15:26:20.000000000 +0200 +@@ -89,7 +89,9 @@ + excludes="**/package.html" + debug="${debug}" + deprecation="${deprecation}" +- optimize="${optimize}"/> ++ optimize="${optimize}" ++ source="1.4" ++ target="1.4" /> + + + diff --git a/regexp.changes b/regexp.changes new file mode 100644 index 0000000..8e7ee6d --- /dev/null +++ b/regexp.changes @@ -0,0 +1,31 @@ +------------------------------------------------------------------- +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..edfce73 --- /dev/null +++ b/regexp.spec @@ -0,0 +1,113 @@ +# +# spec file for package regexp (Version 1.3) +# +# Copyright (c) 2006 SUSE LINUX Products GmbH, Nuernberg, Germany. +# This file and all modifications and additions to the pristine +# package are under the same license as the package itself. +# +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +# norootforbuild +# icecream 0 + +Name: regexp +BuildRequires: ant java2-devel-packages xml-commons-apis +%define name regexp +%define full_name jakarta-%{name} +%define version 1.3 +%define release 2jpp +%define section free +Version: 1.3 +Release: 25 +Summary: Simple regular expressions API +License: Apache +Group: Development/Libraries/Java +URL: http://jakarta.apache.org/regexp/ +Source0: http://www.apache.org/dist/jakarta/regexp/jakarta-regexp-%{version}.tar.gz +Patch: %{name}-java14compat.patch +Buildarch: noarch +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%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. + + + +%package javadoc +PreReq: coreutils +Group: Development/Libraries/Java +Summary: Javadoc for regexp + +%description javadoc +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. + +This package contains the javadoc documentation for regexp. + + + +%prep +%setup -n %{full_name}-%{version} +%patch +# remove all binary libs +find . -name "*.jar" -exec rm -f {} \; + +%build +mkdir lib +ant -Djakarta-site2.dir=. jar javadocs + +%install +# jars +install -d -m 755 $RPM_BUILD_ROOT%{_javadir} +install -m 644 build/*.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar +(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done) +# javadoc +install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +cp -r docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} +rm -rf docs/api + +%clean +rm -rf $RPM_BUILD_ROOT + +%post javadoc +rm -f %{_javadocdir}/%{name} +ln -s %{name}-%{version} %{_javadocdir}/%{name} + +%postun javadoc +if [ "$1" = "0" ]; then + rm -f %{_javadocdir}/%{name} +fi + +%files +%defattr(0644,root,root,0755) +%doc LICENSE.txt +%{_javadir}/*.jar + +%files javadoc +%defattr(0644,root,root,0755) +%{_javadocdir}/%{name}-%{version} + +%changelog -n regexp +* Wed Sep 27 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 2006 - mls@suse.de +- converted neededforbuild to BuildRequires +* Fri Jul 29 2005 - jsmeix@suse.de +- Adjustments in the spec file. +* Mon Jul 18 2005 - jsmeix@suse.de +- Current version 1.3 from JPackage.org +* Thu Sep 16 2004 - skh@suse.de +- Fix prerequires of javadoc subpackage +* Thu Sep 02 2004 - skh@suse.de +- Initial package created with version 1.3 (JPackage 1.5)