packages: docutils/docutils.spec - '.py' suffix removed from %{_bindir} scr...

jajcus jajcus at pld-linux.org
Wed Apr 7 18:50:01 CEST 2010


Author: jajcus                       Date: Wed Apr  7 16:50:01 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- '.py' suffix removed from %{_bindir} scripts. That worked well enough in 
  the python-docutils.spec

---- Files affected:
packages/docutils:
   docutils.spec (1.12 -> 1.13) 

---- Diffs:

================================================================
Index: packages/docutils/docutils.spec
diff -u packages/docutils/docutils.spec:1.12 packages/docutils/docutils.spec:1.13
--- packages/docutils/docutils.spec:1.12	Wed Apr  7 18:37:31 2010
+++ packages/docutils/docutils.spec	Wed Apr  7 18:49:56 2010
@@ -1,9 +1,5 @@
 # $Revision$, $Date$
 #
-# TODO:
-#	- check if ".py" suffix can be striped from the %{_bindir} scripts
-#	  (*.py in %{_bindir} is generally a very bad idea)
-#
 Summary:	Documentation Utilities
 Summary(pl.UTF-8):	Narzędzia do tworzenia dokumentacji
 Name:		docutils
@@ -67,8 +63,12 @@
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
 
+for f in $RPM_BUILD_ROOT%{_bindir}/*.py ; do
+	mv "${f}" "${f%.py}"
+done
+
 install extras/roman.py $RPM_BUILD_ROOT%{py_sitescriptdir}
-install tools/rstpep2html.py $RPM_BUILD_ROOT%{_bindir}
+
 %py_comp $RPM_BUILD_ROOT%{py_sitescriptdir}
 %py_ocomp $RPM_BUILD_ROOT%{py_sitescriptdir}
 %py_postclean
@@ -93,6 +93,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.13  2010/04/07 16:49:56  jajcus
+- '.py' suffix removed from %{_bindir} scripts. That worked well enough in
+  the python-docutils.spec
+
 Revision 1.12  2010/04/07 16:37:31  jajcus
 - python-docutils package added
 - Release: 2
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/docutils/docutils.spec?r1=1.12&r2=1.13&f=u



More information about the pld-cvs-commit mailing list