8f08240
%global srcname pybtex-docutils
8f08240
8f08240
Name:           python-%{srcname}
4d1b9a3
Version:        1.0.0
b9562d7
Release:        2%{?dist}
8f08240
Summary:        Docutils backend for pybtex
8f08240
8f08240
License:        MIT
8f08240
URL:            https://github.com/mcmtroffaes/%{srcname}
57b8d04
Source0:        %pypi_source
8f08240
BuildArch:      noarch
8f08240
d5b8add
BuildRequires:  make
4bfea03
BuildRequires:  pyproject-rpm-macros
e702c6a
BuildRequires:  python3-docs
d5b8add
BuildRequires:  %{py3_dist pytest}
d5b8add
BuildRequires:  %{py3_dist sphinx}
e702c6a
e702c6a
%global common_desc %{expand:
e702c6a
This package contains a docutils backend for pybtex, a BibTeX-compatible
e702c6a
bibliography processor written in Python.  Bibliographic references in
e702c6a
BibTeX format (or any other format supported by pybtex) can be inserted
e702c6a
into python documentation to be rendered by docutils.}
8f08240
a91316d
%description %common_desc
8f08240
8f08240
%package -n python3-%{srcname}
8f08240
Summary:        Docutils backend for pybtex
8f08240
Provides:       bundled(jquery)
8f08240
Provides:       bundled(js-underscore)
8f08240
a91316d
%description -n python3-%{srcname} %common_desc
8f08240
8f08240
%prep
562ff82
%autosetup -n %{srcname}-%{version} -p1
8f08240
e702c6a
# Update the sphinx theme name
e702c6a
sed -i "s/'default'/'classic'/" doc/conf.py
8f08240
e702c6a
# Use local objects.inv for intersphinx
e702c6a
sed -i "s|\('http://docs\.python\.org/', \)None|\1'%{_docdir}/python3-docs/html/objects.inv'|" doc/conf.py
8f08240
4bfea03
%generate_buildrequires
03a8926
%pyproject_buildrequires -r
4bfea03
8f08240
%build
4bfea03
%pyproject_wheel
e702c6a
PYTHONPATH=$PWD make -C doc html
4bfea03
rst2html --no-datestamp LICENSE.rst LICENSE.html
4d1b9a3
rst2html --no-datestamp README.rst README.html
8f08240
8f08240
%install
4bfea03
%pyproject_install
8f08240
8f08240
%check
03a8926
%pytest test
8f08240
8f08240
%files -n python3-%{srcname}
4d1b9a3
%doc README.html doc/_build/html/*
4bfea03
%license LICENSE.html
8f08240
%{python3_sitelib}/pybtex_docutils*
8f08240
%{python3_sitelib}/__pycache__/pybtex_docutils*
8f08240
8f08240
%changelog
b9562d7
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
b9562d7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
b9562d7
4d1b9a3
* Fri Jan 15 2021 Jerry James <loganjerry@gmail.com> - 1.0.0-1
4d1b9a3
- Version 1.0.0
4d1b9a3
- Drop upstream patches
4d1b9a3
03a8926
* Tue Aug 11 2020 Miro Hrončok <mhroncok@redhat.com> - 0.2.2-6
03a8926
- Fix build with tox 3.19 (by not using it without tox config)
03a8926
f59c69e
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-5
f59c69e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
f59c69e
8b609f5
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 0.2.2-4
8b609f5
- Rebuilt for Python 3.9
8b609f5
562ff82
* Wed Apr 22 2020 Jerry James <loganjerry@gmail.com> - 0.2.2-3
562ff82
- Add upstream patches to switch from nose to pytest
562ff82
bab90ac
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.2-2
bab90ac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
bab90ac
e702c6a
* Wed Oct 16 2019 Jerry James <loganjerry@gmail.com> - 0.2.2-1
e702c6a
- New upstream version
e702c6a
bfe2c74
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.1-15
bfe2c74
- Rebuilt for Python 3.8.0rc1 (#1748018)
bfe2c74
263ff5d
* Sun Aug 18 2019 Miro Hrončok <mhroncok@redhat.com> - 0.2.1-14
263ff5d
- Rebuilt for Python 3.8
263ff5d
053f7b2
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-13
053f7b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
053f7b2
e8b860e
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-12
e8b860e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
e8b860e
8bae713
* Thu Nov 01 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.1-11
8bae713
- Subpackage python2-pybtex-docutils has been removed
8bae713
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
8bae713
f1283d0
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-10
f1283d0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
f1283d0
26b98ee
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.2.1-9
26b98ee
- Rebuilt for Python 3.7
26b98ee
ea42108
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.2.1-8
ea42108
- Update Python 2 dependency declarations to new packaging standards
ea42108
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
ea42108
b47882f
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-7
b47882f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
b47882f
a7b589b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-6
a7b589b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
a7b589b
b9ec3de
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.1-5
b9ec3de
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
b9ec3de
1079c75
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.2.1-4
1079c75
- Rebuild for Python 3.6
1079c75
d38cc7a
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.1-3
d38cc7a
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
d38cc7a
8f08240
* Wed Mar  2 2016 Jerry James <loganjerry@gmail.com> - 0.2.1-2
8f08240
- Expand package description
8f08240
- Fix sphinx and noseutils invocations for python 3
8f08240
- Do not convert license file to HTML
8f08240
8f08240
* Thu Feb 25 2016 Jerry James <loganjerry@gmail.com> - 0.2.1-1
8f08240
- Initial RPM