From e44950d1b54ca4e9eee1db5bf6a2afd0a6646a05 Mon Sep 17 00:00:00 2001 From: Automatic Build System Date: Sat, 6 Jan 2024 11:05:50 +0100 Subject: [PATCH] automatic update by autodist [release 0.11-1mamba;Sat Jul 27 2013] --- README.md | 3 ++ python-docutils.spec | 76 ++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 79 insertions(+) create mode 100644 python-docutils.spec diff --git a/README.md b/README.md index 2febcbb..c657664 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # python-docutils +Docutils is an open-source text processing system for processing plaintext documentation into useful formats, such as HTML or LaTeX. +It includes reStructuredText, the easy to read, easy to use, what-you-see-is-what-you-get plaintext markup language. + diff --git a/python-docutils.spec b/python-docutils.spec new file mode 100644 index 0000000..0a5b972 --- /dev/null +++ b/python-docutils.spec @@ -0,0 +1,76 @@ +Name: python-docutils +Version: 0.11 +Release: 1mamba +Summary: Python Documentation Utilities +Group: System/Libraries/Python +Vendor: openmamba +Distribution: openmamba +Packager: Stefano Cotta Ramusino +URL: http://docutils.sourceforge.net/ +Source: http://downloads.sourceforge.net/project/docutils/docutils/%{version}/docutils-%{version}.tar.gz +License: Python, BSD, GPL, public domain +## AUTOBUILDREQ-BEGIN +BuildRequires: libpython27-devel +## AUTOBUILDREQ-END +BuildRequires: python-setuptools +Requires: python27 >= %python27_version +Requires: python-Imaging +BuildRoot: %{_tmppath}/%{name}-%{version}-root +BuildArch: noarch + +%description +Docutils is an open-source text processing system for processing plaintext documentation into useful formats, such as HTML or LaTeX. +It includes reStructuredText, the easy to read, easy to use, what-you-see-is-what-you-get plaintext markup language. + +%prep +%setup -q -n docutils-%{version} + +%build +CFLAGS="%{optflags}" %{__python27} setup.py build + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%{__python27} setup.py install \ + -O1 --skip-build \ + --root="%{buildroot}" \ + --install-headers=%{_includedir}/python%{python27_version} \ + --install-lib=%{python27_sitearch} \ + --record=%{name}.filelist + +sed -i "\,^%{_bindir},d" %{name}.filelist + +# remove .py extension for executable +for file in %{buildroot}%{_bindir}/*.py; do + mv $file %{buildroot}%{_bindir}/$(basename $file .py) +done + +# remove no license file +rm -f licenses/docutils.conf + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%files -f %{name}.filelist +%defattr(-,root,root) +%{_bindir}/rst* +%dir %{python27_sitearch}/docutils +%doc *.txt licenses docs tools/editors + +%changelog +* Sat Jul 27 2013 Automatic Build System 0.11-1mamba +- automatic update by autodist + +* Fri May 17 2013 Silvan Calarco 0.10-2mamba +- rebuilt with python 2.7 + +* Mon Jan 07 2013 Automatic Build System 0.10-1mamba +- automatic version update by autodist + +* Tue Aug 30 2011 Stefano Cotta Ramusino 0.8.1-1mamba +- update to 0.8.1 + +* Tue Oct 12 2010 Stefano Cotta Ramusino 0.7-1mamba +- update to 0.7 + +* Tue Jan 19 2010 Stefano Cotta Ramusino 0.6-1mamba +- package created by autospec