diff --git a/.abf.yml b/.abf.yml index ff197d5..3c25a3a 100644 --- a/.abf.yml +++ b/.abf.yml @@ -1,5 +1 @@ -removed_sources: - Pygments-1.5.tar.gz: 4fbd937fd5cebc79fa4b26d4cce0868c4eec5ec5 - Pygments-1.6.tar.gz: 53d831b83b1e4d4f16fec604057e70519f9f02fb -sources: - Pygments-2.0.2.tar.gz: fe2c8178a039b6820a7a86b2132a2626df99c7f8 +sources: {} diff --git a/python-pygments.spec b/python-pygments.spec index 6044c9b..fe0f7b4 100644 --- a/python-pygments.spec +++ b/python-pygments.spec @@ -1,19 +1,19 @@ %define tarname Pygments -%define module pygments Summary: Syntax highlighting package written in Python - -Name: python-%{module} -Version: 2.0.2 -Release: 3 -Group: Development/Python +Name: python-pygments +Version: 2.2.0 +Release: 1 License: BSD +Group: Development/Python Url: http://pygments.org/ -Source0: http://pypi.python.org/packages/source/P/%{tarname}/%{tarname}-%{version}.tar.gz -BuildArch: noarch +Source0: https://files.pythonhosted.org/packages/source/P/%{tarname}/%{tarname}-%{version}.tar.gz +BuildRequires: pkgconfig(python) BuildRequires: python-setuptools -BuildRequires: python-devel -Requires: python-pkg-resources +BuildRequires: pkgconfig(python3) +BuildRequires: python3-setuptools +Requires: python-pkg-resources +BuildArch: noarch %description Pygments is a syntax highlighting package written in Python. It is a @@ -29,21 +29,45 @@ prettify source code. Highlights are: * it is usable as a command-line tool and as a library * ... and it highlights even Brainf*ck! +%files +%doc AUTHORS CHANGES LICENSE TODO +%{python_sitelib}/* +%{_bindir}/pygmentize +%{_mandir}/man1/pygmentize.* + +#-------------------------------------------------------------------- + +%package -n python3-pygments +Summary: Syntax highlighting package written in Python3 +Group: Development/Python + +%description -n python3-pygments +Pygments is a syntax highlighting package written in Python. It is a +generic syntax highlighter for general use in all kinds of software +such as forum systems, wikis or other applications that need to +prettify source code. + +%files -n python3-pygments +%doc AUTHORS CHANGES LICENSE TODO +%{python3_sitelib}/* + +#-------------------------------------------------------------------- + %prep %setup -qn %{tarname}-%{version} +cp -a . %{py3dir} + %build -python setup.py build +pushd %{py3dir} +%py3_build +popd +%py_build %install -PYTHONDONTWRITEBYTECODE= python setup.py install --skip-build --root=%{buildroot} +pushd %{py3dir} +%py3_install +popd +%py_install -mkdir -p %{buildroot}%{_mandir}/man1 -install -m 644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1 - -%files -%doc AUTHORS CHANGES LICENSE TODO -%{_bindir}/pygmentize -%{py_puresitedir}/pygments/* -%{py_puresitedir}/Pygments-* -%{_mandir}/man1/pygmentize.* +install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1