db3da6e
%global pypi_name markups
db3da6e
db3da6e
Name:           python-%{pypi_name}
ad9b8c8
Version:        3.1.3
da5e444
Release:        11%{?dist}
76d84a3
Summary:        A wrapper around various text markups
db3da6e
db3da6e
License:        BSD
db3da6e
URL:            https://github.com/retext-project/pymarkups
db3da6e
Source0:        %{pypi_source Markups}
db3da6e
BuildArch:      noarch
76d84a3
f640295
# Fix tests with Pygments 2.11.2
f640295
# Commit backported from: https://github.com/retext-project/pymarkups/commit/c13ae6633
f640295
Patch:          fix-tests-with-pygments-2.11.patch
f640295
76d84a3
BuildRequires:  python3-devel
db3da6e
BuildRequires:  python3dist(docutils)
db3da6e
BuildRequires:  python3dist(markdown)
db3da6e
BuildRequires:  python3dist(pygments)
db3da6e
BuildRequires:  python3dist(python-markdown-math)
db3da6e
BuildRequires:  python3dist(setuptools)
db3da6e
BuildRequires:  python3dist(textile)
db3da6e
BuildRequires:  python3dist(sphinx)
1f1eb90
BuildRequires:  python3dist(pyyaml)
76d84a3
db3da6e
%description
db3da6e
This module provides a wrapper around various text markup languages. Available
db3da6e
by default are Markdown, reStructuredText and Textile, but you can easily
db3da6e
add your own markups.
76d84a3
76d84a3
db3da6e
%package -n     python3-%{pypi_name}
db3da6e
Summary:        %{summary}
db3da6e
%{?python_provide:%python_provide python3-%{pypi_name}}
76d84a3
db3da6e
%description -n python3-%{pypi_name}
db3da6e
This module provides a wrapper around various text markup languages. Available
db3da6e
by default are Markdown_, reStructuredText_ and Textile_, but you can easily
db3da6e
add your own markups.
76d84a3
76d84a3
db3da6e
%package -n python-%{pypi_name}-doc
db3da6e
Summary:        markups documentation
db3da6e
%description -n python-%{pypi_name}-doc
db3da6e
Documentation for markups
76d84a3
76d84a3
76d84a3
%prep
f640295
%autosetup -p1 -n Markups-%{version}
db3da6e
# Remove bundled egg-info
db3da6e
rm -rf %{pypi_name}.egg-info
76d84a3
76d84a3
%build
76d84a3
%py3_build
db3da6e
# generate html docs
db3da6e
PYTHONPATH=${PWD} sphinx-build-3 docs html
db3da6e
# remove the sphinx-build leftovers
db3da6e
rm -rf html/.{doctrees,buildinfo}
76d84a3
76d84a3
%install
76d84a3
%py3_install
76d84a3
76d84a3
%check
76d84a3
%{__python3} setup.py test -v
76d84a3
db3da6e
%files -n python3-%{pypi_name}
db3da6e
%license LICENSE
db3da6e
%doc README.rst
db3da6e
%{python3_sitelib}/%{pypi_name}
db3da6e
%{python3_sitelib}/Markups-%{version}-py%{python3_version}.egg-info
db3da6e
db3da6e
%files -n python-%{pypi_name}-doc
db3da6e
%doc html
76d84a3
%license LICENSE
76d84a3
76d84a3
%changelog
da5e444
* Sat Jun 08 2024 Python Maint <python-maint@redhat.com> - 3.1.3-11
da5e444
- Rebuilt for Python 3.13
da5e444
0d583f8
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-10
0d583f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
0d583f8
90747f9
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-9
90747f9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
90747f9
816af92
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-8
816af92
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
816af92
3bf1357
* Fri Jun 16 2023 Python Maint <python-maint@redhat.com> - 3.1.3-7
3bf1357
- Rebuilt for Python 3.12
3bf1357
2c96a9d
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-6
2c96a9d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
2c96a9d
9214e80
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-5
9214e80
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
9214e80
655403d
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 3.1.3-4
655403d
- Rebuilt for Python 3.11
655403d
f640295
* Mon Feb 07 2022 Karolina Surma <ksurma@redhat.com> - 3.1.3-3
f640295
- Fix tests failures with Pygments 2.11
f640295
7f565b5
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.3-2
7f565b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
7f565b5
ad9b8c8
* Tue Jan 11 2022 José Matos <jamatos@fedoraproject.org> - 3.1.3-1
ad9b8c8
- Update source to 3.1.3
ad9b8c8
a3149ee
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-5
a3149ee
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
a3149ee
b040251
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 3.0.0-4
b040251
- Rebuilt for Python 3.10
b040251
158e1cf
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-3
158e1cf
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
158e1cf
db3da6e
* Mon Jul  6 2020 José Matos <jamatos@fedoraproject.org> - 3.0.0-2
db3da6e
- Remove manual Requires (they are autodetected)
db3da6e
- Clean the Description text
db3da6e
db3da6e
* Sun May 03 2020 José Abílio Matos <jamatos@fc.up.pt> - 3.0.0-1
db3da6e
- Update to 3.0.0 for resubmission
db3da6e
76d84a3
* Wed Oct 17 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0.0-11
76d84a3
- Subpackage python2-markups has been removed
76d84a3
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
76d84a3
76d84a3
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-10
76d84a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
76d84a3
76d84a3
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-9
76d84a3
- Rebuilt for Python 3.7
76d84a3
76d84a3
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-8
76d84a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
76d84a3
76d84a3
* Thu Jan 25 2018 Iryna Shcherbina <ishcherb@redhat.com> - 2.0.0-7
76d84a3
- Update Python 2 dependency declarations to new packaging standards
76d84a3
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
76d84a3
76d84a3
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 2.0.0-6
76d84a3
- Python 2 binary package renamed to python2-markups
76d84a3
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
76d84a3
76d84a3
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-5
76d84a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
76d84a3
76d84a3
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-4
76d84a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
76d84a3
76d84a3
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 2.0.0-3
76d84a3
- Rebuild for Python 3.6
76d84a3
76d84a3
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.0-2
76d84a3
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
76d84a3
76d84a3
* Fri May 13 2016 Mario Blättermann <mario.blaettermann@gmail.com> - 2.0-1
76d84a3
- New upstream version
76d84a3
76d84a3
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-2
76d84a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
76d84a3
76d84a3
* Sat Jan 23 2016 Mario Blättermann <mario.blaettermann@gmail.com> - 1.0.1-1
76d84a3
- New upstream version
76d84a3
76d84a3
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.3-5
76d84a3
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
76d84a3
76d84a3
* Sat Sep 26 2015 Mario Blättermann <mario.blaettermann@gmail.com> - 0.6.3-4
76d84a3
- Yet some more runtime requirements
76d84a3
76d84a3
* Thu Sep 24 2015 Mario Blättermann <mario.blaettermann@gmail.com> - 0.6.3-3
76d84a3
- Fix runtime requirements
76d84a3
76d84a3
* Tue Sep 22 2015 Mario Blättermann <mario.blaettermann@gmail.com> - 0.6.3-2
76d84a3
- Add python-docutils as runtime requirement
76d84a3
76d84a3
* Fri Sep 11 2015 Mario Blättermann <mario.blaettermann@gmail.com> - 0.6.3-1
76d84a3
- New upstream version
76d84a3
- Disable the tests for now
76d84a3
76d84a3
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.2-5
76d84a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
76d84a3
76d84a3
* Wed Dec 31 2014 Mario Blättermann <mario.blaettermann@gmail.com> - 0.5.2-4
76d84a3
- Fix the disttag
76d84a3
- Remove LICENSE from %%doc in the python3 package
76d84a3
76d84a3
* Tue Dec 30 2014 Mario Blättermann <mario.blaettermann@gmail.com> - 0.5.2-3
76d84a3
- Use the %%license macro
76d84a3
76d84a3
* Sat Dec 06 2014 Mario Blättermann <mario.blaettermann@gmail.com> - 0.5.2-2
76d84a3
- Some cleanup due to rpmlint warnings
76d84a3
76d84a3
* Sun Nov 30 2014 Mario Blättermann <mario.blaettermann@gmail.com> - 0.5.2-1
76d84a3
- New upstream version
76d84a3
- Enable both Python 2 and 3
76d84a3
76d84a3
* Sun May 05 2013 Huaren Zhong <huaren.zhong@gmail.com> - 0.2.4
76d84a3
- Rebuild for Fedora