Hello community,

here is the log from the commit of package python-Pygments for openSUSE:Factory 
checked in at 2017-09-22 21:32:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-Pygments (Old)
 and      /work/SRC/openSUSE:Factory/.python-Pygments.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-Pygments"

Fri Sep 22 21:32:15 2017 rev:21 rq:527385 version:2.2.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-Pygments/python-Pygments.changes  
2017-04-19 18:09:42.591312882 +0200
+++ /work/SRC/openSUSE:Factory/.python-Pygments.new/python-Pygments.changes     
2017-09-22 21:32:16.950433308 +0200
@@ -1,0 +2,5 @@
+Tue Aug 15 12:52:00 UTC 2017 - [email protected]
+
+- fix build in a python2.x only env
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-Pygments.spec ++++++
--- /var/tmp/diff_new_pack.udEL25/_old  2017-09-22 21:32:20.453940132 +0200
+++ /var/tmp/diff_new_pack.udEL25/_new  2017-09-22 21:32:20.457939569 +0200
@@ -31,6 +31,8 @@
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
+Requires(post): update-alternatives
+Requires(postun): update-alternatives
 Requires:       python-setuptools
 Provides:       python-pygments = %{version}
 Obsoletes:      python-pygments < %{version}
@@ -63,8 +65,21 @@
 
 %install
 %python_install
+%{python_expand %$python_install
+mv %{buildroot}%{_bindir}/pygmentize 
%{buildroot}%{_bindir}/pygmentize-%{$python_bin_suffix}
+%fdupes -s %{buildroot}%{$python_sitelib}
+%if "%python3_bin_suffix" != ""
 install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1
-%{python_expand %fdupes %{buildroot}%{$python_sitelib}}
+%endif
+}
+
+%prepare_alternative pygmentize
+
+%post
+%python_install_alternative pygmentize
+
+%postun
+%python_install_alternative pygmentize
 
 %check
 export PYTHONDEBUG=1
@@ -73,10 +88,8 @@
 %files %{python_files}
 %defattr(-,root,root,-)
 %doc LICENSE AUTHORS CHANGES TODO
-%ifpython3
-%{_bindir}/pygmentize
-%{_mandir}/man1/pygmentize.1*
-%endif
+%python_alternative %{_bindir}/pygmentize
+%python3_only %{_mandir}/man1/pygmentize.1*
 %{python_sitelib}/pygments/
 %{python_sitelib}/Pygments-%{version}-py%{python_version}.egg-info/
 


Reply via email to