- Build for Fedora.
- Natively-compile.
This commit is contained in:
parent
4b0aa91bdb
commit
3c7417c633
45
javacc.spec
45
javacc.spec
@ -1,8 +1,10 @@
|
||||
%define section free
|
||||
%define gcj_support 1
|
||||
ExclusiveArch: i386 x86_64 ppc
|
||||
|
||||
Name: javacc
|
||||
Version: 3.2
|
||||
Release: 1jpp_0fc
|
||||
Release: 1jpp_1fc
|
||||
Epoch: 0
|
||||
Summary: A parser/scanner generator for java
|
||||
License: BSD
|
||||
@ -13,9 +15,12 @@ Source3: jjtree
|
||||
URL: https://javacc.dev.java.net/
|
||||
Group: Development/Code Generators
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
|
||||
BuildArch: noarch
|
||||
Requires: jpackage-utils >= 0:1.5
|
||||
BuildRequires: ant, /bin/bash
|
||||
%if %{gcj_support}
|
||||
BuildRequires: java-1.4.2-gcj-compat-devel >= 1.4.2.0-40jpp_30rh
|
||||
Requires(post,postun): java-1.4.2-gcj-compat
|
||||
%endif
|
||||
|
||||
%description
|
||||
Java Compiler Compiler (JavaCC) is the most popular parser generator for use
|
||||
@ -51,6 +56,10 @@ ant \
|
||||
-Dversion=%{version} \
|
||||
jar
|
||||
|
||||
%if %{gcj_support}
|
||||
find-and-aot-compile . "-fPIC"
|
||||
%endif
|
||||
|
||||
%install
|
||||
rm -fr $RPM_BUILD_ROOT
|
||||
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
|
||||
@ -61,15 +70,41 @@ install -m 755 javacc jjdoc jjtree $RPM_BUILD_ROOT/usr/bin
|
||||
install -d -m 755 $RPM_BUILD_ROOT/usr/share/%{name}
|
||||
cp -pr examples $RPM_BUILD_ROOT/usr/share/%{name}
|
||||
|
||||
%if %{gcj_support}
|
||||
install -dm 755 $RPM_BUILD_ROOT%{_libdir}
|
||||
install -pm 755 bin/lib/lib%{name}*.jar.so \
|
||||
$RPM_BUILD_ROOT%{_libdir}/lib%{name}-%{version}.jar.so
|
||||
ln -s lib%{name}-%{version}.jar.so $RPM_BUILD_ROOT%{_libdir}/lib%{name}.jar.so
|
||||
|
||||
gcjdbdir=$RPM_BUILD_ROOT`gcj-dbtool -p %{_libdir}`.d
|
||||
mkdir -p $gcjdbdir
|
||||
gcj-dbtool -n $gcjdbdir/%{name}.db 100
|
||||
gcj-dbtool -f $gcjdbdir/%{name}.db $RPM_BUILD_ROOT%{_javadir}/%{name}.jar \
|
||||
%{_libdir}/lib%{name}.jar.so
|
||||
%endif
|
||||
|
||||
%clean
|
||||
rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%if %{gcj_support}
|
||||
%post
|
||||
/usr/bin/rebuild-gcj-db %{_libdir}
|
||||
|
||||
%postun
|
||||
/usr/bin/rebuild-gcj-db %{_libdir}
|
||||
%endif
|
||||
|
||||
%files
|
||||
%defattr(0644,root,root,0755)
|
||||
%{_javadir}/*.jar
|
||||
%doc LICENSE README
|
||||
%defattr(0755,root,root,0755)
|
||||
/usr/bin/*
|
||||
%if %{gcj_support}
|
||||
%{_libdir}/gcj-4.0.0/classmap.db.d/%{name}.db
|
||||
%{_libdir}/lib%{name}-%{version}.jar.so
|
||||
%{_libdir}/lib%{name}.jar.so
|
||||
%endif
|
||||
|
||||
%files manual
|
||||
%defattr(0644,root,root,0755)
|
||||
@ -77,9 +112,13 @@ rm -rf $RPM_BUILD_ROOT
|
||||
|
||||
%files demo
|
||||
%defattr(0644,root,root,0755)
|
||||
/usr/share/%{name}/*
|
||||
%{_datadir}/%{name}/*
|
||||
|
||||
%changelog
|
||||
* Thu Jun 09 2005 Andrew Overholt <overholt@redhat.com> 3.2-1jpp_1fc
|
||||
- Build for Fedora.
|
||||
- Natively-compile.
|
||||
|
||||
* Thu Mar 4 2004 Frank Ch. Eigler <fche@redhat.com> 0:3.2-1jpp_1rh
|
||||
- RH vacuuming
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user