90c26b
Name:           regexp
90c26b
Epoch:          1
90c26b
Version:        1.5
90c26b
Release:        28%{?dist}
90c26b
Summary:        Simple regular expressions API
90c26b
License:        ASL 2.0
90c26b
URL:            http://jakarta.apache.org/%{name}/
90c26b
BuildArch:      noarch
90c26b
90c26b
Source0:        http://archive.apache.org/dist/jakarta/%{name}/jakarta-%{name}-%{version}.tar.gz
90c26b
Source2:        jakarta-%{name}-osgi-manifest.MF
90c26b
Patch0:         jakarta-%{name}-attach-osgi-manifest.patch
90c26b
90c26b
BuildRequires:  ant
90c26b
BuildRequires:  javapackages-local
90c26b
90c26b
Requires:       java-headless
90c26b
90c26b
%description
90c26b
Regexp is a 100% Pure Java Regular Expression package that was
90c26b
graciously donated to the Apache Software Foundation by Jonathan Locke.
90c26b
He originally wrote this software back in 1996 and it has stood up quite
90c26b
well to the test of time.
90c26b
It includes complete Javadoc documentation as well as a simple Applet
90c26b
for visual debugging and testing suite for compatibility.
90c26b
90c26b
%package javadoc
90c26b
Summary:        Javadoc for %{name}
90c26b
90c26b
%description javadoc
90c26b
Javadoc for %{name}.
90c26b
90c26b
%prep
90c26b
%setup -q -n jakarta-%{name}-%{version}
90c26b
%patch0
90c26b
cp -p %{SOURCE2} MANIFEST.MF
90c26b
# remove all binary libs
90c26b
find . -name "*.jar" -exec rm -f {} \;
90c26b
90c26b
cat > pom.xml << EOF
90c26b
<project>
90c26b
  <modelVersion>4.0.0</modelVersion>
90c26b
  <groupId>jakarta-%{name}</groupId>
90c26b
  <artifactId>jakarta-%{name}</artifactId>
90c26b
  <version>%{version}</version>
90c26b
</project>
90c26b
EOF
90c26b
90c26b
%mvn_file : %{name}
90c26b
90c26b
%mvn_alias jakarta-%{name}:jakarta-%{name} %{name}:%{name}
90c26b
90c26b
%build
90c26b
mkdir lib
90c26b
%ant -Djakarta-site2.dir=. jar javadocs
90c26b
90c26b
%mvn_artifact pom.xml build/*.jar
90c26b
90c26b
%install
90c26b
%mvn_install -J docs/api
90c26b
90c26b
%check
90c26b
%ant -Djakarta-site2.dir=. test
90c26b
90c26b
# Workaround for RPM bug #646523 - can't change symlink to directory
90c26b
# TODO: Remove this in F-23
90c26b
%pretrans javadoc -p <lua>
90c26b
dir = "%{_javadocdir}/%{name}"
90c26b
dummy = posix.readlink(dir) and os.remove(dir)
90c26b
90c26b
%files -f .mfiles
90c26b
%doc LICENSE
90c26b
90c26b
%files javadoc -f .mfiles-javadoc
90c26b
%doc LICENSE
90c26b
90c26b
%changelog
90c26b
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.5-28
90c26b
- Mass rebuild for javapackages-tools 201902
90c26b
90c26b
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.5-27
90c26b
- Mass rebuild for javapackages-tools 201901
90c26b
90c26b
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5-26
90c26b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
90c26b
90c26b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5-25
90c26b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
90c26b
90c26b
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5-24
90c26b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
90c26b
90c26b
* Thu Feb 25 2016 Michael Simacek <msimacek@redhat.com> - 1:1.5-23
90c26b
- Install with XMVn and add minimal pom
90c26b
90c26b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.5-22
90c26b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
90c26b
90c26b
* Thu Jan 28 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.5-21
90c26b
- Add OSGi manifest
90c26b
90c26b
* Tue Jul 14 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.5-20
90c26b
- Add build-requires on javapackages-local
90c26b
90c26b
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.5-19
90c26b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
90c26b
90c26b
* Wed Jul  9 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:1.5-18
90c26b
- Bump epoch as workaround for koji-shadow limitation
90c26b
90c26b
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.5-17
90c26b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
90c26b
90c26b
* Mon Jun  2 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5-16
90c26b
- Fix dist tag
90c26b
90c26b
* Mon May 12 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.5-15
90c26b
- Update to current packaging guidelines
90c26b
- Resolves: rhbz#976723
90c26b
90c26b
* Tue Mar 04 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.5-14
90c26b
- Use Requires: java-headless rebuild (#1067528)
90c26b
90c26b
* Fri Jul 26 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.5-13
90c26b
- Rebuild for #988462
90c26b
90c26b
* Tue Jul 23 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.5-12
90c26b
- Enable testsuite
90c26b
90c26b
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.5-11
90c26b
- Rebuild to regenerate API documentation
90c26b
- Resolves: CVE-2013-1571
90c26b
90c26b
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5-10
90c26b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
90c26b
90c26b
* Wed Oct 31 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:1.5-9
90c26b
- Install LICENSE file with javadoc package
90c26b
- Add maven POM file
90c26b
- Update to current packaging guidelines
90c26b
- Convert versioned JAR to unversioned
90c26b
90c26b
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5-8
90c26b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
90c26b
90c26b
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5-7
90c26b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
90c26b
90c26b
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5-6
90c26b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
90c26b
90c26b
* Wed Oct 6 2010 Alexander Kurtakov <akurtako@redhat.com> 0:1.5-5
90c26b
- Drop gcj support.
90c26b
90c26b
* Fri Jan 08 2010 Andrew Overholt <overholt@redhat.com> 1.5-4.3
90c26b
- Remove javadoc ghost symlinking.
90c26b
90c26b
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5-4.2
90c26b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
90c26b
90c26b
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:1.5-3.2
90c26b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
90c26b
90c26b
* Thu Jul 10 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:1.5-2.2
90c26b
- drop repotag
90c26b
90c26b
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:1.5-2jpp.1
90c26b
- Autorebuild for GCC 4.3
90c26b
90c26b
* Sat Feb 9 2008 Devrim GUNDUZ <devrim@commandprompt.com> 0:1.5-1jpp.1
90c26b
- Update to 1.5
90c26b
- Fix license
90c26b
- Cosmetic cleanup
90c26b
90c26b
* Thu Feb 8 2007 Vivek Lakshmanan <vivekl at redhat.com> 0:1.4-3jpp.1.fc7
90c26b
- Resync with JPP
90c26b
- Use the upstream tar ball as JPP does since they clean it off jars anyway
90c26b
- Use JPackage exception compliant naming scheme
90c26b
- Remove section definition
90c26b
- Install unversioned symlink
90c26b
- Add missing ghost for unversioned link
90c26b
- Add requires on java
90c26b
90c26b
* Fri Aug 4 2006 Vivek Lakshmanan <vivekl@redhat.com> 0:1.4-2jpp.2
90c26b
- Rebuild.
90c26b
90c26b
* Fri Aug 4 2006 Vivek Lakshmanan <vivekl@redhat.com> 0:1.4-2jpp.1
90c26b
- Merge with latest from JPP.
90c26b
- Remove prebuilt jars from new source tar ball.
90c26b
90c26b
* Sat Jul 22 2006 Jakub Jelinek <jakub@redhat.com> - 0:1.3-2jpp_9fc
90c26b
- Rebuilt
90c26b
90c26b
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0:1.3-2jpp_8fc
90c26b
- rebuild
90c26b
90c26b
* Mon Mar  6 2006 Jeremy Katz <katzj@redhat.com> - 0:1.3-2jpp_7fc
90c26b
- stop scriptlet spew
90c26b
90c26b
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0:1.3-2jpp_6fc
90c26b
- bump again for double-long bug on ppc(64)
90c26b
90c26b
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0:1.3-2jpp_5fc
90c26b
- rebuilt for new gcc4.1 snapshot and glibc changes
90c26b
90c26b
* Wed Dec 21 2005 Jesse Keating <jkeating@redhat.com> 0:1.2-2jpp_4fc
90c26b
- rebuilt again
90c26b
90c26b
* Tue Dec 13 2005 Jesse Keating <jkeating@redhat.com>
90c26b
- rebuilt for new gcj
90c26b
90c26b
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
90c26b
- rebuilt
90c26b
90c26b
* Fri Jul 15 2005 Gary Benson <gbenson@redhat.com> 0:1.3-2jpp_3fc
90c26b
- Build on ia64, ppc64, s390 and s390x.
90c26b
- Switch to aot-compile-rpm.
90c26b
90c26b
* Tue Jun 14 2005 Gary Benson <gbenson@redhat.com> 0:1.3-2jpp_2fc
90c26b
- Remove jarfile from the tarball.
90c26b
90c26b
* Thu May 26 2005 Gary Benson <gbenson@redhat.com> 0:1.3-2jpp_1fc
90c26b
- Upgrade to 1.3-2jpp.
90c26b
- Rearrange how BC-compiled stuff is built and installed.
90c26b
90c26b
* Mon May 23 2005 Gary Benson <gbenson@redhat.com> 0:1.3-1jpp_6fc
90c26b
- Add alpha to the list of build architectures (#157522).
90c26b
- Use absolute paths for rebuild-gcj-db.
90c26b
90c26b
* Thu May  5 2005 Gary Benson <gbenson@redhat.com> 0:1.3-1jpp_5fc
90c26b
- BC-compile.
90c26b
90c26b
* Tue Jan 11 2005 Gary Benson <gbenson@redhat.com> 0:1.3-1jpp_4fc
90c26b
- Sync with RHAPS.
90c26b
90c26b
* Thu Nov  4 2004 Gary Benson <gbenson@redhat.com> 0:1.3-1jpp_3fc
90c26b
- Build into Fedora.
90c26b
90c26b
* Fri Oct  1 2004 Andrew Overholt <overholt@redhat.com> 0:1.3-1jpp_3rh
90c26b
- add coreutils BuildRequires
90c26b
90c26b
* Wed Aug 25 2004 Fernando Nasser <fnasser@redhat.com> 0:1.3-2jpp
90c26b
- Require Ant > 1.6
90c26b
- Rebuild with Ant 1.6.2
90c26b
90c26b
* Fri Mar 26 2004 Frank Ch. Eigler <fche@redhat.com> 0:1.3-1jpp_2rh
90c26b
- add RHUG upgrade cleanup
90c26b
90c26b
* Thu Mar  3 2004 Frank Ch. Eigler <fche@redhat.com> 0:1.3-1jpp_1rh
90c26b
- RH vacuuming
90c26b
90c26b
* Thu Oct 09 2003 Henri Gomez <hgomez at users.sourceforge.net> 0:1.3-1jpp
90c26b
- regexp 1.3
90c26b
90c26b
* Fri May 09 2003 David Walluck <david@anti-microsoft.org> 0:1.2-14jpp
90c26b
- update for JPackage 1.5
90c26b
90c26b
* Fri Mar 23 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org> 1.2-13jpp
90c26b
- for jpackage-utils 1.5
90c26b
90c26b
* Tue Jul 02 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-11jpp
90c26b
- section marcro
90c26b
- removed additional symlink
90c26b
90c26b
* Mon Jun 24 2002 Henri Gomez <hgomez@slib.fr> 1.2-10jpp
90c26b
- add official jakarta jarname (jakarta-regexp-1.2.jar) symlink to real
90c26b
  jarname
90c26b
90c26b
* Mon Jun 10 2002 Henri Gomez <hgomez@slib.fr> 1.2-9jpp
90c26b
- use sed instead of bash 2.x extension in link area to make spec compatible
90c26b
  with distro using bash 1.1x
90c26b
- use official tarball
90c26b
90c26b
* Fri Jan 18 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-8jpp 
90c26b
- versioned dir for javadoc
90c26b
- no dependencies javadoc package
90c26b
90c26b
* Sat Dec 1 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-7jpp
90c26b
- javadoc in javadoc package
90c26b
- official summary
90c26b
90c26b
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 1.2-5jpp
90c26b
- removed packager tag
90c26b
- new jpp extension
90c26b
90c26b
* Sun Sep 30 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-5jpp
90c26b
- first unified release
90c26b
- s/jPackage/JPackage
90c26b
90c26b
* Sun Aug 26 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 1.2-4mdk
90c26b
- vendor tag
90c26b
- packager tag
90c26b
- s/Copyright/License/
90c26b
- truncated description to 72 columns in spec
90c26b
- spec cleanup
90c26b
- used versioned jar
90c26b
- used new source packaging policy
90c26b
90c26b
* Sat Feb 17 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.2-3mdk
90c26b
- spec cleanup
90c26b
- changelog correction
90c26b
90c26b
* Sun Feb 04 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.2-2mdk
90c26b
- merged with Henri Gomez <hgomez@slib.fr> specs:
90c26b
- changed name to regexp
90c26b
-  changed javadir to /usr/share/java
90c26b
-  dropped jdk & jre requirement
90c26b
-  added Jikes support
90c26b
- changed jar name to regexp.jar
90c26b
- corrected doc
90c26b
90c26b
* Sun Jan 14 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 1.2-1mdk
90c26b
- first Mandrake release