[Momonga-devel.ja:00214] java-jakarta-oro.spec


尾崎です。

jakarta-oro-2.0.6 の port です。

--
Kyoichi Ozaki <k@xxxxxxxxxxxxx>
%define origname    jakarta-oro
%define name        java-jakarta-oro
%define version     2.0.6
%define release     1m
%define pkgshare    %{_datadir}/%{name}

Summary:    a set of text-processing Java classes 
Name:       %{name}
Version:    %{version}
Release:    1m
License:    Apache Software License
Group:      Development/Libraries
Source:     http://jakarta.apache.org/builds/%{origname}/release/v%{version}/%{origname}-%{version}.tar.gz
Url:        http://jakarta.apache.org/oro/
BuildArch:  noarch
BuildPreReq: findutils, fileutils, java-jakarta-ant
Requires:   java-virtual-machine
BuildRoot:  %{_tmppath}/%{name}-%{version}-root

%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.


%prep
test %{buildroot} != "/" && rm -fr %{buildroot}

%setup -q -n %{origname}-%{version}
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;

%build
ant -buildfile build.xml jar
ant -buildfile build.xml javadocs

%install
install -d -m 755 %{buildroot}%{pkgshare}
install -m 644 %{origname}-%{version}.jar %{buildroot}%{pkgshare}

# no need for momonga ?
# create unversioned symlinks
#(cd $RPM_BUILD_ROOT%{javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} ${jar/-%{version}/}; done)

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc LICENSE BUGS CHANGES COMPILE CONTRIBUTORS README STYLE TODO
%doc %dir docs/*html
%doc %dir docs/api
%doc %dir docs/images
%{pkgshare}/*

%changelog
* Sat Jul 27 2002 Kyoichi Ozaki <k@xxxxxxxxxxxxx>
- (2.0.6-1m)
- packaged for momonga