rpms/python-docutils/FC-4 python-docutils.spec,1.5,1.6
Toshio Ernie Kuratomi (toshio)
fedora-extras-commits at redhat.com
Wed Aug 30 06:28:25 UTC 2006
Author: toshio
Update of /cvs/extras/rpms/python-docutils/FC-4
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv17424
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-4/python-docutils.spec,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- python-docutils.spec 17 Jan 2006 19:50:17 -0000 1.5
+++ python-docutils.spec 30 Aug 2006 06:28:25 -0000 1.6
@@ -4,15 +4,15 @@
Name: python-%{srcname}
Version: 0.4
-Release: 1%{?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,28 @@
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.
+
* Sun Jan 15 2006 Toshio Kuratomi <toshio-tiki-lounge.com> 0.4-1
- Update to 0.4.
- Scripted the listing of files in the python module.
More information about the scm-commits
mailing list