2004-09-09 11:29:25 +00:00
|
|
|
%define name regexp
|
|
|
|
%define full_name jakarta-%{name}
|
|
|
|
%define version 1.3
|
2004-11-01 10:30:50 +00:00
|
|
|
%define release 1jpp_3fc
|
2004-09-09 11:29:25 +00:00
|
|
|
%define section free
|
|
|
|
|
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
|
|
|
Release: %{release}
|
|
|
|
Epoch: 0
|
|
|
|
Summary: Simple regular expressions API
|
|
|
|
License: Apache Software License
|
|
|
|
Group: Development/Libraries/Java
|
2004-09-09 11:29:28 +00:00
|
|
|
#Distribution: JPackage
|
|
|
|
#Vendor: JPackage Project
|
2004-09-09 11:29:25 +00:00
|
|
|
Url: http://jakarta.apache.org/%{name}/
|
|
|
|
Source0: http://www.apache.org/dist/jakarta/regexp/jakarta-regexp-%{version}.tar.gz
|
|
|
|
BuildRequires: ant
|
|
|
|
BuildRequires: jpackage-utils >= 0:1.5
|
2004-11-04 14:29:12 +00:00
|
|
|
BuildRequires: xerces-j2, xml-commons-apis # XXX force beehive to play nice
|
2004-09-09 11:29:25 +00:00
|
|
|
Buildarch: noarch
|
|
|
|
Buildroot: %{_tmppath}/%{name}-%{version}-buildroot
|
2004-10-07 14:46:20 +00:00
|
|
|
# RHEL3 and FC2
|
|
|
|
Obsoletes: %{full_name} <= 0:1.2
|
2004-09-09 11:29:25 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
Group: Development/Java
|
|
|
|
Summary: Javadoc for %{name}
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
Javadoc for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%setup -n %{full_name}-%{version}
|
|
|
|
# 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
|
|
|
|
|
2004-09-09 11:29:38 +00:00
|
|
|
%pre
|
|
|
|
rm -f %{_javadir}/%{full_name}.jar
|
|
|
|
rm -f %{_javadir}/%{name}.jar
|
|
|
|
|
2004-09-09 11:29:25 +00:00
|
|
|
%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
|
2004-11-04 14:29:12 +00:00
|
|
|
* Thu Nov 4 2004 Gary Benson <gbenson@redhat.com> 0:1.3-1jpp_3fc
|
2004-10-12 14:24:47 +00:00
|
|
|
- Build into Fedora.
|
|
|
|
|
2004-09-09 11:29:38 +00:00
|
|
|
* Fri Mar 26 2004 Frank Ch. Eigler <fche@redhat.com> 0:1.3-1jpp_2rh
|
|
|
|
- add RHUG upgrade cleanup
|
|
|
|
|
2004-09-09 11:29:28 +00:00
|
|
|
* Thu Mar 3 2004 Frank Ch. Eigler <fche@redhat.com> 0:1.3-1jpp_1rh
|
|
|
|
- RH vacuuming
|
|
|
|
|
2004-09-09 11:29:25 +00:00
|
|
|
* Thu Oct 09 2003 Henri Gomez <hgomez at users.sourceforge.net> 0:1.3-1jpp
|
|
|
|
- regexp 1.3
|
|
|
|
|
|
|
|
* Fri May 09 2003 David Walluck <david@anti-microsoft.org> 0:1.2-14jpp
|
|
|
|
- update for JPackage 1.5
|
|
|
|
|
|
|
|
* Fri Mar 23 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org> 1.2-13jpp
|
|
|
|
- for jpackage-utils 1.5
|
|
|
|
|
|
|
|
* Tue Jul 02 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-11jpp
|
|
|
|
- section marcro
|
|
|
|
- removed additional symlink
|
|
|
|
|
|
|
|
* Mon Jun 24 2002 Henri Gomez <hgomez@slib.fr> 1.2-10jpp
|
|
|
|
- add official jakarta jarname (jakarta-regexp-1.2.jar) symlink to real
|
|
|
|
jarname
|
|
|
|
|
|
|
|
* Mon Jun 10 2002 Henri Gomez <hgomez@slib.fr> 1.2-9jpp
|
|
|
|
- use sed instead of bash 2.x extension in link area to make spec compatible
|
|
|
|
with distro using bash 1.1x
|
|
|
|
- use official tarball
|
|
|
|
|
|
|
|
* Fri Jan 18 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-8jpp
|
|
|
|
- versioned dir for javadoc
|
|
|
|
- no dependencies javadoc package
|
|
|
|
|
|
|
|
* Sat Dec 1 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-7jpp
|
|
|
|
- javadoc in javadoc package
|
|
|
|
- official summary
|
|
|
|
|
|
|
|
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 1.2-5jpp
|
|
|
|
- removed packager tag
|
|
|
|
- new jpp extension
|
|
|
|
|
|
|
|
* Sun Sep 30 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-5jpp
|
|
|
|
- first unified release
|
|
|
|
- s/jPackage/JPackage
|
|
|
|
|
|
|
|
* Sun Aug 26 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-4mdk
|
|
|
|
- vendor tag
|
|
|
|
- packager tag
|
|
|
|
- s/Copyright/License/
|
|
|
|
- truncated description to 72 columns in spec
|
|
|
|
- spec cleanup
|
|
|
|
- used versioned jar
|
|
|
|
- used new source packaging policy
|
|
|
|
|
|
|
|
* Sat Feb 17 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.2-3mdk
|
|
|
|
- spec cleanup
|
|
|
|
- changelog correction
|
|
|
|
|
|
|
|
* Sun Feb 04 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.2-2mdk
|
|
|
|
- merged with Henri Gomez <hgomez@slib.fr> specs:
|
|
|
|
- changed name to regexp
|
|
|
|
- changed javadir to /usr/share/java
|
|
|
|
- dropped jdk & jre requirement
|
|
|
|
- added Jikes support
|
|
|
|
- changed jar name to regexp.jar
|
|
|
|
- corrected doc
|
|
|
|
|
|
|
|
* Sun Jan 14 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.2-1mdk
|
|
|
|
- first Mandrake release
|