rpms/python-docutils/FC-5 python-docutils.spec,1.6,1.7

Toshio Ernie Kuratomi (toshio) fedora-extras-commits at redhat.com
Wed Aug 30 06:27:38 UTC 2006


Author: toshio

Update of /cvs/extras/rpms/python-docutils/FC-5
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17283

Modified Files:
	python-docutils.spec 
Log Message:
* Tue Aug 29 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-3
- Remove python byte compilation as this is handled automatically in FC4+.
- No longer %ghost .pyo files.



Index: python-docutils.spec
===================================================================
RCS file: /cvs/extras/rpms/python-docutils/FC-5/python-docutils.spec,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -r1.6 -r1.7
--- python-docutils.spec	16 Feb 2006 17:58:29 -0000	1.6
+++ python-docutils.spec	30 Aug 2006 06:27:38 -0000	1.7
@@ -4,15 +4,15 @@
 
 Name:           python-%{srcname}
 Version:        0.4
-Release:        2%{?dist}
+Release:        3%{?dist}
 Summary:        A system for processing plaintext documentation
 
 Group:          Development/Languages
 License:        Public Domain, BSD, Python License, GPL - see COPYING.txt
 URL:            http://docutils.sourceforge.net
-Source0:	http://dl.sourceforge.net/docutils/%{srcname}-%{version}.tar.gz
+Source0:        http://dl.sourceforge.net/docutils/%{srcname}-%{version}.tar.gz
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
-BuildArch:	noarch
+BuildArch:       noarch
 
 BuildRequires:  python-devel
 Requires(missingok): python-imaging
@@ -42,10 +42,11 @@
 
 %install
 rm -rf %{buildroot}
-%{__python} setup.py install -O1 --skip-build --root %{buildroot}
-	
+
+%{__python} setup.py install --skip-build --root %{buildroot}
+
 for file in %{buildroot}/%{_bindir}/*.py; do
-	mv $file `dirname $file`/`basename $file .py`
+    mv $file `dirname $file`/`basename $file .py`
 done
 
 # We want the licenses but don't need this build file
@@ -57,37 +58,25 @@
 file=roman.py
 extradest=%{python_sitelib}
 fullextradest=%{buildroot}/$extradest
-install -m 0644 extras/$file $fullextradest
-%{__python} -c "import py_compile; py_compile.compile(\
-    '$fullextradest/$file', \
-    '$fullextradest/$file' + 'c', \
-    '$extradest/$file')"
-%{__python} -O -c "import py_compile; py_compile.compile(\
-    '$fullextradest/$file', \
-    '$fullextradest/$file' + 'o', \
-    '$extradest/$file')"
+install -D -m 0644 extras/$file $fullextradest/$file
     
-echo '%defattr (0644,root,root,0755)' > pyfiles
-find %{buildroot}%{python_sitelib}/docutils -type d | \
-  sed 's:%{buildroot}\(.*\):%dir \1:' >> pyfiles
-find %{buildroot}%{python_sitelib}/docutils -not -type d -not -name '*.pyo' | \
-  sed 's:%{buildroot}\(.*\):\1:' >> pyfiles
-find %{buildroot}%{python_sitelib}/docutils -not -type d -name '*.pyo' | \
-  sed 's:%{buildroot}\(.*\):%ghost \1:' >> pyfiles
-
 %clean
 rm -rf %{buildroot}
 
-%files -f pyfiles
+%files
 %defattr(-,root,root,-)
 %doc BUGS.txt COPYING.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt 
 %doc THANKS.txt licenses docs tools/editors
 %{_bindir}/*
-%{python_sitelib}/roman.py
-%{python_sitelib}/roman.pyc
-%ghost %{python_sitelib}/roman.pyo
+%{python_sitelib}/docutils/
+%{python_sitelib}/roman.*
 
 %changelog
+* Tue Aug 29 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-3
+- Bump for FC6 rebuild.
+- Remove python byte compilation as this is handled automatically in FC4+.
+- No longer %%ghost .pyo files.
+  
 * Thu Feb 16 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-2
 - Bump and rebuild for FC5.
   




More information about the scm-commits mailing list