[Momonga-devel.ja:00213] java-jakarta-regexp.spec
- From: Kyoichi Ozaki <k@xxxxxxxxxxxxx>
- Date: Sat, 27 Jul 2002 15:28:57 +0900 (JST)
尾崎です。
jakarta-regexp ですが、jakarta にあるrpmを momonga 用に fix してみました。
--
Kyoichi Ozaki <k@xxxxxxxxxxxxx>
%define origname jakarta-regexp
%define name java-jakarta-regexp
%define version 1.2
%define release 1m
%define pkgshare %{_datadir}/%{name}
Summary: Simple regular expressions API
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/regexp/
#Provides: jaxp_parser
BuildArch: noarch
BuildPreReq: findutils, fileutils, java-jakarta-ant
Requires: java-virtual-machine
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Regexp is a 100% Pure Java Regular Expression package that was
graciously donated to the Apache Software Foundation by Jonathan Locke.
He originally wrote this software back in 1996 and it has stood up quite
well to the test of time.
It includes complete Javadoc documentation as well as a simple Applet
for visual debugging and testing suite for compatibility.
%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/build-regexp.xml jar
ant -buildfile build/build-regexp.xml javadocs
%install
install -d -m 755 %{buildroot}%{pkgshare}
install -m 644 bin/%{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
%doc %dir docs
%{pkgshare}/*
%changelog
* Sat Jul 27 2002 Kyoichi Ozaki <k@xxxxxxxxxxxxx>
- (1.2-1m)
- port to momonga
* Mon Feb 11 2002 Henri Gomez <hgomez@xxxxxxx> 1.2-1
- Initial RPM release from jpackage works