Version binaries
This commit is contained in:
parent
92e79c48c3
commit
e469539887
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
Name: python-pygments
|
Name: python-pygments
|
||||||
Version: 2.1.3
|
Version: 2.1.3
|
||||||
Release: 4%{?dist}
|
Release: 5%{?dist}
|
||||||
Summary: Syntax highlighting engine written in Python
|
Summary: Syntax highlighting engine written in Python
|
||||||
|
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
@ -139,6 +139,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
pushd %{py3dir}
|
pushd %{py3dir}
|
||||||
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
%{__python3} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
||||||
popd
|
popd
|
||||||
|
mv $RPM_BUILD_ROOT/%{_bindir}/pygmentize $RPM_BUILD_ROOT/%{_bindir}/pygmentize3
|
||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
|
|
||||||
# Run the Python 2.6 build first so that the Python 2 version of
|
# Run the Python 2.6 build first so that the Python 2 version of
|
||||||
@ -146,7 +147,7 @@ popd
|
|||||||
%if 0%{?with_python26}
|
%if 0%{?with_python26}
|
||||||
pushd %{py26dir}
|
pushd %{py26dir}
|
||||||
%{__python26} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
|
%{__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
|
popd
|
||||||
%endif # with_python26
|
%endif # with_python26
|
||||||
|
|
||||||
@ -154,6 +155,7 @@ popd
|
|||||||
%{__python} setup.py build_sphinx
|
%{__python} setup.py build_sphinx
|
||||||
pushd doc
|
pushd doc
|
||||||
install -d %{buildroot}%{_mandir}/man1
|
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
|
mv pygmentize.1 $RPM_BUILD_ROOT%{_mandir}/man1/pygmentize.1
|
||||||
popd
|
popd
|
||||||
cp -r doc/docs doc/reST
|
cp -r doc/docs doc/reST
|
||||||
@ -188,6 +190,7 @@ popd
|
|||||||
# For noarch packages: sitelib
|
# For noarch packages: sitelib
|
||||||
%{python_sitelib}/*
|
%{python_sitelib}/*
|
||||||
%{_bindir}/pygmentize
|
%{_bindir}/pygmentize
|
||||||
|
%{_bindir}/pygmentize2
|
||||||
%lang(en) %{_mandir}/man1/pygmentize.1.gz
|
%lang(en) %{_mandir}/man1/pygmentize.1.gz
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if 0%{?with_python3}
|
||||||
@ -195,6 +198,7 @@ popd
|
|||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS CHANGES build/sphinx/html doc/reST LICENSE TODO
|
%doc AUTHORS CHANGES build/sphinx/html doc/reST LICENSE TODO
|
||||||
%{python3_sitelib}/*
|
%{python3_sitelib}/*
|
||||||
|
%{_bindir}/pygmentize3
|
||||||
%endif # with_python3
|
%endif # with_python3
|
||||||
|
|
||||||
%if 0%{?with_python26}
|
%if 0%{?with_python26}
|
||||||
@ -202,10 +206,15 @@ popd
|
|||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc AUTHORS CHANGES doc/ LICENSE TODO
|
%doc AUTHORS CHANGES doc/ LICENSE TODO
|
||||||
%{python26_sitelib}/*
|
%{python26_sitelib}/*
|
||||||
|
%{_bindir}/pygmentize
|
||||||
|
%{_bindir}/pygmentize2
|
||||||
%endif # with_python26
|
%endif # with_python26
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Thu Mar 2 2017 Steve Milner <smilner@redhat.com> - 2.1.3-5
|
||||||
|
- Split bin between versions.
|
||||||
|
|
||||||
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-4
|
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user