|
|
d046a07 |
%global srcname sphinxcontrib-bibtex
|
|
|
d046a07 |
|
|
|
d046a07 |
Name: python-%{srcname}
|
|
|
31288e8 |
Version: 0.4.2
|
|
|
f754353 |
Release: 1%{?dist}
|
|
|
d046a07 |
Summary: Sphinx extension for BibTeX style citations
|
|
|
d046a07 |
|
|
|
d046a07 |
License: BSD
|
|
|
d046a07 |
URL: https://github.com/mcmtroffaes/sphinxcontrib-bibtex
|
|
|
e782fd7 |
Source0: https://github.com/mcmtroffaes/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
|
|
|
d046a07 |
BuildArch: noarch
|
|
|
d046a07 |
# Use orderedset instead of oset; the latter has a dead upstream
|
|
|
d046a07 |
Patch0: %{name}-orderedset.patch
|
|
|
d046a07 |
|
|
|
d046a07 |
BuildRequires: python3-devel
|
|
|
f754353 |
BuildRequires: python3dist(coverage)
|
|
|
f754353 |
BuildRequires: python3dist(latexcodec)
|
|
|
f754353 |
BuildRequires: python3dist(nose)
|
|
|
f754353 |
BuildRequires: python3dist(orderedset)
|
|
|
f754353 |
BuildRequires: python3dist(pybtex)
|
|
|
f754353 |
BuildRequires: python3dist(pybtex-docutils)
|
|
|
f754353 |
BuildRequires: python3dist(setuptools)
|
|
|
f754353 |
BuildRequires: python3dist(six)
|
|
|
f754353 |
BuildRequires: python3dist(sphinx)
|
|
|
f754353 |
BuildRequires: python3dist(sphinx-testing)
|
|
|
d046a07 |
|
|
|
d046a07 |
%global common_desc \
|
|
|
d046a07 |
This package contains a Sphinx extension for BibTeX style citations.\
|
|
|
d046a07 |
\
|
|
|
d046a07 |
This extension allows BibTeX citations to be inserted into documentation\
|
|
|
d046a07 |
generated by Sphinx, via a bibliography directive, and a cite role,\
|
|
|
d046a07 |
which work similarly to LaTeX's thebibliography environment and \\cite\
|
|
|
d046a07 |
command.\
|
|
|
d046a07 |
\
|
|
|
d046a07 |
For formatting, the extension relies on pybtex, written by Andrey\
|
|
|
d046a07 |
Golovizin.
|
|
|
d046a07 |
|
|
|
d046a07 |
%description
|
|
|
d046a07 |
%common_desc
|
|
|
d046a07 |
|
|
|
d046a07 |
%package -n python3-%{srcname}
|
|
|
d046a07 |
Summary: Sphinx extension for BibTeX style citations
|
|
|
f754353 |
Requires: python3dist(latexcodec)
|
|
|
f754353 |
Requires: python3dist(orderedset)
|
|
|
f754353 |
Requires: python3dist(pybtex)
|
|
|
f754353 |
Requires: python3dist(pybtex-docutils)
|
|
|
f754353 |
Requires: python3dist(six)
|
|
|
d046a07 |
|
|
|
d046a07 |
Provides: bundled(jquery)
|
|
|
d046a07 |
Provides: bundled(js-underscore)
|
|
|
d046a07 |
%{?python_provide:%python_provide python3-%{srcname}}
|
|
|
d046a07 |
|
|
|
d046a07 |
%description -n python3-%{srcname}
|
|
|
d046a07 |
%common_desc
|
|
|
d046a07 |
|
|
|
d046a07 |
%package doc
|
|
|
d046a07 |
Summary: Documentation for python-%{srcname}
|
|
|
d046a07 |
|
|
|
53db7c3 |
%description doc
|
|
|
d046a07 |
Documentation for python-%{srcname}.
|
|
|
d046a07 |
|
|
|
d046a07 |
%prep
|
|
|
f754353 |
%autosetup -p0 -n %{srcname}-%{version}
|
|
|
d046a07 |
|
|
|
d046a07 |
# Don't run the tinkerer integration test since Fedora doesn't have tinkerer
|
|
|
beb2699 |
rm -fr test/{test_issue1.py,issue1}
|
|
|
d046a07 |
|
|
|
d046a07 |
%build
|
|
|
d046a07 |
%py3_build
|
|
|
d046a07 |
|
|
|
d046a07 |
# Build documentation
|
|
|
beb2699 |
PYTHONPATH=$PWD sphinx-build-3 doc html
|
|
|
d046a07 |
rm -fr html/{.buildinfo,.doctrees}
|
|
|
d046a07 |
|
|
|
d046a07 |
%install
|
|
|
d046a07 |
%py3_install
|
|
|
d046a07 |
|
|
|
d046a07 |
%check
|
|
|
beb2699 |
PYTHONPATH=$PWD nosetests-3 -v
|
|
|
beb2699 |
|
|
|
d046a07 |
%files -n python3-%{srcname}
|
|
|
beb2699 |
%license LICENSE.rst
|
|
|
d046a07 |
%{python3_sitelib}/sphinxcontrib/
|
|
|
d046a07 |
%{python3_sitelib}/sphinxcontrib_bibtex*
|
|
|
d046a07 |
|
|
|
d046a07 |
%files doc
|
|
|
beb2699 |
%doc html/*
|
|
|
d046a07 |
|
|
|
d046a07 |
%changelog
|
|
|
31288e8 |
* Thu Jan 17 2019 Jerry James <loganjerry@gmail.com> - 0.4.2-1
|
|
|
31288e8 |
- New upstream version
|
|
|
31288e8 |
- Drop upstreamed -bibliography patch
|
|
|
31288e8 |
|
|
|
f754353 |
* Sat Dec 8 2018 Jerry James <loganjerry@gmail.com> - 0.4.1-1
|
|
|
f754353 |
- New upstream version
|
|
|
f754353 |
|
|
|
beb2699 |
* Thu Oct 25 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4.0-4
|
|
|
beb2699 |
- Subpackage python2-sphinxcontrib-bibtex has been removed
|
|
|
beb2699 |
See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
|
|
|
beb2699 |
|
|
|
228f59e |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.4.0-3
|
|
|
228f59e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
228f59e |
|
|
|
d374712 |
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.4.0-2
|
|
|
d374712 |
- Rebuilt for Python 3.7
|
|
|
d374712 |
|
|
|
fecca62 |
* Thu Apr 19 2018 Jerry James <loganjerry@gmail.com> - 0.4.0-1
|
|
|
fecca62 |
- New upstream version
|
|
|
fecca62 |
|
|
|
d084fea |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.6-2
|
|
|
d084fea |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
d084fea |
|
|
|
e782fd7 |
* Tue Sep 26 2017 Jerry James <loganjerry@gmail.com> - 0.3.6-1
|
|
|
e782fd7 |
- New upstream version
|
|
|
e782fd7 |
- Drop upstreamed python 3.6 fix
|
|
|
e782fd7 |
|
|
|
e24011c |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.5-2
|
|
|
e24011c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
e24011c |
|
|
|
c794ed0 |
* Wed Feb 22 2017 Jerry James <loganjerry@gmail.com> - 0.3.5-1
|
|
|
c794ed0 |
- New upstream version
|
|
|
c794ed0 |
|
|
|
666f33a |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.4-3
|
|
|
666f33a |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
666f33a |
|
|
|
8e12358 |
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.3.4-2
|
|
|
8e12358 |
- Rebuild for Python 3.6
|
|
|
8e12358 |
|
|
|
e82ea3f |
* Mon May 23 2016 Jerry James <loganjerry@gmail.com> - 0.3.4-1
|
|
|
e82ea3f |
- New upstream version
|
|
|
e82ea3f |
|
|
|
d046a07 |
* Thu Feb 25 2016 Jerry James <loganjerry@gmail.com> - 0.3.3-1
|
|
|
d046a07 |
- Initial RPM
|