|
@@ -4,7 +4,7 @@
|
|
|
|
|
|
Name: python-pygments
|
|
Name: python-pygments
|
|
Version: 2.3.0
|
|
Version: 2.3.0
|
|
-Release: 1%{?_dist_release}
|
|
|
|
|
|
+Release: 2%{?_dist_release}
|
|
Summary: A syntax highlighting engine written in Python
|
|
Summary: A syntax highlighting engine written in Python
|
|
|
|
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
@@ -70,15 +70,21 @@ need to prettify source code. Highlights are:
|
|
|
|
|
|
%build
|
|
%build
|
|
%{__sed} -i 's/\r//' LICENSE
|
|
%{__sed} -i 's/\r//' LICENSE
|
|
-%py_build
|
|
|
|
|
|
|
|
%if 0%{?with_python3}
|
|
%if 0%{?with_python3}
|
|
%py3_build
|
|
%py3_build
|
|
%endif
|
|
%endif
|
|
|
|
|
|
|
|
+%py_build
|
|
|
|
+
|
|
%install
|
|
%install
|
|
%__rm -rf $RPM_BUILD_ROOT
|
|
%__rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
+%if 0%{?with_python3}
|
|
|
|
+# Python 3 install
|
|
|
|
+%py3_install
|
|
|
|
+%endif
|
|
|
|
+
|
|
# Python 2 install
|
|
# Python 2 install
|
|
# NOTE: sphinx is built on Python2 and packages with python2 and python3
|
|
# NOTE: sphinx is built on Python2 and packages with python2 and python3
|
|
%py_install
|
|
%py_install
|
|
@@ -89,11 +95,6 @@ mv pygmentize.1 $RPM_BUILD_ROOT%{_mandir}/man1/pygmentize.1
|
|
popd
|
|
popd
|
|
cp -r doc/docs doc/reST
|
|
cp -r doc/docs doc/reST
|
|
|
|
|
|
-%if 0%{?with_python3}
|
|
|
|
-# Python 3 install
|
|
|
|
-%py3_install
|
|
|
|
-%endif
|
|
|
|
-
|
|
|
|
%clean
|
|
%clean
|
|
%__rm -rf $RPM_BUILD_ROOT
|
|
%__rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
@@ -124,6 +125,9 @@ make test PYTHON=%{__python3}
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Thu Nov 29 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.3.0-2
|
|
|
|
+- packed pygmentize for python2.
|
|
|
|
+
|
|
* Tue Nov 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.3.0-1
|
|
* Tue Nov 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.3.0-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
- added python3 support.
|
|
- added python3 support.
|