120 lines
4.1 KiB
RPMSpec
120 lines
4.1 KiB
RPMSpec
#
|
|
# spec file for package oro (Version 2.0.8)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
# norootforbuild
|
|
# icecream 0
|
|
|
|
|
|
Name: oro
|
|
BuildRequires: ant java2-devel-packages xml-commons-apis
|
|
%define name oro
|
|
%define full_name jakarta-%{name}
|
|
%define version 2.0.8
|
|
%define release 2jpp
|
|
%define section free
|
|
Version: 2.0.8
|
|
Release: 270
|
|
Summary: Full regular expressions API
|
|
License: The Apache Software License
|
|
Group: Development/Libraries/Java
|
|
Source0: %{full_name}-%{version}.tar.gz
|
|
Patch: %{name}-java14compat.patch
|
|
Url: http://jakarta.apache.org/oro/
|
|
BuildArch: noarch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%description
|
|
The Jakarta-ORO Java classes are a set of text-processing Java classes
|
|
that provide Perl5 compatible regular expressions, AWK-like regular
|
|
expressions, glob expressions, and utility classes for performing
|
|
substitutions, splits, filtering filenames, etc. This library is the
|
|
successor to the OROMatcher, AwkTools, PerlTools, and TextTools
|
|
libraries from ORO, Inc. (www.oroinc.com). They have been donated to
|
|
the Jakarta Project by Daniel Savarese (www.savarese.org), the
|
|
copyright holder of the ORO libraries. Daniel will continue to
|
|
participate in their development under the Jakarta Project.
|
|
|
|
|
|
|
|
%package javadoc
|
|
License: The Apache Software License
|
|
PreReq: coreutils
|
|
Group: Development/Libraries/Java
|
|
Summary: Javadoc for oro
|
|
|
|
%description javadoc
|
|
The Jakarta-ORO Java classes are a set of text-processing Java classes
|
|
that provide Perl5 compatible regular expressions, AWK-like regular
|
|
expressions, glob expressions, and utility classes for performing
|
|
substitutions, splits, filtering filenames, etc. This library is the
|
|
successor to the OROMatcher, AwkTools, PerlTools, and TextTools
|
|
libraries from ORO, Inc. (www.oroinc.com). They have been donated to
|
|
the Jakarta Project by Daniel Savarese (www.savarese.org), the
|
|
copyright holder of the ORO libraries. Daniel will continue to
|
|
participate in their development under the Jakarta Project.
|
|
|
|
This package contains the javadoc documentation for ORO.
|
|
|
|
|
|
|
|
%prep
|
|
%setup -q -n %{full_name}-%{version}
|
|
%patch
|
|
# remove all binary libs
|
|
find . -name "*.jar" -exec rm -f {} \;
|
|
# remove all CVS files
|
|
for dir in `find . -type d -name CVS`; do rm -rf $dir; done
|
|
for file in `find . -type f -name .cvsignore`; do rm -rf $file; done
|
|
|
|
%build
|
|
ant -Dfinal.name=%{name} jar javadocs
|
|
|
|
%install
|
|
#jars
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
|
install -m 644 %{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
|
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
|
#javadoc
|
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
cp -pr docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
|
rm -rf docs/api
|
|
|
|
%clean
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc COMPILE ISSUES README TODO CHANGES CONTRIBUTORS LICENSE STYLE
|
|
%{_javadir}/*.jar
|
|
|
|
%files javadoc
|
|
%defattr(-,root,root)
|
|
%{_javadocdir}/%{name}-%{version}
|
|
|
|
%changelog
|
|
* Tue Sep 26 2006 skh@suse.de
|
|
- don't use icecream
|
|
- use source="1.4" and target="1.4" for build with java 1.5
|
|
* Wed Jan 25 2006 mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Thu Jul 28 2005 jsmeix@suse.de
|
|
- Adjustments in the spec file.
|
|
* Mon Jul 18 2005 jsmeix@suse.de
|
|
- Current version 2.0.8 from JPackage.org
|
|
* Thu Sep 02 2004 skh@suse.de
|
|
- Initial package created with version 2.08 (JPackage 1.5)
|