Vivek Lakshmanan 9ff73df
# Copyright (c) 2000-2005, JPackage Project
Vivek Lakshmanan 9ff73df
# All rights reserved.
Vivek Lakshmanan 9ff73df
#
Vivek Lakshmanan 9ff73df
# Redistribution and use in source and binary forms, with or without
Vivek Lakshmanan 9ff73df
# modification, are permitted provided that the following conditions
Vivek Lakshmanan 9ff73df
# are met:
Vivek Lakshmanan 9ff73df
#
Vivek Lakshmanan 9ff73df
# 1. Redistributions of source code must retain the above copyright
Vivek Lakshmanan 9ff73df
#    notice, this list of conditions and the following disclaimer.
Vivek Lakshmanan 9ff73df
# 2. Redistributions in binary form must reproduce the above copyright
Vivek Lakshmanan 9ff73df
#    notice, this list of conditions and the following disclaimer in the
Vivek Lakshmanan 9ff73df
#    documentation and/or other materials provided with the
Vivek Lakshmanan 9ff73df
#    distribution.
Vivek Lakshmanan 9ff73df
# 3. Neither the name of the JPackage Project nor the names of its
Vivek Lakshmanan 9ff73df
#    contributors may be used to endorse or promote products derived
Vivek Lakshmanan 9ff73df
#    from this software without specific prior written permission.
Vivek Lakshmanan 9ff73df
#
Vivek Lakshmanan 9ff73df
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
Vivek Lakshmanan 9ff73df
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
Vivek Lakshmanan 9ff73df
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
Vivek Lakshmanan 9ff73df
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
Vivek Lakshmanan 9ff73df
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
Vivek Lakshmanan 9ff73df
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
Vivek Lakshmanan 9ff73df
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
Vivek Lakshmanan 9ff73df
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
Vivek Lakshmanan 9ff73df
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
Vivek Lakshmanan 9ff73df
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
Vivek Lakshmanan 9ff73df
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
Vivek Lakshmanan 9ff73df
#
Vivek Lakshmanan 9ff73df
d4beef2
%global full_name	jakarta-%{name}
e175c41
e175c41
Name:		regexp
e175c41
Version:	1.5
6603c26
Release:	7%{dist}
e175c41
Epoch:		0
e175c41
Summary:	Simple regular expressions API
e175c41
License:	ASL 2.0
e175c41
Group:		Development/Libraries/Java
e175c41
Url:		http://jakarta.apache.org/%{name}/
e175c41
Source0:	http://www.apache.org/dist/jakarta/regexp/jakarta-regexp-%{version}.tar.gz
e175c41
BuildRequires:	jpackage-utils >= 0:1.6
e175c41
Requires(pre):	jpackage-utils >= 0:1.6
e175c41
Requires(postun):	jpackage-utils >= 0:1.6
e175c41
Requires:	java
e175c41
e175c41
BuildRequires:	ant >= 1.6
d4beef2
BuildArch:	noarch
d4beef2
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
cvsdist 982a651
cvsdist 982a651
%description
cvsdist 982a651
Regexp is a 100% Pure Java Regular Expression package that was
cvsdist 982a651
graciously donated to the Apache Software Foundation by Jonathan Locke.
cvsdist 982a651
He originally wrote this software back in 1996 and it has stood up quite
cvsdist 982a651
well to the test of time.
cvsdist 982a651
It includes complete Javadoc documentation as well as a simple Applet
cvsdist 982a651
for visual debugging and testing suite for compatibility.
cvsdist 982a651
cvsdist 982a651
%package javadoc
e175c41
Group:		Development/Java
e175c41
Summary:	Javadoc for %{name}
cvsdist 982a651
cvsdist 982a651
%description javadoc
cvsdist 982a651
Javadoc for %{name}.
cvsdist 982a651
cvsdist 982a651
%prep
gbenson 10c5a26
%setup -q -n %{full_name}-%{version}
cvsdist 982a651
# remove all binary libs
cvsdist 982a651
find . -name "*.jar" -exec rm -f {} \;
cvsdist 982a651
cvsdist 982a651
%build
cvsdist 982a651
mkdir lib
cvsdist 982a651
ant -Djakarta-site2.dir=. jar javadocs
cvsdist 982a651
Vivek Lakshmanan 9ff73df
cvsdist 982a651
%install
e175c41
rm -rf %{buildroot}
Vivek Lakshmanan 8392c52
cvsdist 982a651
# jars
e175c41
install -d -m 755 %{buildroot}%{_javadir}
e175c41
install -m 644 build/*.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
e175c41
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)
cvsdist 982a651
# javadoc
e175c41
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
e175c41
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
e175c41
%{__cp} -r docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}
e175c41
%{__rm} -rf docs/api
gbenson 04e3403
cvsdist 982a651
%clean
e175c41
rm -rf %{buildroot}
cvsdist 982a651
cvsdist 982a651
%files
d4beef2
%defattr(-,root,root,-)
Vivek Lakshmanan 9ff73df
%doc LICENSE
cvsdist 982a651
%{_javadir}/*.jar
Vivek Lakshmanan 9ff73df
cvsdist 982a651
%files javadoc
d4beef2
%defattr(-,root,root,-)
cvsdist 982a651
%{_javadocdir}/%{name}-%{version}
Andrew Overholt fe25003
%doc %{_javadocdir}/%{name}
cvsdist 982a651
cvsdist 982a651
%changelog
6603c26
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5-7
6603c26
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
6603c26
653e8fc
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5-6
653e8fc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
653e8fc
d4beef2
* Wed Oct 6 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.5-5
d4beef2
- Drop gcj support.
d4beef2
Andrew Overholt fe25003
* Fri Jan 08 2010 Andrew Overholt <overholt@redhat.com> 1.5-4.3
Andrew Overholt fe25003
- Remove javadoc ghost symlinking.
Andrew Overholt fe25003
d9c7f56
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5-4.2
d9c7f56
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d9c7f56
a4d18d0
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5-3.2
a4d18d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
a4d18d0
78d1138
* Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.5-2.2
78d1138
- drop repotag
78d1138
cf13a37
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.5-2jpp.1
cf13a37
- Autorebuild for GCC 4.3
cf13a37
e175c41
* Sat Feb 9 2008 Devrim GUNDUZ <devrim@commandprompt.com> 0:1.5-1jpp.1
e175c41
- Update to 1.5
e175c41
- Fix license
e175c41
- Cosmetic cleanup
e175c41
Vivek Lakshmanan 8392c52
* Thu Feb 8 2007 Vivek Lakshmanan <vivekl at redhat.com> 0:1.4-3jpp.1.fc7
Vivek Lakshmanan 8392c52
- Resync with JPP
Vivek Lakshmanan 8392c52
- Use the upstream tar ball as JPP does since they clean it off jars anyway
Vivek Lakshmanan 8392c52
- Use JPackage exception compliant naming scheme
Vivek Lakshmanan 92b6b35
- Remove section definition
Vivek Lakshmanan 41789cf
- Install unversioned symlink
Vivek Lakshmanan 92b6b35
- Add missing ghost for unversioned link
Vivek Lakshmanan 92b6b35
- Add requires on java
Vivek Lakshmanan 8392c52
Vivek Lakshmanan cf71b2a
* Fri Aug 4 2006 Vivek Lakshmanan <vivekl@redhat.com> 0:1.4-2jpp.2
Vivek Lakshmanan cf71b2a
- Rebuild.
Vivek Lakshmanan cf71b2a
Vivek Lakshmanan 9ff73df
* Fri Aug 4 2006 Vivek Lakshmanan <vivekl@redhat.com> 0:1.4-2jpp.1
Vivek Lakshmanan 9ff73df
- Merge with latest from JPP.
Vivek Lakshmanan 9ff73df
- Remove prebuilt jars from new source tar ball.
Vivek Lakshmanan 9ff73df
acead9b
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:1.3-2jpp_9fc
acead9b
- Rebuilt
acead9b
fd50e82
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:1.3-2jpp_8fc
fd50e82
- rebuild
fd50e82
8724cab
* Mon Mar  6 2006 Jeremy Katz <katzj@redhat.com> - 0:1.3-2jpp_7fc
8724cab
- stop scriptlet spew
8724cab
34bd91e
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0:1.3-2jpp_6fc
34bd91e
- bump again for double-long bug on ppc(64)
34bd91e
899efb5
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0:1.3-2jpp_5fc
899efb5
- rebuilt for new gcc4.1 snapshot and glibc changes
899efb5
1ec3535
* Wed Dec 21 2005 Jesse Keating <jkeating@redhat.com> 0:1.2-2jpp_4fc
1ec3535
- rebuilt again
1ec3535
c04280f
* Tue Dec 13 2005 Jesse Keating <jkeating@redhat.com>
c04280f
- rebuilt for new gcj
c04280f
afa101a
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
afa101a
- rebuilt
afa101a
gbenson 04e3403
* Fri Jul 15 2005 Gary Benson <gbenson@redhat.com> 0:1.3-2jpp_3fc
gbenson 04e3403
- Build on ia64, ppc64, s390 and s390x.
gbenson 04e3403
- Switch to aot-compile-rpm.
gbenson 04e3403
gbenson 1c8ffe9
* Tue Jun 14 2005 Gary Benson <gbenson@redhat.com> 0:1.3-2jpp_2fc
gbenson 1c8ffe9
- Remove jarfile from the tarball.
gbenson 1c8ffe9
gbenson 690b389
* Thu May 26 2005 Gary Benson <gbenson@redhat.com> 0:1.3-2jpp_1fc
gbenson 8b2b11e
- Upgrade to 1.3-2jpp.
gbenson 10c5a26
- Rearrange how BC-compiled stuff is built and installed.
gbenson 10c5a26
gbenson e31fdde
* Mon May 23 2005 Gary Benson <gbenson@redhat.com> 0:1.3-1jpp_6fc
gbenson 4517fd3
- Add alpha to the list of build architectures (#157522).
gbenson cea1331
- Use absolute paths for rebuild-gcj-db.
gbenson 4517fd3
gbenson b80c698
* Thu May  5 2005 Gary Benson <gbenson@redhat.com> 0:1.3-1jpp_5fc
gbenson b80c698
- BC-compile.
gbenson b80c698
gbenson befb194
* Tue Jan 11 2005 Gary Benson <gbenson@redhat.com> 0:1.3-1jpp_4fc
gbenson befb194
- Sync with RHAPS.
gbenson befb194
gbenson 76434ef
* Thu Nov  4 2004 Gary Benson <gbenson@redhat.com> 0:1.3-1jpp_3fc
gbenson 8b95806
- Build into Fedora.
gbenson 8b95806
gbenson befb194
* Fri Oct  1 2004 Andrew Overholt <overholt@redhat.com> 0:1.3-1jpp_3rh
gbenson befb194
- add coreutils BuildRequires
gbenson befb194
gbenson 7d26dbd
* Wed Aug 25 2004 Fernando Nasser <fnasser@redhat.com> 0:1.3-2jpp
gbenson 7d26dbd
- Require Ant > 1.6
gbenson 7d26dbd
- Rebuild with Ant 1.6.2
gbenson 7d26dbd
cvsdist 1518d77
* Fri Mar 26 2004 Frank Ch. Eigler <fche@redhat.com> 0:1.3-1jpp_2rh
cvsdist 1518d77
- add RHUG upgrade cleanup
cvsdist 1518d77
cvsdist dca8340
* Thu Mar  3 2004 Frank Ch. Eigler <fche@redhat.com> 0:1.3-1jpp_1rh
cvsdist dca8340
- RH vacuuming
cvsdist dca8340
cvsdist 982a651
* Thu Oct 09 2003 Henri Gomez <hgomez at users.sourceforge.net> 0:1.3-1jpp
cvsdist 982a651
- regexp 1.3
cvsdist 982a651
cvsdist 982a651
* Fri May 09 2003 David Walluck <david@anti-microsoft.org> 0:1.2-14jpp
cvsdist 982a651
- update for JPackage 1.5
cvsdist 982a651
cvsdist 982a651
* Fri Mar 23 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org> 1.2-13jpp
cvsdist 982a651
- for jpackage-utils 1.5
cvsdist 982a651
cvsdist 982a651
* Tue Jul 02 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-11jpp
cvsdist 982a651
- section marcro
cvsdist 982a651
- removed additional symlink
cvsdist 982a651
cvsdist 982a651
* Mon Jun 24 2002 Henri Gomez <hgomez@slib.fr> 1.2-10jpp
cvsdist 982a651
- add official jakarta jarname (jakarta-regexp-1.2.jar) symlink to real
cvsdist 982a651
  jarname
cvsdist 982a651
cvsdist 982a651
* Mon Jun 10 2002 Henri Gomez <hgomez@slib.fr> 1.2-9jpp
cvsdist 982a651
- use sed instead of bash 2.x extension in link area to make spec compatible
cvsdist 982a651
  with distro using bash 1.1x
cvsdist 982a651
- use official tarball
cvsdist 982a651
cvsdist 982a651
* Fri Jan 18 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-8jpp 
cvsdist 982a651
- versioned dir for javadoc
cvsdist 982a651
- no dependencies javadoc package
cvsdist 982a651
cvsdist 982a651
* Sat Dec 1 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-7jpp
cvsdist 982a651
- javadoc in javadoc package
cvsdist 982a651
- official summary
cvsdist 982a651
cvsdist 982a651
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 1.2-5jpp
cvsdist 982a651
- removed packager tag
cvsdist 982a651
- new jpp extension
cvsdist 982a651
cvsdist 982a651
* Sun Sep 30 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-5jpp
cvsdist 982a651
- first unified release
cvsdist 982a651
- s/jPackage/JPackage
cvsdist 982a651
cvsdist 982a651
* Sun Aug 26 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-4mdk
cvsdist 982a651
- vendor tag
cvsdist 982a651
- packager tag
cvsdist 982a651
- s/Copyright/License/
cvsdist 982a651
- truncated description to 72 columns in spec
cvsdist 982a651
- spec cleanup
cvsdist 982a651
- used versioned jar
cvsdist 982a651
- used new source packaging policy
cvsdist 982a651
cvsdist 982a651
* Sat Feb 17 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.2-3mdk
cvsdist 982a651
- spec cleanup
cvsdist 982a651
- changelog correction
cvsdist 982a651
cvsdist 982a651
* Sun Feb 04 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.2-2mdk
cvsdist 982a651
- merged with Henri Gomez <hgomez@slib.fr> specs:
cvsdist 982a651
- changed name to regexp
cvsdist 982a651
-  changed javadir to /usr/share/java
cvsdist 982a651
-  dropped jdk & jre requirement
cvsdist 982a651
-  added Jikes support
cvsdist 982a651
- changed jar name to regexp.jar
cvsdist 982a651
- corrected doc
cvsdist 982a651
cvsdist 982a651
* Sun Jan 14 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.2-1mdk
cvsdist 982a651
- first Mandrake release