reverted the previous change
This commit is contained in:
parent
02e38fd0f6
commit
bb16e4a556
22
antlr.spec
22
antlr.spec
@ -5,7 +5,7 @@
|
||||
Summary: ANother Tool for Language Recognition
|
||||
Name: antlr
|
||||
Version: 2.7.4
|
||||
Release: 2jpp_3fc
|
||||
Release: 2jpp_4fc
|
||||
Epoch: 0
|
||||
License: Public Domain
|
||||
URL: http://www.antlr.org/
|
||||
@ -20,6 +20,7 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
||||
%if %{native}
|
||||
BuildRequires: %{_bindir}/gcj, %{__make}
|
||||
%else
|
||||
BuildArch: noarch
|
||||
BuildRequires: ant
|
||||
BuildRequires: %{__perl}, java-javadoc
|
||||
Requires: jpackage-utils
|
||||
@ -93,12 +94,7 @@ cp -p %{SOURCE1} build.xml
|
||||
%{__make} -f %{SOURCE3} COMPOPTS="$RPM_OPT_FLAGS"
|
||||
|
||||
%else
|
||||
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
|
||||
ant -Dj2se.apidoc=%{_javadocdir}/java
|
||||
%endif
|
||||
|
||||
|
||||
@ -121,13 +117,6 @@ cp -p work/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
|
||||
# script
|
||||
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
|
||||
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||
cp -pr work/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
|
||||
@ -186,8 +175,6 @@ ln -s %{name}-%{version} %{_javadocdir}/%{name}
|
||||
%defattr(0755,root,root,0755)
|
||||
%ghost %{_bindir}/antlr
|
||||
%{_bindir}/antlr-java
|
||||
%{headers}/*.hpp
|
||||
%{_libdir}/libantlr.a
|
||||
|
||||
%files manual
|
||||
%defattr(0644,root,root,0755)
|
||||
@ -207,6 +194,9 @@ ln -s %{name}-%{version} %{_javadocdir}/%{name}
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Nov 28 2005 Vadim Nasardinov <vadimn@redhat.com> - 0:2.7.4-2jpp_4fc
|
||||
- Reverted the previous change.
|
||||
|
||||
* 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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user