2024-01-05 16:25:47 +01:00
|
|
|
Name: python-pygments
|
2024-01-05 16:25:47 +01:00
|
|
|
Version: 2.4.1
|
2024-01-05 16:25:47 +01:00
|
|
|
Release: 1mamba
|
2024-01-05 16:25:47 +01:00
|
|
|
Summary: A syntax highlighting package written in Python
|
|
|
|
Group: System/Libraries/Python
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
|
|
|
|
URL: http://pygments.org/
|
2024-01-05 16:25:47 +01:00
|
|
|
Source: http://pypi.debian.net/Pygments/Pygments-%{version}.tar.gz
|
2024-01-05 16:25:47 +01:00
|
|
|
License: BSD
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: libpython-devel
|
|
|
|
## AUTOBUILDREQ-END
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
Requires: python >= %python_version
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description
|
|
|
|
Pygments 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.
|
|
|
|
|
|
|
|
Highlights are:
|
|
|
|
* a wide range of common languages and markup formats is supported
|
|
|
|
* special attention is paid to details, increasing quality by a fair amount
|
|
|
|
* support for new languages and formats are added easily
|
|
|
|
* a number of output formats, presently HTML, LaTeX, RTF, SVG, all image formats that PIL supports and ANSI sequences
|
|
|
|
* it is usable as a command-line tool and as a library
|
|
|
|
* ... and it highlights even Brainfuck!
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
%if "%{?with_pyver}"
|
|
|
|
%pyver_package
|
|
|
|
%endif
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
%package %{?pyappend:%pyappend-}tools
|
|
|
|
Group: Development/Tools
|
|
|
|
Summary: Utilities for %{name}
|
|
|
|
Requires: %{name}%{?pyappend:-%pyappend} = %{?epoch:%epoch:}%{version}-%{release}
|
|
|
|
|
|
|
|
%description %{?pyappend:%pyappend-}tools
|
|
|
|
This package contains utilities for %{name}.
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
%prep
|
|
|
|
%setup -q -n Pygments-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="%{optflags}" %{__python} setup.py build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%{__python} setup.py install \
|
|
|
|
-O1 --skip-build \
|
|
|
|
--root="%{buildroot}" \
|
|
|
|
--install-headers=%{_includedir}/python \
|
|
|
|
--install-lib=%{python_sitearch} \
|
|
|
|
--record=%{name}.filelist
|
|
|
|
|
|
|
|
sed -i "\,egg-info$,d" %{name}.filelist
|
|
|
|
|
|
|
|
# install manual page
|
2024-01-05 16:25:47 +01:00
|
|
|
install -D -m 0644 doc/pygmentize.1 \
|
2024-01-05 16:25:47 +01:00
|
|
|
%{buildroot}%{_mandir}/man1/pygmentize.1
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
%files %{?pyappend} -f %{name}.filelist
|
2024-01-05 16:25:47 +01:00
|
|
|
%defattr(-,root,root)
|
|
|
|
%dir %{python_sitearch}/pygments
|
|
|
|
%dir %{python_sitearch}/*.egg-info
|
2024-01-05 16:25:47 +01:00
|
|
|
%exclude %{_bindir}/pygmentize
|
|
|
|
%exclude %{_mandir}/man1/pygmentize.1*
|
2024-01-05 16:25:47 +01:00
|
|
|
%doc AUTHORS LICENSE
|
|
|
|
#CHANGES TODO
|
2024-01-05 16:25:47 +01:00
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
%files %{?pyappend:%pyappend-}tools -f %{name}.filelist
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/pygmentize
|
|
|
|
%{_mandir}/man1/pygmentize.1*
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
%changelog
|
2024-01-05 16:25:47 +01:00
|
|
|
* Sat May 25 2019 Automatic Build System <autodist@mambasoft.it> 2.4.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
* Fri May 10 2019 Automatic Build System <autodist@mambasoft.it> 2.4.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
* Sun Dec 23 2018 Automatic Build System <autodist@mambasoft.it> 2.3.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
* Tue Nov 27 2018 Automatic Build System <autodist@mambasoft.it> 2.3.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
* Thu Jan 26 2017 Automatic Build System <autodist@mambasoft.it> 2.2.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
* Tue Oct 11 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.3-3mamba
|
|
|
|
- move conflicting py2/py3 binart tool to -tools subpackage
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
* Sun Jul 24 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.3-2mamba
|
|
|
|
- added py3 support
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
* Thu Mar 03 2016 Automatic Build System <autodist@mambasoft.it> 2.1.3-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
* Mon Feb 15 2016 Automatic Build System <autodist@mambasoft.it> 2.1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
* Sun Jan 17 2016 Automatic Build System <autodist@mambasoft.it> 2.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
* Fri Mar 20 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0.2-1mamba
|
|
|
|
- update to 2.0.2
|
|
|
|
|
|
|
|
* Tue Nov 04 2014 Automatic Build System <autodist@mambasoft.it> 2.0rc1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-05 16:25:47 +01:00
|
|
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6rc1-2mamba
|
|
|
|
- python 2.7 mass rebuild
|
|
|
|
|
|
|
|
* Fri May 17 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 1.6rc1-1mamba
|
|
|
|
- python 2.7 mass rebuild
|
|
|
|
|
|
|
|
* Mon Apr 22 2013 Automatic Build System <autodist@mambasoft.it> 1.6-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sun Mar 11 2012 Automatic Build System <autodist@mambasoft.it> 1.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Jan 10 2011 Automatic Build System <autodist@mambasoft.it> 1.4-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Sat Jun 05 2010 Automatic Build System <autodist@mambasoft.it> 1.3.1-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Tue Jan 19 2010 Stefano Cotta Ramusino <stefano.cotta@openmamba.org> 1.2.2-1mamba
|
|
|
|
- package created by autospec
|