Hello community, here is the log from the commit of package python-pybtex for openSUSE:Factory checked in at 2018-01-07 17:22:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-pybtex (Old) and /work/SRC/openSUSE:Factory/.python-pybtex.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pybtex" Sun Jan 7 17:22:44 2018 rev:14 rq:561638 version:0.21 Changes: -------- --- /work/SRC/openSUSE:Factory/python-pybtex/python-pybtex.changes 2015-12-23 08:49:44.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.python-pybtex.new/python-pybtex.changes 2018-01-07 17:22:50.005168791 +0100 @@ -1,0 +2,25 @@ +Thu Jan 4 13:14:21 UTC 2018 - mplus...@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 + <span class="bibtex-protected"> 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 + +------------------------------------------------------------------- Old: ---- pybtex-0.19.tar.bz2 python-pybtex-rpmlintrc New: ---- pybtex-0.21.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-pybtex.spec ++++++ --- /var/tmp/diff_new_pack.Vyo63H/_old 2018-01-07 17:22:50.529144231 +0100 +++ /var/tmp/diff_new_pack.Vyo63H/_new 2018-01-07 17:22:50.529144231 +0100 @@ -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 @@ 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