|
|
942b768 |
Name: python-pybtex
|
|
|
c2f1d93 |
Version: 0.24.0
|
|
|
443e616 |
Release: 15%{?dist}
|
|
|
540a234 |
Summary: BibTeX-compatible bibliography processor written in Python
|
|
|
540a234 |
|
|
|
540a234 |
License: MIT
|
|
|
8d1c993 |
URL: https://pybtex.org/
|
|
|
942b768 |
Source0: %pypi_source pybtex
|
|
|
12ac5d9 |
# Fix a minor sphinx problem, leads to bad man page output
|
|
|
12ac5d9 |
Patch0: %{name}-parsing.patch
|
|
|
e555ad7 |
# Fix an extlinks configuration error
|
|
|
e555ad7 |
# https://bitbucket.org/pybtex-devs/pybtex/pull-requests/45
|
|
|
e555ad7 |
Patch1: %{name}-extlinks.patch
|
|
|
12ac5d9 |
|
|
|
540a234 |
BuildArch: noarch
|
|
|
540a234 |
|
|
|
44de13f |
BuildRequires: make
|
|
|
540a234 |
BuildRequires: python3-devel
|
|
|
d7bcbe6 |
BuildRequires: python3-docs
|
|
|
0a70427 |
BuildRequires: %{py3_dist sphinx}
|
|
|
540a234 |
|
|
|
12ac5d9 |
%global common_desc %{expand:
|
|
|
12ac5d9 |
Pybtex is a BibTeX-compatible bibliography processor written in Python.
|
|
|
d7bcbe6 |
Pybtex aims to be 100%% compatible with BibTeX. It accepts the same
|
|
|
12ac5d9 |
command line options, fully supports BibTeX’s .bst styles and produces
|
|
|
12ac5d9 |
byte-identical output.
|
|
|
12ac5d9 |
|
|
|
12ac5d9 |
Additionally:
|
|
|
12ac5d9 |
- Pybtex is Unicode-aware.
|
|
|
12ac5d9 |
- Pybtex supports bibliography formats other than BibTeX.
|
|
|
12ac5d9 |
- It is possible to write formatting styles in Python.
|
|
|
12ac5d9 |
- As a bonus, Pythonic styles can produce HTML, Markdown and other
|
|
|
12ac5d9 |
markup besides the usual LaTeX.
|
|
|
12ac5d9 |
Pybtex also includes a Python API for managing bibliographies from Python.}
|
|
|
540a234 |
|
|
|
f581abd |
%description %common_desc
|
|
|
540a234 |
|
|
|
942b768 |
%package -n python3-pybtex
|
|
|
540a234 |
Summary: BibTeX-compatible bibliography processor written in Python
|
|
|
659b109 |
# Needed until this issue is resolved:
|
|
|
659b109 |
# https://bitbucket.org/pybtex-devs/pybtex/issues/169/replace-pkg_resources-with
|
|
|
659b109 |
# See https://src.fedoraproject.org/rpms/babel/pull-request/11
|
|
|
659b109 |
Requires: %{py3_dist setuptools}
|
|
|
8eeedfc |
Provides: bundled(js-jquery)
|
|
|
540a234 |
Provides: bundled(js-underscore)
|
|
|
540a234 |
|
|
|
942b768 |
%description -n python3-pybtex %common_desc
|
|
|
540a234 |
|
|
|
540a234 |
%package doc
|
|
|
8c8b48c |
# The content is MIT. Other licenses are due to files copied in by Sphinx.
|
|
|
8c8b48c |
# _static/_sphinx_javascript_frameworks_compat.js: BSD-2-Clause
|
|
|
8c8b48c |
# _static/basic.css: BSD-2-Clause
|
|
|
8c8b48c |
# _static/doctools.js: BSD-2-Clause
|
|
|
8c8b48c |
# _static/documentation_options.js: BSD-2-Clause
|
|
|
8c8b48c |
# _static/file.png: BSD-2-Clause
|
|
|
8c8b48c |
# _static/jquery*.js: MIT
|
|
|
8c8b48c |
# _static/language_data.js: BSD-2-Clause
|
|
|
8c8b48c |
# _static/minus.png: BSD-2-Clause
|
|
|
8c8b48c |
# _static/plus.png: BSD-2-Clause
|
|
|
8c8b48c |
# _static/searchtools.js: BSD-2-Clause
|
|
|
8c8b48c |
# _static/underscore*.js: MIT
|
|
|
8c8b48c |
# genindex.html: BSD-2-Clause
|
|
|
8c8b48c |
# search.html: BSD-2-Clause
|
|
|
8c8b48c |
# searchindex.js: BSD-2-Clause
|
|
|
8c8b48c |
License: MIT AND BSD-2-Clause
|
|
|
942b768 |
Summary: Documentation for python-pybtex
|
|
|
540a234 |
|
|
|
540a234 |
%description doc
|
|
|
942b768 |
Documentation for python-pybtex.
|
|
|
540a234 |
|
|
|
540a234 |
%prep
|
|
|
0a70427 |
%autosetup -p0 -n pybtex-%{version}
|
|
|
540a234 |
|
|
|
540a234 |
# Remove useless shebang
|
|
|
89ce961 |
sed -i '\@/usr/bin/env python@d' pybtex/cmdline.py
|
|
|
540a234 |
|
|
|
1d53710 |
# Fix shebangs
|
|
|
1d53710 |
for fil in docs/generate_manpages.py \
|
|
|
1d53710 |
pybtex/bibtex/runner.py \
|
|
|
1d53710 |
pybtex/charwidths/make_charwidths.py \
|
|
|
1d53710 |
pybtex/database/{convert,format}/__main__.py \
|
|
|
a0340ce |
pybtex/__main__.py \
|
|
|
a0340ce |
setup.py; do
|
|
|
540a234 |
sed -i 's/env python/python3/' $fil
|
|
|
540a234 |
done
|
|
|
540a234 |
|
|
|
d7bcbe6 |
# Use local objects.inv for intersphinx
|
|
|
d7bcbe6 |
sed -e "s|\('https://docs\.python\.org/3/', \)None|\1'%{_docdir}/python3-docs/html/objects.inv'|" \
|
|
|
d7bcbe6 |
-i docs/source/conf.py
|
|
|
d7bcbe6 |
|
|
|
ac689ea |
%generate_buildrequires
|
|
|
ac689ea |
%pyproject_buildrequires -t
|
|
|
ac689ea |
|
|
|
fbd1d03 |
%build
|
|
|
8d1c993 |
%pyproject_wheel
|
|
|
540a234 |
|
|
|
540a234 |
# Build documentation
|
|
|
8eeedfc |
# Workaround for pygments 2.13. See bz 2127371.
|
|
|
138cbee |
cat >> pybtex.egg-info/entry_points.txt << EOF
|
|
|
8eeedfc |
|
|
|
8eeedfc |
[pygments.styles]
|
|
|
8eeedfc |
pybtex = pybtex_doctools.pygments:PybtexStyle
|
|
|
8eeedfc |
|
|
|
8eeedfc |
[pygments.lexers]
|
|
|
8eeedfc |
bibtex-pybtex = pybtex_doctools.pygments:BibTeXLexer
|
|
|
8eeedfc |
bst-pybtex = pybtex_doctools.pygments:BSTLexer
|
|
|
8eeedfc |
EOF
|
|
|
8eeedfc |
|
|
|
54cedca |
PYTHONPATH=$PWD:$PWD/build/lib make -C docs html man
|
|
|
540a234 |
rm -f docs/build/html/.buildinfo
|
|
|
540a234 |
|
|
|
540a234 |
%install
|
|
|
8d1c993 |
%pyproject_install
|
|
|
942b768 |
%pyproject_save_files pybtex
|
|
|
89ce961 |
|
|
|
12ac5d9 |
mkdir -p %{buildroot}%{_mandir}/man1
|
|
|
12ac5d9 |
cp -p docs/build/man/*.1 %{buildroot}%{_mandir}/man1
|
|
|
0a70427 |
echo ".so man1/pybtex.1" > %{buildroot}%{_mandir}/man1/pybtex-convert.1
|
|
|
0a70427 |
echo ".so man1/pybtex.1" > %{buildroot}%{_mandir}/man1/pybtex-format.1
|
|
|
540a234 |
|
|
|
540a234 |
pushd %{buildroot}%{python3_sitelib}
|
|
|
1d53710 |
rm -fr custom_fixers tests
|
|
|
12ac5d9 |
chmod a+x pybtex/bibtex/runner.py pybtex/charwidths/make_charwidths.py \
|
|
|
540a234 |
pybtex/database/{convert,format}/__main__.py pybtex/__main__.py
|
|
|
540a234 |
popd
|
|
|
540a234 |
|
|
|
540a234 |
%check
|
|
|
d7bcbe6 |
%pytest
|
|
|
540a234 |
|
|
|
942b768 |
%files -n python3-pybtex -f %{pyproject_files}
|
|
|
89ce961 |
%doc README
|
|
|
540a234 |
%{_bindir}/pybtex*
|
|
|
540a234 |
%{_mandir}/man1/pybtex*
|
|
|
540a234 |
|
|
|
540a234 |
%files doc
|
|
|
89ce961 |
%doc CHANGES docs/build/html
|
|
|
540a234 |
|
|
|
540a234 |
%changelog
|
|
|
443e616 |
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-15
|
|
|
443e616 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
443e616 |
|
|
|
18eb865 |
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-14
|
|
|
18eb865 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
18eb865 |
|
|
|
e45ebd7 |
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-13
|
|
|
e45ebd7 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
e45ebd7 |
|
|
|
f1b576d |
* Wed Jun 14 2023 Python Maint <python-maint@redhat.com> - 0.24.0-12
|
|
|
f1b576d |
- Rebuilt for Python 3.12
|
|
|
f1b576d |
|
|
|
e555ad7 |
* Tue Mar 21 2023 Jerry James <loganjerry@gmail.com> - 0.24.0-11
|
|
|
e555ad7 |
- Fix an extlinks configuration error (rhbz#2180478)
|
|
|
e555ad7 |
|
|
|
659b109 |
* Tue Feb 28 2023 Jerry James <loganjerry@gmail.com> - 0.24.0-10
|
|
|
659b109 |
- Depend on setuptools at runtime
|
|
|
659b109 |
|
|
|
ac689ea |
* Thu Feb 23 2023 Jerry James <loganjerry@gmail.com> - 0.24.0-9
|
|
|
ac689ea |
- Dynamically generate BuildRequires
|
|
|
ac689ea |
- Update pygments workaround
|
|
|
ac689ea |
|
|
|
a771f1b |
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-9
|
|
|
a771f1b |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
a771f1b |
|
|
|
8c8b48c |
* Tue Dec 13 2022 Jerry James <loganjerry@gmail.com> - 0.24.0-8
|
|
|
8c8b48c |
- Convert License tags to SPDX
|
|
|
8c8b48c |
|
|
|
8eeedfc |
* Tue Sep 20 2022 Jerry James <loganjerry@gmail.com> - 0.24.0-8
|
|
|
8eeedfc |
- Add workaround for pygments 2.13 (rhbz#2127371)
|
|
|
8eeedfc |
|
|
|
e0bbb8a |
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-7
|
|
|
e0bbb8a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
e0bbb8a |
|
|
|
2c8d466 |
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.24.0-6
|
|
|
2c8d466 |
- Rebuilt for Python 3.11
|
|
|
2c8d466 |
|
|
|
ac4855e |
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-5
|
|
|
ac4855e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
ac4855e |
|
|
|
eca5d4d |
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-4
|
|
|
eca5d4d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
eca5d4d |
|
|
|
a1b6cdf |
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.24.0-3
|
|
|
a1b6cdf |
- Rebuilt for Python 3.10
|
|
|
a1b6cdf |
|
|
|
34116b3 |
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.24.0-2
|
|
|
34116b3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
34116b3 |
|
|
|
c2f1d93 |
* Sun Jan 17 2021 Jerry James <loganjerry@gmail.com> - 0.24.0-1
|
|
|
c2f1d93 |
- Version 0.24.0
|
|
|
c2f1d93 |
|
|
|
0a70427 |
* Mon Oct 12 2020 Jerry James <loganjerry@gmail.com> - 0.23.0-1
|
|
|
0a70427 |
- Version 0.23.0
|
|
|
0a70427 |
- Drop upstreamed -elementtree patch
|
|
|
0a70427 |
|
|
|
abadd6a |
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.2-11.20200126.e1336fb33c92
|
|
|
abadd6a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
abadd6a |
|
|
|
b41384b |
* Mon May 25 2020 Miro Hrončok <mhroncok@redhat.com> - 0.22.2-10.20200126.e1336fb33c92
|
|
|
b41384b |
- Rebuilt for Python 3.9
|
|
|
b41384b |
|
|
|
4133fbe |
* Fri Mar 27 2020 Jerry James <loganjerry@gmail.com> - 0.22.2-9.20200126.e1336fb33c92
|
|
|
4133fbe |
- Update to git head to fix duplicate person issue
|
|
|
4133fbe |
- Drop upstreamed -escape patch
|
|
|
4133fbe |
- Add -elementtree patch to fix python 3.9 build (bz 1817962)
|
|
|
4133fbe |
|
|
|
58c386c |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.2-8.20191015.6d9d812c82ce
|
|
|
58c386c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
58c386c |
|
|
|
f511b2b |
* Fri Jan 24 2020 Jerry James <loganjerry@gmail.com> - 0.22.2-7.20191015.6d9d812c82ce
|
|
|
f511b2b |
- Add -escape patch
|
|
|
f511b2b |
- Invoke pytest directly
|
|
|
f511b2b |
|
|
|
a0340ce |
* Wed Nov 27 2019 Jerry James <loganjerry@gmail.com> - 0.22.2-6.20191015.6d9d812c82ce
|
|
|
a0340ce |
- Update to git head to fix a variety of python 3 issues
|
|
|
a0340ce |
|
|
|
a0340ce |
* Fri Sep 20 2019 Jerry James <loganjerry@gmail.com> - 0.22.2-5.20190905.9cf6c600ea5d
|
|
|
12ac5d9 |
- Update to git head to fix python-sphinxcontrib-bibtex sorting issues
|
|
|
12ac5d9 |
|
|
|
d8503bd |
* Sun Aug 18 2019 Miro Hrončok <mhroncok@redhat.com> - 0.22.2-4
|
|
|
d8503bd |
- Rebuilt for Python 3.8
|
|
|
d8503bd |
|
|
|
b20fd1d |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.2-3
|
|
|
b20fd1d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
b20fd1d |
|
|
|
e990854 |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.22.2-2
|
|
|
e990854 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
e990854 |
|
|
|
47bf3fc |
* Sat Jan 26 2019 Jerry James <loganjerry@gmail.com> - 0.22.2-1
|
|
|
47bf3fc |
- New upstream version
|
|
|
47bf3fc |
|
|
|
1d53710 |
* Mon Nov 26 2018 Jerry James <loganjerry@gmail.com> - 0.22.0-1
|
|
|
1d53710 |
- New upstream version
|
|
|
1d53710 |
|
|
|
fbd1d03 |
* Tue Nov 6 2018 Jerry James <loganjerry@gmail.com> - 0.21-9
|
|
|
fbd1d03 |
- Drop -python36 patch, replaced by 2to3 invocation
|
|
|
fbd1d03 |
- Add -python3 patch to fix stuff that 2to3 didn't catch
|
|
|
fbd1d03 |
|
|
|
89ce961 |
* Thu Nov 01 2018 Miro Hrončok <mhroncok@redhat.com> - 0.21-8
|
|
|
89ce961 |
- Subpackage python2-pybtex has been removed
|
|
|
89ce961 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
89ce961 |
|
|
|
a38ecad |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-7
|
|
|
a38ecad |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
a38ecad |
|
|
|
7e4f8d4 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.21-6
|
|
|
7e4f8d4 |
- Rebuilt for Python 3.7
|
|
|
7e4f8d4 |
|
|
|
465e0b4 |
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.21-5
|
|
|
465e0b4 |
- Update Python 2 dependency declarations to new packaging standards
|
|
|
465e0b4 |
(See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
|
|
|
465e0b4 |
|
|
|
febe9f3 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-4
|
|
|
febe9f3 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
febe9f3 |
|
|
|
3743161 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-3
|
|
|
3743161 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
3743161 |
|
|
|
862d6b0 |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.21-2
|
|
|
862d6b0 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
862d6b0 |
|
|
|
52332aa |
* Sat Jan 21 2017 Jerry James <loganjerry@gmail.com> - 0.21-1
|
|
|
52332aa |
- New upstream version
|
|
|
52332aa |
|
|
|
084788e |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.20.1-3
|
|
|
084788e |
- Rebuild for Python 3.6
|
|
|
084788e |
|
|
|
5331469 |
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.1-2
|
|
|
5331469 |
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
5331469 |
|
|
|
797b008 |
* Fri Mar 18 2016 Jerry James <loganjerry@gmail.com> - 0.20.1-1
|
|
|
797b008 |
- New upstream version
|
|
|
797b008 |
|
|
|
797b008 |
* Thu Mar 10 2016 Jerry James <loganjerry@gmail.com> - 0.20-1
|
|
|
12ee704 |
- New upstream version
|
|
|
12ee704 |
|
|
|
540a234 |
* Wed Mar 2 2016 Jerry James <loganjerry@gmail.com> - 0.19-2
|
|
|
540a234 |
- Don't preserve timestamps of modified files
|
|
|
540a234 |
- Fix nosetests invocation
|
|
|
540a234 |
- Simplify files section
|
|
|
540a234 |
|
|
|
540a234 |
* Thu Feb 25 2016 Jerry James <loganjerry@gmail.com> - 0.19-1
|
|
|
540a234 |
- Initial RPM
|