Hello community,

here is the log from the commit of package python-pybtex for openSUSE:Factory 
checked in at 2015-07-14 17:44:29
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pybtex (Old)
 and      /work/SRC/openSUSE:Factory/.python-pybtex.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pybtex"

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pybtex/python-pybtex.changes      
2014-08-27 07:46:56.000000000 +0200
+++ /work/SRC/openSUSE:Factory/.python-pybtex.new/python-pybtex.changes 
2015-07-14 17:45:44.000000000 +0200
@@ -1,0 +2,14 @@
+Sun Jul 12 19:15:21 UTC 2015 - [email protected]
+
+- Use %{oname} instead of pybtex
+- Change Url from SourceForge to http://pybtex.org
+- Add python-pybtex-rpmlintrc, executable script in documentation
+- Use check for openSUSE %if 0%{?suse_version}
+- Remove Recommends for non existent python-yaml
+- Split out doc and add doc into subpackages
+- Remove BuildRequires for ed, use sed instead
+- Add sed, Fix URL
+- Change Man Pages, add pybtex-format
+- Add examples to Documentation
+
+-------------------------------------------------------------------

New:
----
  python-pybtex-rpmlintrc

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-pybtex.spec ++++++
--- /var/tmp/diff_new_pack.DrW8jr/_old  2015-07-14 17:45:45.000000000 +0200
+++ /var/tmp/diff_new_pack.DrW8jr/_new  2015-07-14 17:45:45.000000000 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pybtex
 #
-# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 # Copyright (c) 2010 Guido Berhoerster.
 #
 # All modifications and additions to the file contributed by third parties
@@ -17,21 +17,23 @@
 #
 
 
+%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.sourceforge.net/
-Source:         
http://pypi.python.org/packages/source/p/pybtex/pybtex-%{version}.tar.bz2
-BuildRequires:  ed
+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
-%{py_requires}
-Recommends:     python-yaml
 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
 BuildArch:      noarch
 
@@ -45,35 +47,63 @@
 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 pybtex-%{version}
+%setup -q -n %{oname}-%{version}
+
+# Fix URL
+sed -i 's|http://pybtex.sourceforge.net/|%{url}|' setup.py
+
 # 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
-' {} {} \;
+rm -rf %{oname}/tests
+
+# Remove Shebang
+find %{oname}/ -name '*.py' -print0 | xargs -0 sed -i 's|/usr/bin/env||'
 
 %build
-%{__python} setup.py 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}
+python setup.py install --prefix=%{_prefix} --root=%{buildroot}
 
-%clean
-rm -rf %{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 -f INSTALLED_FILES
+%files -n %{name}-doc
 %defattr(-,root,root,-)
-%doc COPYING CHANGES README
-%doc docs/html
-%doc %{_mandir}/man1/pybtex*.1*
+%doc docs/html examples COPYING CHANGES README
 
 %changelog

++++++ python-pybtex-rpmlintrc ++++++
# This is needed executable script in documentation
addFilter('doc-file-dependency')

Reply via email to