From a1693184a6d798276746c603fc8e3e124782555f1946b16e00a236b68bfc7f85 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Thu, 4 Jan 2018 13:15:57 +0000 Subject: [PATCH] - Needs to go along sr#561628 - Update to version 0.21: - Convert to singlespec OBS-URL: https://build.opensuse.org/package/show/Publishing/python-pybtex?expand=0&rev=14 --- pybtex-0.19.tar.bz2 | 3 -- pybtex-0.21.tar.gz | 3 ++ python-pybtex-rpmlintrc | 2 - python-pybtex.changes | 25 +++++++++++++ python-pybtex.spec | 82 ++++++++++++----------------------------- 5 files changed, 52 insertions(+), 63 deletions(-) delete mode 100644 pybtex-0.19.tar.bz2 create mode 100644 pybtex-0.21.tar.gz delete mode 100644 python-pybtex-rpmlintrc diff --git a/pybtex-0.19.tar.bz2 b/pybtex-0.19.tar.bz2 deleted file mode 100644 index 3061b19..0000000 --- a/pybtex-0.19.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:7f9b18149e4686643605338486d8a9fd523a0398d70296755d62d131648f5648 -size 278999 diff --git a/pybtex-0.21.tar.gz b/pybtex-0.21.tar.gz new file mode 100644 index 0000000..1eff979 --- /dev/null +++ b/pybtex-0.21.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:af8a6c7c74954ad305553b118d2757f68bc77c5dd5d5de2cc1fd16db90046000 +size 364772 diff --git a/python-pybtex-rpmlintrc b/python-pybtex-rpmlintrc deleted file mode 100644 index fa50227..0000000 --- a/python-pybtex-rpmlintrc +++ /dev/null @@ -1,2 +0,0 @@ -# This is needed executable script in documentation -addFilter('doc-file-dependency') diff --git a/python-pybtex.changes b/python-pybtex.changes index 78a9548..a33671f 100644 --- a/python-pybtex.changes +++ b/python-pybtex.changes @@ -1,3 +1,28 @@ +------------------------------------------------------------------- +Thu Jan 4 13:14:21 UTC 2018 - mpluskal@suse.com + +- Update to version 0.21: + * BibTeX writer now uses latexcodec to encode characters that are + not directly supported by the output encoding. Thanks, Hong Xu! + * HTML backend: {braced stings} are now wrapped with + to enable custom CSS styling. + * unsrt.py: DOI, PubMed and Arxiv links now use HTTPS instead of + HTTP. + * unsrt.py: URLs with percent characters are now formatted + correctly. + * unsrt.py: short page / volume / chapter numbers are now joined + with a non-breaking space, like in BibTeX. + * unsrt.py: inbook now uses the editor field if the author field + is missing, like in BibTeX. + * unsrt.py: the words “volume” and “pages” in the beginning of + the sentence are now capitalized, like in BibTeX. + * unsrt.py: removed unnecessary period between the book title and + the comma in inbook. + * LaTeX backend: fix encoding tilde ("~") characters with newer + versions of latexcodec. + * Fix splitting names with escaped space ("\ ") characters. +- Convert to singlespec + ------------------------------------------------------------------- Mon Dec 7 15:17:36 UTC 2015 - nemysis@openSUSE.org diff --git a/python-pybtex.spec b/python-pybtex.spec index f2284dd..dc0bddb 100644 --- a/python-pybtex.spec +++ b/python-pybtex.spec @@ -1,7 +1,7 @@ # # spec file for package python-pybtex # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany. # Copyright (c) 2010 Guido Berhoerster. # # All modifications and additions to the file contributed by third parties @@ -17,27 +17,28 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} %define oname pybtex - Name: python-pybtex -Version: 0.19 +Version: 0.21 Release: 0 Summary: BibTeX-compatible Bibliography Processor in Python License: MIT Group: Productivity/Publishing/TeX/Utilities -Url: http://pybtex.org/ -Source0: http://pypi.python.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.bz2 -Source1: %{name}-rpmlintrc -%if 0%{?suse_version} +URL: http://pybtex.org/ +Source0: https://pypi.python.org/packages/82/59/d46b4a84faacd7c419cfc9a442b7940d6d625d127b83d83666e2a8b203d8/pybtex-%{version}.tar.gz +BuildRequires: %{python_module PyYAML >= 3.0.1} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module latexcodec} +BuildRequires: %{python_module nose} +BuildRequires: %{python_module pyparsing} +BuildRequires: %{python_module setuptools} BuildRequires: fdupes -%endif -BuildRequires: python-PyYAML -BuildRequires: python-devel -BuildRequires: python-nose -BuildRequires: python-setuptools +BuildRequires: python-rpm-macros +Requires: python-latexcodec Requires: python-pyparsing -BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch +%python_subpackages %description Pybtex is a BibTeX-compatible bibliography processor written in Python which @@ -49,61 +50,26 @@ can output LaTeX, HTML, and plain text. Furthermore, Pybtex provides an interface for Python applications which need to process the above formats. -%package -n %{name}-doc -Summary: Documentation for the python-pybtex -Group: Documentation -BuildArch: noarch - -%description -n %{name}-doc -Pybtex is a BibTeX-compatible bibliography processor written in Python which -can produce formatted bibliographies in different, customizable formats. It -supports both native BibTeX style files and styles written in Python and -accepts BibTeX, BibTeXML, and a custom YAML-based bibligraphy input format and -can output LaTeX, HTML, and plain text. - -Furthermore, Pybtex provides an interface for Python applications which need to -process the above formats. - - -Documentation for the package python-pybtex. - %prep %setup -q -n %{oname}-%{version} -# prevent tests from being installed -rm -rf %{oname}/tests - -# Remove Shebang -find %{oname}/ -name '*.py' -print0 | xargs -0 sed -i 's|/usr/bin/env||' - %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} # install man for man in %{oname} %{oname}-convert %{oname}-format ; do -install -Dm 0644 docs/man1/${man}.1 %{buildroot}%{_mandir}/man1/${man}.1 + install -Dpm 0644 docs/man1/${man}.1 %{buildroot}%{_mandir}/man1/${man}.1 done -%if 0%{?suse_version} - %fdupes -s %{buildroot}%{_prefix} -%endif - -%files -%defattr(-,root,root) -%{_bindir}/%{oname}* -%{_mandir}/man1/%{oname}.1%{ext_man} -%{_mandir}/man1/%{oname}-convert.1%{ext_man} -%{_mandir}/man1/%{oname}-format.1%{ext_man} -%{python_sitelib}/%{oname} -%{python_sitelib}/custom_fixers -%{python_sitelib}/%{oname}-%{version}-py%{py_ver}.egg-info - -%files -n %{name}-doc -%defattr(-,root,root) -%doc examples CHANGES COPYING README -#docs/html +%files %{python_files} +%python3_only %{_bindir}/%{oname}* +%python3_only %{_mandir}/man1/%{oname}.1%{ext_man} +%python3_only %{_mandir}/man1/%{oname}-convert.1%{ext_man} +%python3_only %{_mandir}/man1/%{oname}-format.1%{ext_man} +%{python_sitelib}/* %changelog