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