Fix merge review comments.
This commit is contained in:
parent
3752c9a5f5
commit
6479c32ae5
@ -28,25 +28,23 @@
|
|||||||
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
#
|
#
|
||||||
|
|
||||||
%define base_name oro
|
%global base_name oro
|
||||||
|
|
||||||
Name: jakarta-oro
|
Name: jakarta-oro
|
||||||
Version: 2.0.8
|
Version: 2.0.8
|
||||||
Release: 8%{?dist}
|
Release: 9%{?dist}
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: Full regular expressions API
|
Summary: Full regular expressions API
|
||||||
License: ASL 1.1
|
License: ASL 1.1
|
||||||
Group: Development/Java
|
Group: Development/Libraries
|
||||||
Source0: %{name}-%{version}.tar.gz
|
Source0: http://archive.apache.org/dist/jakarta/oro/%{name}-%{version}.tar.gz
|
||||||
Source1: MANIFEST.MF
|
Source1: MANIFEST.MF
|
||||||
Patch1: %{name}-build-xml.patch
|
Patch1: %{name}-build-xml.patch
|
||||||
URL: http://jakarta.apache.org/oro
|
URL: http://jakarta.apache.org/oro
|
||||||
BuildRequires: jpackage-utils > 1.6
|
BuildRequires: jpackage-utils > 1.6
|
||||||
BuildRequires: ant
|
BuildRequires: ant
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
|
Requires: jpackage-utils
|
||||||
Provides: oro = %{epoch}:%{version}-%{release}
|
|
||||||
Obsoletes: oro <= 0:2.0.8
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
The Jakarta-ORO Java classes are a set of text-processing Java classes
|
The Jakarta-ORO Java classes are a set of text-processing Java classes
|
||||||
@ -54,26 +52,17 @@ that provide Perl5 compatible regular expressions, AWK-like regular
|
|||||||
expressions, glob expressions, and utility classes for performing
|
expressions, glob expressions, and utility classes for performing
|
||||||
substitutions, splits, filtering filenames, etc. This library is the
|
substitutions, splits, filtering filenames, etc. This library is the
|
||||||
successor to the OROMatcher, AwkTools, PerlTools, and TextTools
|
successor to the OROMatcher, AwkTools, PerlTools, and TextTools
|
||||||
libraries from ORO, Inc. (www.oroinc.com). They have been donated to the
|
libraries from ORO, Inc. (www.oroinc.com).
|
||||||
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
|
%package javadoc
|
||||||
Group: Development/Java
|
Group: Documentation
|
||||||
Summary: Javadoc for %{name}
|
Summary: Javadoc for %{name}
|
||||||
Provides: oro-javadoc = %{epoch}:%{version}-%{release}
|
Requires: jpackage-utils
|
||||||
Obsoletes: oro-javadoc <= 0:2.0.8
|
|
||||||
#BuildRequires: java-javadoc
|
|
||||||
# for /bin/rm and /bin/ln
|
|
||||||
Requires(post): coreutils
|
|
||||||
Requires(postun): coreutils
|
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
Javadoc for %{name}.
|
Javadoc for %{name}.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
rm -rf $RPM_BUILD_ROOT
|
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
# remove all binary libs
|
# remove all binary libs
|
||||||
find . -name "*.jar" -exec rm -f {} \;
|
find . -name "*.jar" -exec rm -f {} \;
|
||||||
@ -90,17 +79,17 @@ ant -Dfinal.name=%{base_name} jar javadocs
|
|||||||
%install
|
%install
|
||||||
#jars
|
#jars
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
||||||
install -m 644 %{base_name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
install -m 644 %{base_name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
|
||||||
(cd $RPM_BUILD_ROOT%{_javadir} && ln -sf %{name}-%{version}.jar %{base_name}-%{version}.jar)
|
(cd $RPM_BUILD_ROOT%{_javadir} && ln -sf %{name}.jar %{base_name}.jar)
|
||||||
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)
|
|
||||||
#javadoc
|
#javadoc
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
cp -pr docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
cp -pr docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
|
||||||
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
|
|
||||||
rm -rf docs/api
|
rm -rf docs/api
|
||||||
|
|
||||||
%clean
|
%pre javadoc
|
||||||
rm -rf $RPM_BUILD_ROOT
|
# workaround for rpm bug, can be removed in F-18
|
||||||
|
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
|
||||||
|
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
@ -109,10 +98,13 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc %{_javadocdir}/%{name}-%{version}
|
%doc LICENSE
|
||||||
%doc %{_javadocdir}/%{name}
|
%{_javadocdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Feb 21 2011 Alexander Kurtakov <akurtako@redhat.com> 0:2.0.8-9
|
||||||
|
- Fix merge review comments.
|
||||||
|
|
||||||
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.0.8-8
|
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:2.0.8-8
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
||||||
|
|
||||||
@ -207,4 +199,3 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
|
|
||||||
* Sun Jan 14 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 2.0.1-1mdk
|
* Sun Jan 14 2001 Guillaume Rousse <g.rousse@linux-mandrake.com> 2.0.1-1mdk
|
||||||
- first Mandrake release
|
- first Mandrake release
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user