Files
python-pybtex/python-pybtex.spec
Guido Berhoerster 632f2071d6 - update to version 0.16
- BibTeX .bib and .bst parsers were completely rewritten; they
    are now much faster and more BibTeX-compatible
  - syntax errors and undefined strings in .bib files now result in
    warnings instead of errors, like in BibTeX
  - unused entries in .bib files are now skipped, like in BibTeX
  - the case of entry keys is now preserved (in previous versions
    they were converted to lowercase)
  - pythonic style engine now supports sorting
  - pythonic style engine: fixed nested optional() blocks
  - fixed parsing of some names with a Last part but no von part
  - fixed processing of brace-level-one "special characters" in
    purify$ BibTeX built-in function
  - added proper error messages on encoding errors in .bib files
  - the default encoding is now UTF-8 on all platforms
  - pybtex-convert now preserves the order of entries in BibTeX and
    BibTeXML files
  - fixed first_of behavior when non-empty child is followed by a
    child that has a missing field
  - fixed crossref lookups when key is not lower case
  - completed unsrt and plain python styles: they now contain all
    entry types
  - added doctree backend for rendering into a tree of docutils
    nodes
  - added support for non-string backends

OBS-URL: https://build.opensuse.org/package/show/Publishing/python-pybtex?expand=0&rev=4
2012-05-16 10:46:08 +00:00

80 lines
2.6 KiB
RPMSpec

#
# spec file for package python-pybtex
#
# Copyright (c) 2012 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.16
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