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