Merge with upstream
This commit is contained in:
parent
a0a3728372
commit
01883b3c25
@ -28,13 +28,17 @@
|
|||||||
# 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 _gcj_support 1
|
||||||
|
|
||||||
|
%define gcj_support %{?_with_gcj_support:1}%{!?_with_gcj_support:%{?_without_gcj_support:0}%{!?_without_gcj_support:%{?_gcj_support:%{_gcj_support}}%{!?_gcj_support:0}}}
|
||||||
|
|
||||||
%define base_name oro
|
%define base_name oro
|
||||||
|
|
||||||
%define section free
|
%define section free
|
||||||
|
|
||||||
Name: jakarta-oro
|
Name: jakarta-oro
|
||||||
Version: 2.0.8
|
Version: 2.0.8
|
||||||
Release: 2jpp
|
Release: 3jpp.1
|
||||||
Epoch: 0
|
Epoch: 0
|
||||||
Summary: Full regular expressions API
|
Summary: Full regular expressions API
|
||||||
License: Apache License
|
License: Apache License
|
||||||
@ -43,14 +47,20 @@ Source0: %{name}-%{version}.tar.gz
|
|||||||
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
|
||||||
|
%if ! %{gcj_support}
|
||||||
Buildarch: noarch
|
Buildarch: noarch
|
||||||
|
%endif
|
||||||
Buildroot: %{_tmppath}/%{name}-%{version}-buildroot
|
Buildroot: %{_tmppath}/%{name}-%{version}-buildroot
|
||||||
Vendor: JPackage Project
|
|
||||||
Distribution: JPackage
|
|
||||||
Provides: oro
|
Provides: oro
|
||||||
Obsoletes: oro < 0:2.0.8-2jpp
|
Obsoletes: oro < 0:2.0.8-2jpp
|
||||||
|
|
||||||
|
|
||||||
|
%if %{gcj_support}
|
||||||
|
BuildRequires: java-gcj-compat-devel
|
||||||
|
Requires(post): java-gcj-compat
|
||||||
|
Requires(postun): java-gcj-compat
|
||||||
|
%endif
|
||||||
|
|
||||||
%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
|
||||||
that provide Perl5 compatible regular expressions, AWK-like regular
|
that provide Perl5 compatible regular expressions, AWK-like regular
|
||||||
@ -65,6 +75,9 @@ their development under the Jakarta Project.
|
|||||||
%package javadoc
|
%package javadoc
|
||||||
Group: Development/Java
|
Group: Development/Java
|
||||||
Summary: Javadoc for %{name}
|
Summary: Javadoc for %{name}
|
||||||
|
#BuildRequires: java-javadoc
|
||||||
|
Requires(post): /bin/rm /bin/ln
|
||||||
|
Requires(postun): /bin/rm
|
||||||
|
|
||||||
%description javadoc
|
%description javadoc
|
||||||
Javadoc for %{name}.
|
Javadoc for %{name}.
|
||||||
@ -90,21 +103,66 @@ install -m 644 %{base_name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.ja
|
|||||||
#javadoc
|
#javadoc
|
||||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||||
cp -pr docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
cp -pr docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||||
|
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
|
||||||
rm -rf docs/api
|
rm -rf docs/api
|
||||||
|
|
||||||
|
%if %{gcj_support}
|
||||||
|
%{_bindir}/aot-compile-rpm
|
||||||
|
%endif
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%if %{gcj_support}
|
||||||
|
%post
|
||||||
|
if [ -x %{_bindir}/rebuild-gcj-db ]
|
||||||
|
then
|
||||||
|
%{_bindir}/rebuild-gcj-db
|
||||||
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{gcj_support}
|
||||||
|
%postun
|
||||||
|
if [ -x %{_bindir}/rebuild-gcj-db ]
|
||||||
|
then
|
||||||
|
%{_bindir}/rebuild-gcj-db
|
||||||
|
fi
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%post javadoc
|
||||||
|
rm -f %{_javadocdir}/%{name}
|
||||||
|
ln -s %{name}-%{version} %{_javadocdir}/%{name}
|
||||||
|
|
||||||
|
%postun javadoc
|
||||||
|
if [ "$1" = "0" ]; then
|
||||||
|
rm -f %{_javadocdir}/%{name}
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc COMPILE ISSUES README TODO CHANGES CONTRIBUTORS LICENSE STYLE
|
%doc COMPILE ISSUES README TODO CHANGES CONTRIBUTORS LICENSE STYLE
|
||||||
%{_javadir}/*.jar
|
%{_javadir}/*.jar
|
||||||
|
|
||||||
|
%if %{gcj_support}
|
||||||
|
%dir %attr(-,root,root) %{_libdir}/gcj/%{name}
|
||||||
|
%attr(-,root,root) %{_libdir}/gcj/%{name}/jakarta-oro-2.0.8.jar.*
|
||||||
|
%endif
|
||||||
|
|
||||||
%files javadoc
|
%files javadoc
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%{_javadocdir}/%{name}-%{version}
|
%doc %{_javadocdir}/%{name}-%{version}
|
||||||
|
%ghost %doc %{_javadocdir}/%{name}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Aug 21 2006 Fernando Nasser <fnasser.redhat.com> 2.0.8-3jpp.1
|
||||||
|
- Merge with upstream
|
||||||
|
|
||||||
|
* Mon Aug 21 2006 Fernando Nasser <fnasser.redhat.com> 2.0.8-3jpp
|
||||||
|
- Add AOT bits
|
||||||
|
- Fix javadoc unversioned link handling
|
||||||
|
- Add requires for post/postun javadoc sections added above
|
||||||
|
|
||||||
* Tue Aug 24 2004 Fernando Nasser <fnasser.redhat.com> 2.0.8-2jpp
|
* Tue Aug 24 2004 Fernando Nasser <fnasser.redhat.com> 2.0.8-2jpp
|
||||||
- Rebuild with Ant 1.6.2
|
- Rebuild with Ant 1.6.2
|
||||||
- Changed name to jakarta-oro
|
- Changed name to jakarta-oro
|
||||||
|
Loading…
Reference in New Issue
Block a user