From e46953988773f546af589f9eb3f328681eef8f3b Mon Sep 17 00:00:00 2001 From: Steve Milner Date: Mar 02 2017 19:57:16 +0000 Subject: Version binaries --- diff --git a/python-pygments.spec b/python-pygments.spec index bbe36ae..2637a48 100644 --- a/python-pygments.spec +++ b/python-pygments.spec @@ -22,7 +22,7 @@ Name: python-pygments Version: 2.1.3 -Release: 4%{?dist} +Release: 5%{?dist} Summary: Syntax highlighting engine written in Python Group: Development/Libraries @@ -139,6 +139,7 @@ rm -rf $RPM_BUILD_ROOT pushd %{py3dir} %{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT popd +mv $RPM_BUILD_ROOT/%{_bindir}/pygmentize $RPM_BUILD_ROOT/%{_bindir}/pygmentize3 %endif # with_python3 # Run the Python 2.6 build first so that the Python 2 version of @@ -146,7 +147,7 @@ popd %if 0%{?with_python26} pushd %{py26dir} %{__python26} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT -%{__python26} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT +cp $RPM_BUILD_ROOT/%{_bindir}/pygmentize $RPM_BUILD_ROOT/%{_bindir}/pygmentize2 popd %endif # with_python26 @@ -154,6 +155,7 @@ popd %{__python} setup.py build_sphinx pushd doc install -d %{buildroot}%{_mandir}/man1 +cp $RPM_BUILD_ROOT/%{_bindir}/pygmentize $RPM_BUILD_ROOT/%{_bindir}/pygmentize2 mv pygmentize.1 $RPM_BUILD_ROOT%{_mandir}/man1/pygmentize.1 popd cp -r doc/docs doc/reST @@ -188,6 +190,7 @@ popd # For noarch packages: sitelib %{python_sitelib}/* %{_bindir}/pygmentize +%{_bindir}/pygmentize2 %lang(en) %{_mandir}/man1/pygmentize.1.gz %if 0%{?with_python3} @@ -195,6 +198,7 @@ popd %defattr(-,root,root,-) %doc AUTHORS CHANGES build/sphinx/html doc/reST LICENSE TODO %{python3_sitelib}/* +%{_bindir}/pygmentize3 %endif # with_python3 %if 0%{?with_python26} @@ -202,10 +206,15 @@ popd %defattr(-,root,root,-) %doc AUTHORS CHANGES doc/ LICENSE TODO %{python26_sitelib}/* +%{_bindir}/pygmentize +%{_bindir}/pygmentize2 %endif # with_python26 %changelog +* Thu Mar 2 2017 Steve Milner - 2.1.3-5 +- Split bin between versions. + * Sat Feb 11 2017 Fedora Release Engineering - 2.1.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild