Search
j0ke.net Open Build Service
>
Projects
>
devel
:
python
>
python-docutils
> python-docutils.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File python-docutils.spec of Package python-docutils
Name: python-docutils Version: 0.9.1 Release: 1 Url: http://docutils.sourceforge.net/ License: BSD Summary: Python documentation generator Group: Development/Languages/Python Source0: docutils-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: python-distribute BuildRequires: python BuildRequires: python-devel Requires: python Requires: python-distribute %description Docutils is an open-source text processing system for processing plaintext documentation into useful formats, such as HTML, LaTeX, man-pages, open-document or XML. It includes reStructuredText, the easy to read, easy to use, what-you-see-is-what-you-get plaintext markup language. %prep %setup -n docutils-%{version} %build python setup.py build %install %if 0%{?suse_version} python setup.py install \ --root=%{buildroot} \ --prefix=%{_prefix} \ --record-rpm=%{name}.filelist %else python setup.py install \ --root=%{buildroot} \ --prefix=%{_prefix} cd $RPM_BUILD_ROOT find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > %{_builddir}/docutils-%{version}/%{name}.filelist find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> %{_builddir}/docutils-%{version}/%{name}.filelist find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> %{_builddir}/docutils-%{version}/%{name}.filelist sed -i s@"\.py$"@"\.py\*"@g %{_builddir}/docutils-%{version}/%{name}.filelist %endif %clean rm -rf %{buildroot} %files -f %{name}.filelist %defattr(-,root,root) %doc BUGS.txt COPYING.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt THANKS.txt %changelog