BZ 172456: Added /usr/lib/libantlr.a and /usr/include/antlr/*.hpp

This commit is contained in:
vadimn 2005-11-10 20:18:40 +00:00
parent 025d704c3f
commit 02e38fd0f6

View File

@ -5,7 +5,7 @@
Summary: ANother Tool for Language Recognition Summary: ANother Tool for Language Recognition
Name: antlr Name: antlr
Version: 2.7.4 Version: 2.7.4
Release: 2jpp_2fc Release: 2jpp_3fc
Epoch: 0 Epoch: 0
License: Public Domain License: Public Domain
URL: http://www.antlr.org/ URL: http://www.antlr.org/
@ -20,7 +20,6 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
%if %{native} %if %{native}
BuildRequires: %{_bindir}/gcj, %{__make} BuildRequires: %{_bindir}/gcj, %{__make}
%else %else
BuildArch: noarch
BuildRequires: ant BuildRequires: ant
BuildRequires: %{__perl}, java-javadoc BuildRequires: %{__perl}, java-javadoc
Requires: jpackage-utils Requires: jpackage-utils
@ -95,6 +94,11 @@ cp -p %{SOURCE1} build.xml
%else %else
ant -Dj2se.apidoc=%{_javadocdir}/java ant -Dj2se.apidoc=%{_javadocdir}/java
cp work/lib/antlr.jar . # make expects to find it here
export CLASSPATH=. # make wants to see the ./configure script on the classpath
%configure --disable-examples
make
rm antlr.jar # no longer needed
%endif %endif
@ -117,6 +121,13 @@ cp -p work/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
# script # script
cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/antlr-java cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/antlr-java
# C++ lib and headers
%define headers %{_includedir}/%{name}
mkdir -p $RPM_BUILD_ROOT{%{headers},%{_libdir}}
install -m 644 lib/cpp/antlr/*.hpp $RPM_BUILD_ROOT%{headers}
install -m 644 lib/cpp/src/libantlr.a $RPM_BUILD_ROOT%{_libdir}
# javadoc # javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr work/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version} cp -pr work/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
@ -175,6 +186,8 @@ ln -s %{name}-%{version} %{_javadocdir}/%{name}
%defattr(0755,root,root,0755) %defattr(0755,root,root,0755)
%ghost %{_bindir}/antlr %ghost %{_bindir}/antlr
%{_bindir}/antlr-java %{_bindir}/antlr-java
%{headers}/*.hpp
%{_libdir}/libantlr.a
%files manual %files manual
%defattr(0644,root,root,0755) %defattr(0644,root,root,0755)
@ -194,6 +207,9 @@ ln -s %{name}-%{version} %{_javadocdir}/%{name}
%changelog %changelog
* Mon Nov 7 2005 Vadim Nasardinov <vadimn@redhat.com> - 0:2.7.4-2jpp_3fc
- BZ 172456: Added /usr/lib/libantlr.a and /usr/include/antlr/*.hpp
* Tue Jun 21 2005 Gary Benson <gbenson@redhat.com> - 0:2.7.4-2jpp_2fc * Tue Jun 21 2005 Gary Benson <gbenson@redhat.com> - 0:2.7.4-2jpp_2fc
- Remove jarfile from the tarball. - Remove jarfile from the tarball.
- Remove now-unnecessary workaround for #144775. - Remove now-unnecessary workaround for #144775.