f53ceb
# Copyright (c) 2000-2005, JPackage Project
f53ceb
# All rights reserved.
f53ceb
#
f53ceb
# Redistribution and use in source and binary forms, with or without
f53ceb
# modification, are permitted provided that the following conditions
f53ceb
# are met:
f53ceb
#
f53ceb
# 1. Redistributions of source code must retain the above copyright
f53ceb
#    notice, this list of conditions and the following disclaimer.
f53ceb
# 2. Redistributions in binary form must reproduce the above copyright
f53ceb
#    notice, this list of conditions and the following disclaimer in the
f53ceb
#    documentation and/or other materials provided with the
f53ceb
#    distribution.
f53ceb
# 3. Neither the name of the JPackage Project nor the names of its
f53ceb
#    contributors may be used to endorse or promote products derived
f53ceb
#    from this software without specific prior written permission.
f53ceb
#
f53ceb
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
f53ceb
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
f53ceb
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
f53ceb
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
f53ceb
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
f53ceb
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
f53ceb
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
f53ceb
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
f53ceb
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
f53ceb
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
f53ceb
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
f53ceb
#
f53ceb
f53ceb
%global base_name oro
f53ceb
f53ceb
Name:           jakarta-oro
f53ceb
Version:        2.0.8
f53ceb
Release:        16%{?dist}
f53ceb
Epoch:          0
f53ceb
Summary:        Full regular expressions API
f53ceb
License:        ASL 1.1
f53ceb
Source0:        http://archive.apache.org/dist/jakarta/oro/%{name}-%{version}.tar.gz
f53ceb
Source1:        MANIFEST.MF
f53ceb
Source2:        http://repo1.maven.org/maven2/%{base_name}/%{base_name}/%{version}/%{base_name}-%{version}.pom
f53ceb
Patch1:         %{name}-build-xml.patch
f53ceb
URL:            http://jakarta.apache.org/oro
f53ceb
BuildRequires:  jpackage-utils
f53ceb
BuildRequires:  ant
f53ceb
BuildArch:      noarch
f53ceb
f53ceb
%description
f53ceb
The Jakarta-ORO Java classes are a set of text-processing Java classes
f53ceb
that provide Perl5 compatible regular expressions, AWK-like regular
f53ceb
expressions, glob expressions, and utility classes for performing
f53ceb
substitutions, splits, filtering filenames, etc. This library is the
f53ceb
successor to the OROMatcher, AwkTools, PerlTools, and TextTools
f53ceb
libraries from ORO, Inc. (www.oroinc.com). 
f53ceb
f53ceb
%package javadoc
f53ceb
Summary:        Javadoc for %{name}
f53ceb
f53ceb
%description javadoc
f53ceb
Javadoc for %{name}.
f53ceb
f53ceb
%prep
f53ceb
%setup -q -n %{name}-%{version}
f53ceb
# remove all binary libs
f53ceb
find . -name "*.jar" -exec rm -f {} \;
f53ceb
# remove all CVS files
f53ceb
for dir in `find . -type d -name CVS`; do rm -rf $dir; done
f53ceb
for file in `find . -type f -name .cvsignore`; do rm -rf $file; done
f53ceb
f53ceb
%patch1
f53ceb
cp %{SOURCE1} .
f53ceb
f53ceb
%build
f53ceb
ant -Dfinal.name=%{base_name} jar javadocs
f53ceb
f53ceb
%install
f53ceb
#jars
f53ceb
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
f53ceb
install -m 644 %{base_name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
f53ceb
(cd $RPM_BUILD_ROOT%{_javadir} && ln -sf %{name}.jar %{base_name}.jar)
f53ceb
#javadoc
f53ceb
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
f53ceb
cp -pr docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
f53ceb
rm -rf docs/api
f53ceb
f53ceb
# POM and depmap
f53ceb
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
f53ceb
install -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
f53ceb
%add_maven_depmap
f53ceb
f53ceb
%files
f53ceb
%doc COMPILE ISSUES README TODO CHANGES CONTRIBUTORS LICENSE STYLE
f53ceb
%{_javadir}/*.jar
f53ceb
%{_mavenpomdir}/JPP-%{name}.pom
f53ceb
%{_mavendepmapfragdir}/%{name}
f53ceb
f53ceb
%files javadoc
f53ceb
%doc LICENSE
f53ceb
%{_javadocdir}/%{name}
f53ceb
f53ceb
%changelog
f53ceb
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 02.0.8-16
f53ceb
- Mass rebuild 2013-12-27
f53ceb
f53ceb
* Fri Jul 12 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.0.8-15
f53ceb
- Remove workaround for rpm bug #646523
f53ceb
- Update to current packaging guidelines
f53ceb
f53ceb
* Fri Jun 28 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.0.8-14
f53ceb
- Rebuild to regenerate API documentation
f53ceb
- Resolves: CVE-2013-1571
f53ceb
f53ceb
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.0.8-13
f53ceb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f53ceb
f53ceb
* Thu Nov  1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:2.0.8-12
f53ceb
- Add maven POM
f53ceb
f53ceb
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.0.8-11
f53ceb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f53ceb
f53ceb
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.0.8-10
f53ceb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f53ceb
f53ceb
* Mon Feb 21 2011 Alexander Kurtakov <akurtako@redhat.com> 0:2.0.8-9
f53ceb
- Fix merge review comments.
f53ceb
f53ceb
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.0.8-8
f53ceb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f53ceb
f53ceb
* Wed Oct 6 2010 Alexander Kurtakov <akurtako@redhat.com> 0:2.0.8-7
f53ceb
- Drop gcj support.
f53ceb
f53ceb
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.0.8-6.3
f53ceb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f53ceb
f53ceb
* Tue Jun 23 2009 Jeff Johnston <jjohnstn@redhat.com> - 0:2.0.8-5.3
f53ceb
- Add OSGi metadata to Manifest.
f53ceb
f53ceb
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.0.8-5.2
f53ceb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f53ceb
f53ceb
* Wed Jul  9 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0:2.0.8-4.2
f53ceb
- drop repotag
f53ceb
- fix license tag
f53ceb
f53ceb
* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0:2.0.8-4jpp.1
f53ceb
- Autorebuild for GCC 4.3
f53ceb
f53ceb
* Mon Aug 21 2006 Fernando Nasser <fnasser.redhat.com> 2.0.8-3jpp.1
f53ceb
- Merge with upstream
f53ceb
f53ceb
* Mon Aug 21 2006 Fernando Nasser <fnasser.redhat.com> 2.0.8-3jpp
f53ceb
- Add AOT bits
f53ceb
- Fix javadoc unversioned link handling
f53ceb
- Add requires for post/postun javadoc sections added above
f53ceb
f53ceb
* Tue Aug 24 2004 Fernando Nasser <fnasser.redhat.com> 2.0.8-2jpp
f53ceb
- Rebuild with Ant 1.6.2
f53ceb
- Changed name to jakarta-oro
f53ceb
- Add backward compatibility to 'oro' bits
f53ceb
f53ceb
* Fri Jan 02 2004 Henri Gomez <hgomez@users.sourceforge.net> 2.0.8-1jpp
f53ceb
- oro 2.0.8
f53ceb
f53ceb
* Tue Mar 25 2003 Nicolas Mailhot <Nicolas.Mailhot (at) JPackage.org> 2.0.7-1jpp
f53ceb
- oro 2.0.7
f53ceb
- for jpackage-utils 1.5
f53ceb
f53ceb
* Wed Jul 10 2002 Henri Gomez <hgomez@users.sourceforge.net> 2.0.6-1jpp
f53ceb
- oro 2.0.6
f53ceb
f53ceb
* Tue Jul 02 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.0.4-7jpp
f53ceb
- section macro
f53ceb
- use sed instead of bash 2.x extension in link area to make spec compatible with distro using bash 1.1x
f53ceb
f53ceb
* Fri Jan 18 2002 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.0.4-6jpp 
f53ceb
- versioned dir for javadoc
f53ceb
- no dependencies javadoc package
f53ceb
f53ceb
* Sat Dec 1 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.0.4-5jpp
f53ceb
- javadoc in javadoc package
f53ceb
- official summary
f53ceb
f53ceb
* Wed Nov 21 2001 Christian Zoffoli <czoffoli@littlepenguin.org> 2.0.4-4jpp
f53ceb
- removed packager tag
f53ceb
- new jpp extension
f53ceb
f53ceb
* Sun Sep 30 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.0.4-3jpp
f53ceb
- more macros
f53ceb
f53ceb
* Wed Sep 26 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.0.4-2jpp
f53ceb
- first unified release
f53ceb
- s/jPackage/JPackage
f53ceb
f53ceb
* Sun Aug 26 2001 Guillaume Rousse <guillomovitch@users.sourceforge.net> 2.0.4-1mdk
f53ceb
- 2.0.4
f53ceb
- vendor tag
f53ceb
- packager tag
f53ceb
- s/Copyright/License/
f53ceb
- truncated description to 72 columns in spec
f53ceb
- spec cleanup
f53ceb
- used versioned jar
f53ceb
- used new source packaging policy
f53ceb
f53ceb
* Sat Feb 17 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 2.0.1-3mdk
f53ceb
- spec cleanup
f53ceb
- changelog correction
f53ceb
f53ceb
* Sun Feb 04 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 2.0.1-2mdk
f53ceb
- merged with Henri Gomez <hgomez@users.sourceforge.net> specs:
f53ceb
- changed name to oro
f53ceb
-  changed javadir to /usr/share/java
f53ceb
-  dropped jdk & jre requirement
f53ceb
-  added Jikes support
f53ceb
- changed jar name to oro.jar
f53ceb
- corrected doc
f53ceb
- more macros
f53ceb
f53ceb
* Sun Jan 14 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 2.0.1-1mdk
f53ceb
- first Mandrake release