- 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
This commit is contained in:
2018-01-04 13:15:57 +00:00
committed by Git OBS Bridge
parent bbe2bdae70
commit a1693184a6
5 changed files with 52 additions and 63 deletions
+25
View File
@@ -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
<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
------------------------------------------------------------------- -------------------------------------------------------------------
Mon Dec 7 15:17:36 UTC 2015 - nemysis@openSUSE.org Mon Dec 7 15:17:36 UTC 2015 - nemysis@openSUSE.org
+24 -58
View File
@@ -1,7 +1,7 @@
# #
# spec file for package python-pybtex # 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. # Copyright (c) 2010 Guido Berhoerster.
# #
# All modifications and additions to the file contributed by third parties # 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 %define oname pybtex
Name: python-pybtex Name: python-pybtex
Version: 0.19 Version: 0.21
Release: 0 Release: 0
Summary: BibTeX-compatible Bibliography Processor in Python Summary: BibTeX-compatible Bibliography Processor in Python
License: MIT License: MIT
Group: Productivity/Publishing/TeX/Utilities Group: Productivity/Publishing/TeX/Utilities
Url: http://pybtex.org/ URL: http://pybtex.org/
Source0: http://pypi.python.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.bz2 Source0: https://pypi.python.org/packages/82/59/d46b4a84faacd7c419cfc9a442b7940d6d625d127b83d83666e2a8b203d8/pybtex-%{version}.tar.gz
Source1: %{name}-rpmlintrc BuildRequires: %{python_module PyYAML >= 3.0.1}
%if 0%{?suse_version} BuildRequires: %{python_module devel}
BuildRequires: %{python_module latexcodec}
BuildRequires: %{python_module nose}
BuildRequires: %{python_module pyparsing}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes BuildRequires: fdupes
%endif BuildRequires: python-rpm-macros
BuildRequires: python-PyYAML Requires: python-latexcodec
BuildRequires: python-devel
BuildRequires: python-nose
BuildRequires: python-setuptools
Requires: python-pyparsing Requires: python-pyparsing
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch BuildArch: noarch
%python_subpackages
%description %description
Pybtex is a BibTeX-compatible bibliography processor written in Python which 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 Furthermore, Pybtex provides an interface for Python applications which need to
process the above formats. 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 %prep
%setup -q -n %{oname}-%{version} %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 %build
python setup.py build %python_build
%install %install
python setup.py install --prefix=%{_prefix} --root=%{buildroot} %python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
# install man # install man
for man in %{oname} %{oname}-convert %{oname}-format ; do 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 done
%if 0%{?suse_version} %files %{python_files}
%fdupes -s %{buildroot}%{_prefix} %python3_only %{_bindir}/%{oname}*
%endif %python3_only %{_mandir}/man1/%{oname}.1%{ext_man}
%python3_only %{_mandir}/man1/%{oname}-convert.1%{ext_man}
%files %python3_only %{_mandir}/man1/%{oname}-format.1%{ext_man}
%defattr(-,root,root) %{python_sitelib}/*
%{_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
%changelog %changelog
-3
View File
@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:7f9b18149e4686643605338486d8a9fd523a0398d70296755d62d131648f5648
size 278999
+3
View File
@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:af8a6c7c74954ad305553b118d2757f68bc77c5dd5d5de2cc1fd16db90046000
size 364772
-2
View File
@@ -1,2 +0,0 @@
# This is needed executable script in documentation
addFilter('doc-file-dependency')