- Bump for FC6 rebuild.

- Remove python byte compilation as this is handled automatically in FC4+.
- No longer %ghost .pyo files.
This commit is contained in:
Toshio くらとみ 2006-08-30 06:16:15 +00:00
parent 174e4d2dca
commit b1583bab26

View File

@ -4,7 +4,7 @@
Name: python-%{srcname}
Version: 0.4
Release: 2%{?dist}
Release: 3%{?dist}
Summary: A system for processing plaintext documentation
Group: Development/Languages
@ -42,7 +42,8 @@ CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
%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`
@ -57,37 +58,25 @@ rm -f licenses/docutils.conf
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')"
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
install -D -m 0644 extras/$file $fullextradest/$file
%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.