Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
python-pybtex
python-pybtex.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-pybtex.spec of Package python-pybtex
# # spec file for package python-pybtex # # Copyright (c) 2015 SUSE LINUX 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/ # %define oname pybtex 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.org/ Source0: http://pypi.python.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.bz2 Source1: %{name}-rpmlintrc %if 0%{?suse_version} BuildRequires: fdupes %endif BuildRequires: python-devel BuildRequires: python-setuptools Requires: python-pyparsing 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. %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} # Fix URL sed -i 's|http://pybtex.sourceforge.net/|%{url}|' setup.py # 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 %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} # install man for man in %{oname} %{oname}-convert %{oname}-format ; do install -Dm 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 docs/html examples COPYING CHANGES README %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor