SPECS: ant.spec - do not create/delete files in %post/%postun. Use %install...
pawelz
pawelz at pld-linux.org
Tue Oct 21 11:33:43 CEST 2008
Author: pawelz Date: Tue Oct 21 09:33:43 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- do not create/delete files in %post/%postun. Use %install/%files sections
---- Files affected:
SPECS:
ant.spec (1.92 -> 1.93)
---- Diffs:
================================================================
Index: SPECS/ant.spec
diff -u SPECS/ant.spec:1.92 SPECS/ant.spec:1.93
--- SPECS/ant.spec:1.92 Thu Dec 27 18:24:08 2007
+++ SPECS/ant.spec Tue Oct 21 11:33:37 2008
@@ -680,6 +680,7 @@
# javadoc
install -d $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
+ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
# fix link between manual and javadoc
cd docs/manual
@@ -689,15 +690,6 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%post javadoc
-rm -f %{_javadocdir}/%{name}
-ln -s %{name}-%{version} %{_javadocdir}/%{name}
-
-%postun javadoc
-if [ "$1" = "0" ]; then
- rm -f %{_javadocdir}/%{name}
-fi
-
%files
%defattr(644,root,root,755)
%doc KEYS LICENSE* README WHATSNEW
@@ -887,6 +879,7 @@
%files javadoc
%defattr(644,root,root,755)
%{_javadocdir}/%{name}-%{version}
+%{_javadocdir}/%{name}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -894,6 +887,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.93 2008/10/21 09:33:37 pawelz
+- do not create/delete files in %post/%postun. Use %install/%files sections
+
Revision 1.92 2007/12/27 17:24:08 glen
- rel 2
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/ant.spec?r1=1.92&r2=1.93&f=u
More information about the pld-cvs-commit
mailing list