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