From 8d1c99385ca04279766c22332157b3248daf312f Mon Sep 17 00:00:00 2001 From: Jerry James Date: Jan 14 2022 22:21:40 +0000 Subject: Update python macros. --- diff --git a/README.md b/README.md new file mode 100644 index 0000000..3991d1f --- /dev/null +++ b/README.md @@ -0,0 +1,14 @@ +# python-pybtex + +[Pybtex](https://pybtex.org/) is a BibTeX-compatible bibliography processor +written in Python. Pybtex aims to be 100% compatible with BibTeX. It accepts +the same command line options, fully supports BibTeX’s .bst styles and +produces byte-identical output. Additionally: + +- Pybtex is Unicode-aware. +- Pybtex supports bibliography formats other than BibTeX. +- It is possible to write formatting styles in Python. +- As a bonus, Pythonic styles can produce HTML, Markdown and other markup + besides the usual LaTeX. + +Pybtex also includes a Python API for managing bibliographies from Python. diff --git a/python-pybtex.rpmlintrc b/python-pybtex.rpmlintrc deleted file mode 100644 index 636c862..0000000 --- a/python-pybtex.rpmlintrc +++ /dev/null @@ -1,15 +0,0 @@ -# THIS FILE IS FOR WHITELISTING RPMLINT ERRORS AND WARNINGS IN TASKOTRON -# https://fedoraproject.org/wiki/Taskotron/Tasks/dist.rpmlint#Whitelisting_errors - -# The dictionary is missing some technical terms -addFilter(r'W: spelling-error .* bst') - -# The objects.inv file is not text -addFilter(r'W: wrong-file-end-of-line-encoding .*objects.inv') -addFilter(r'W: file-not-utf8 .*objects.inv') - -# The helper scripts have no man pages -addFilter(r'W: no-manual-page-for-binary pybtex-(convert|format)') - -# We use the versions of jquery and js-underscore that sphinx gives us -addFilter(r'W: unversioned-explicit-provides bundled\((jquery|js-underscore)\)') diff --git a/python-pybtex.spec b/python-pybtex.spec index 6936473..739b6ae 100644 --- a/python-pybtex.spec +++ b/python-pybtex.spec @@ -6,7 +6,7 @@ Release: 4%{?dist} Summary: BibTeX-compatible bibliography processor written in Python License: MIT -URL: http://pybtex.org/ +URL: https://pybtex.org/ Source0: %pypi_source # Fix a minor sphinx problem, leads to bad man page output Patch0: %{name}-parsing.patch @@ -17,11 +17,13 @@ BuildRequires: make BuildRequires: python3-devel BuildRequires: python3-docs BuildRequires: %{py3_dist latexcodec} +BuildRequires: %{py3_dist pip} BuildRequires: %{py3_dist pytest} BuildRequires: %{py3_dist pyyaml} BuildRequires: %{py3_dist setuptools} BuildRequires: %{py3_dist six} BuildRequires: %{py3_dist sphinx} +BuildRequires: %{py3_dist wheel} %global common_desc %{expand: Pybtex is a BibTeX-compatible bibliography processor written in Python. @@ -73,14 +75,14 @@ sed -e "s|\('https://docs\.python\.org/3/', \)None|\1'%{_docdir}/python3-docs/ht -i docs/source/conf.py %build -%py3_build +%pyproject_wheel # Build documentation PYTHONPATH=$PWD:$PWD/build/lib make -C docs html man rm -f docs/build/html/.buildinfo %install -%py3_install +%pyproject_install mkdir -p %{buildroot}%{_mandir}/man1 cp -p docs/build/man/*.1 %{buildroot}%{_mandir}/man1