Files
python-pybtex/python-pybtex.spec
Guido Berhoerster 27cd75c57d - update to version 0.18
- Pybtex is now fully case-insensitive (like BibTeX). As a
    consequence, IEEEtran styles now work corretly.
  - Added ``--preserve-case`` optoin to ``pybtex-convert`` (by
    default all identifiers are converted to lower case).
  - An erorr is reported if two citations have the same key but
    different case, like in BibTeX. (Example: ddt1999 and DDT1999).
  - Fixed parsing unused bibliography entries with strings
    containing @ characters.
  - ``entry.max$`` constant is now set to 250, ``global.max$`` is
    set to 20000, like in BibTeX.
  - Added ``--strict`` option to ``pybtex-convert`` and
    ``pybtex-format`` (turns warning to errors).
  - Strict mode is now enabled by default when using pybtex as a
    library (exceptions are raised on all errors instead of just
    printing warnings to stderr).
    Non-strict error handling is still enabled when using pybtex
    from the command line, for compatibility with BibTeX. Use
    ``--strict`` option if you don't like this.
  - Added missing pybtex-format manpage.

OBS-URL: https://build.opensuse.org/package/show/Publishing/python-pybtex?expand=0&rev=8
2014-08-26 07:10:25 +00:00

80 lines
2.6 KiB
RPMSpec

#
# spec file for package python-pybtex
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Guido Berhoerster.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-pybtex
Version: 0.18
Release: 0
Summary: BibTeX-compatible Bibliography Processor in Python
License: MIT
Group: Productivity/Publishing/TeX/Utilities
Url: http://pybtex.sourceforge.net/
Source: http://pypi.python.org/packages/source/p/pybtex/pybtex-%{version}.tar.bz2
BuildRequires: ed
BuildRequires: fdupes
BuildRequires: python-devel
BuildRequires: python-setuptools
Requires: python-pyparsing
%{py_requires}
Recommends: python-yaml
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
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.
%prep
%setup -q -n pybtex-%{version}
# prevent tests from being installed
rm -rf pybtex/tests
# remove shebang from non-executables
find pybtex/ -name '*.py' -print -exec sh -c '
ed -s "$1" 2>/dev/null <<\EOF
/^#!\/usr\/bin\/env/d
w
EOF
' {} {} \;
%build
%{__python} setup.py build
%install
%{__python} setup.py install --prefix=%{_prefix} --root=%{buildroot} --record-rpm=INSTALLED_FILES
install -D -p -m 644 docs/man1/pybtex.1 %{buildroot}%{_mandir}/man1/pybtex.1
install -D -p -m 644 docs/man1/pybtex-convert.1 %{buildroot}%{_mandir}/man1/pybtex-convert.1
%fdupes %{buildroot}%{python_sitelib}
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root,-)
%doc COPYING CHANGES README
%doc docs/html
%doc %{_mandir}/man1/pybtex*.1*
%changelog