rpms/doctorj/FC-5 doctorj.spec,1.15,1.16
Michael J Knox (mjk)
fedora-extras-commits at redhat.com
Sun Jun 11 01:45:54 UTC 2006
Author: mjk
Update of /cvs/extras/rpms/doctorj/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv23279/FC-5
Modified Files:
doctorj.spec
Log Message:
build shared objects (bz#194806)
spec mods to comply with http://fedoraproject.org/wiki/NativeJava
Index: doctorj.spec
===================================================================
RCS file: /cvs/extras/rpms/doctorj/FC-5/doctorj.spec,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -r1.15 -r1.16
--- doctorj.spec 29 Apr 2006 21:56:10 -0000 1.15
+++ doctorj.spec 11 Jun 2006 01:45:54 -0000 1.16
@@ -1,6 +1,6 @@
Name: doctorj
Version: 5.0.0
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Java source code analyzer
Group: Development/Tools
@@ -9,13 +9,12 @@
Source: http://download.sf.net/doctorj/%{name}-%{version}.tar.gz
Patch0: classpath_fix.patch
-Requires: jre
-BuildRequires: java-devel
+BuildRequires: java-gcj-compat-devel >= 1.0.31
+Requires(post): java-gcj-compat >= 1.0.31
+Requires(postun): java-gcj-compat >= 1.0.31
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildArch: noarch
-
%description
DoctorJ analyzes Java code, in the following functional areas:
documentation verification, statistics generation and syntax analysis.
@@ -32,17 +31,40 @@
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}
+# build .so
+%{_bindir}/aot-compile-rpm
+
+# fix ecute perms on shell script
+chmod +x %{buildroot}/%{_bindir}/%{name}
+
%clean
rm -rf %{buildroot}
+%post
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+ %{_bindir}/rebuild-gcj-db
+fi
+
+%postun
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+ %{_bindir}/rebuild-gcj-db
+fi
+
%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/doctorj
%{_mandir}/man1/doctorj.1*
%{_datadir}/%{name}
+%{_libdir}/gcj/%{name}
%changelog
+* Sun Jun 11 2006 Michael J. Knox <michael[AT]knox.net.nz> - 5.0.0-5
+- build shared objects (bz#194806)
+- spec mods to comply with http://fedoraproject.org/wiki/NativeJava
+
* Sun Apr 30 2006 Michael J. Knox <michael[AT]knox.net.nz> - 5.0.0-3
- based on advise from Ville Skyttä, changed buildrequires and requires
- made package noarch
More information about the scm-commits
mailing list