Files
python-pybtex/python-pybtex.spec
Guido Berhoerster 671a2fa3b7 - update to version 1.3
* Windows RT viewer app for MuPDF.
  * Library changes to support progressive loading (display PDF
    files as they download). Windows/Linux/MacOS viewer supports
    this using curl.
  * Incremental updates to PDF files are now (optionally) preserved
    on loading/saving.
  * Prototype support for checking PDF Digital Signatures.
  * Initial annotation support (strike-out, underline, highlight
   and ink) (library and android builds only).
  * Fix operation on Android API level 8.
  * Android redraw optimisations.
  * Android app now supports Google Cloud Print.
  * Android app translated into many languages.
  * Android support for more architectures.
  * Improvements to store (avoid collisions causing unnecessary
    evictions).
  * Windows apps use Unicode filenames now.
  * PDF function handling improved; functions can now be passed to
    devices without 'sampling'.
  * PDF image handling improved; images can now be passed to
   devices without decompression.
  * Indexed images are no longer uncompressed at load time, saving
    memory.
  * Caching of rendered tiles for speed.
  * Improved text analysis mode, capable of spotting
    columns/indents, right-to-left text etc.
  * HTML output mode now includes image output.
  * PDF password encoding handling improved.
  * MuPDF now opens Jpeg, Tiff and PNG files directly.

OBS-URL: https://build.opensuse.org/package/show/Publishing/python-pybtex?expand=0&rev=6
2014-05-26 15:22:34 +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.17
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