|
|
ec63472 |
%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
|
|
|
ec63472 |
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib())")}
|
|
|
ec63472 |
%endif
|
|
|
ec63472 |
%global modname zope.structuredtext
|
|
|
ec63472 |
|
|
|
ec63472 |
Summary: StructuredText parser
|
|
|
ec63472 |
Name: python-zope-structuredtext
|
|
|
985ff9d |
Version: 4.1.0
|
|
|
985ff9d |
Release: 1%{?dist}
|
|
|
ec63472 |
Source0: http://pypi.python.org/packages/source/z/%{modname}/%{modname}-%{version}.tar.gz
|
|
|
ec63472 |
License: ZPLv2.1
|
|
|
ec63472 |
Group: Development/Libraries
|
|
|
ec63472 |
BuildArch: noarch
|
|
|
ec63472 |
URL: http://pypi.python.org/pypi/zope.structuredtext
|
|
|
ec63472 |
|
|
|
ec63472 |
BuildRequires: python2-devel
|
|
|
ec63472 |
BuildRequires: python-setuptools
|
|
|
ec63472 |
BuildRequires: python-sphinx
|
|
|
ec63472 |
|
|
|
ec63472 |
%description
|
|
|
ec63472 |
This package provides a parser and renderers for the classic Zope
|
|
|
ec63472 |
"structured text" markup dialect (STX). STX is a plain text markup in
|
|
|
ec63472 |
which document structure is signaled primarily by indentation
|
|
|
ec63472 |
|
|
|
ec63472 |
%prep
|
|
|
ec63472 |
%setup -q -n %{modname}-%{version}
|
|
|
ec63472 |
|
|
|
ec63472 |
%build
|
|
|
ec63472 |
%{__python} setup.py build
|
|
|
ec63472 |
pushd docs
|
|
|
ec63472 |
PYTHONPATH=../src make html
|
|
|
ec63472 |
popd
|
|
|
ec63472 |
|
|
|
ec63472 |
%install
|
|
|
ec63472 |
%{__python} setup.py install --root=%{buildroot}
|
|
|
ec63472 |
|
|
|
ec63472 |
# Clean up the documentation
|
|
|
ec63472 |
mv docs/_build/html .
|
|
|
ec63472 |
rm -rf html/.buildinfo
|
|
|
ec63472 |
|
|
|
ec63472 |
%check
|
|
|
ec63472 |
%{__python} setup.py test
|
|
|
ec63472 |
|
|
|
ec63472 |
%files
|
|
|
ec63472 |
%defattr(-,root,root,-)
|
|
|
985ff9d |
%doc CHANGES.rst README.rst TODO.txt COPYRIGHT.txt html/
|
|
|
985ff9d |
%license LICENSE.txt
|
|
|
ec63472 |
%{python_sitelib}/zope/structuredtext/
|
|
|
ec63472 |
# Co-own %%{python_sitelib}/zope/
|
|
|
ec63472 |
%dir %{python_sitelib}/zope/
|
|
|
ec63472 |
# exclude the tests and data needed only for tests
|
|
|
ec63472 |
%exclude %{python_sitelib}/zope/structuredtext/tests.py*
|
|
|
ec63472 |
%exclude %{python_sitelib}/zope/structuredtext/regressions/
|
|
|
ec63472 |
%{python_sitelib}/%{modname}-*.egg-info
|
|
|
ec63472 |
%{python_sitelib}/%{modname}-*-nspkg.pth
|
|
|
ec63472 |
|
|
|
ec63472 |
|
|
|
ec63472 |
%changelog
|
|
|
985ff9d |
* Tue Apr 05 2016 Ralph Bean <rbean@redhat.com> - 4.1.0-1
|
|
|
985ff9d |
- Latest upstream.
|
|
|
985ff9d |
|
|
|
e332f94 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 3.5.1-6
|
|
|
e332f94 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
e332f94 |
|
|
|
280dc25 |
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.1-5
|
|
|
280dc25 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
280dc25 |
|
|
|
350cda7 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.1-4
|
|
|
350cda7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
350cda7 |
|
|
|
868723a |
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.1-3
|
|
|
868723a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
868723a |
|
|
|
621f72b |
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.1-2
|
|
|
621f72b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
621f72b |
|
|
|
ec63472 |
* Mon Mar 12 2012 Robin Lee <cheeselee@fedoraproject.org> - 3.5.1-1
|
|
|
ec63472 |
- Update to 3.5.1
|
|
|
ec63472 |
|
|
|
ec63472 |
* Thu Sep 23 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.5.0-2
|
|
|
ec63472 |
- Review request submitted
|
|
|
ec63472 |
|
|
|
ec63472 |
* Thu Jun 17 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.5.0-1
|
|
|
ec63472 |
- Initial packaging
|