rpms/flute/devel flute.spec,1.8,1.9

Caolan McNamara caolanm at fedoraproject.org
Thu Jul 8 09:59:07 UTC 2010


Author: caolanm

Update of /cvs/pkgs/rpms/flute/devel
In directory cvs01.phx2.fedoraproject.org:/tmp/cvs-serv9673

Modified Files:
	flute.spec 
Log Message:
sync with GCJGuidelines packaging


Index: flute.spec
===================================================================
RCS file: /cvs/pkgs/rpms/flute/devel/flute.spec,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -p -r1.8 -r1.9
--- flute.spec	8 Jul 2010 09:35:15 -0000	1.8
+++ flute.spec	8 Jul 2010 09:59:06 -0000	1.9
@@ -1,5 +1,5 @@
 # Use rpmbuild --without gcj to disable native bits
-%define with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}
+%global with_gcj %{!?_without_gcj:1}%{?_without_gcj:0}
 
 Name: flute
 Version: 1.3.0
@@ -58,12 +58,28 @@ cp -rp build/api $RPM_BUILD_ROOT%{_javad
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post
+%if %{with_gcj}
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
+%postun
+%if %{with_gcj}
+if [ -x %{_bindir}/rebuild-gcj-db ]
+then
+  %{_bindir}/rebuild-gcj-db
+fi
+%endif
+
 %files
 %defattr(0644,root,root,0755)
 %doc COPYRIGHT.html
 %{_javadir}/*.jar
 %if %{with_gcj}
-%attr(-,root,root,-) %{_libdir}/gcj/%{name}
+%attr(-,root,root) %{_libdir}/gcj/%{name}
 %endif
 
 %files javadoc
@@ -73,7 +89,8 @@ rm -rf $RPM_BUILD_ROOT
 
 %changelog
 * Thu Jul 08 2010 Caolán McNamara <caolanm at redhat.com> - 1.3.0-5.OOo31
-- add COPYRIGHT to all subpackages
+- add COPYRIGHT to all subpackages, sync with GCJGuidelines packaging
+  guidelines
 
 * Sun Jun 13 2010 Caolán McNamara <caolanm at redhat.com> - 1.3.0-4.OOo31
 - rpmlint warnings



More information about the scm-commits mailing list