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