source: projects/specs/trunk/p/python-pygments/python-pygments-vl.spec @ 11925

Revision 11925, 6.3 KB checked in by tomop, 6 years ago (diff)

python-pygments-2.3.0-1

Line 
1%global with_python3 1
2%global upstream_name Pygments
3%global srcname pygments
4
5Name:           python-pygments
6Version:        2.3.0
7Release:        1%{?_dist_release}
8Summary:        A syntax highlighting engine written in Python
9
10Group:          Development/Libraries
11License:        BSD
12URL:            http://pygments.org/
13Source0:        http://pypi.python.org/packages/source/P/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
14
15BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
16
17BuildArch:      noarch
18BuildRequires:  python-devel >= 2.4, python-setuptools, python-nose
19BuildRequires:  python-sphinx
20BuildRequires:  python-rpm-macros
21%if 0%{?with_python3}
22BuildRequires:  python3-devel, python3-setuptools, python3-nose
23BuildRequires:  python3-rpm-macros
24%endif # if with_python3
25Requires:       python-setuptools
26
27Vendor: Project Vine
28Distribution: Vine Linux
29
30%description
31Pygments is a generic syntax highlighter for general use in all kinds
32of software such as forum systems, wikis or other applications that
33need to prettify source code. Highlights are:
34
35  * a wide range of common languages and markup formats is supported
36  * special attention is paid to details that increase highlighting
37    quality
38  * support for new languages and formats are added easily; most
39    languages use a simple regex-based lexing mechanism
40  * a number of output formats is available, among them HTML, RTF,
41    LaTeX and ANSI sequences
42  * it is usable as a command-line tool and as a library
43  * ... and it highlights even Brainf*ck!
44
45%if 0%{?with_python3}
46%package -n python3-pygments
47Summary:        A syntax highlighting engine written in Python 3
48Group:          Development/Libraries
49Requires:       python3-setuptools
50
51%description -n python3-pygments
52Pygments is a generic syntax highlighter for general use in all kinds
53of software such as forum systems, wikis or other applications that
54need to prettify source code. Highlights are:
55
56  * a wide range of common languages and markup formats is supported
57  * special attention is paid to details that increase highlighting
58    quality
59  * support for new languages and formats are added easily; most
60    languages use a simple regex-based lexing mechanism
61  * a number of output formats is available, among them HTML, RTF,
62    LaTeX and ANSI sequences
63  * it is usable as a command-line tool and as a library
64  * ... and it highlights even Brainf*ck!
65%endif # if with_python3
66
67
68%prep
69%setup -q -n %{upstream_name}-%{version}
70
71%build
72%{__sed} -i 's/\r//' LICENSE
73%py_build
74
75%if 0%{?with_python3}
76%py3_build
77%endif
78
79%install
80%__rm -rf $RPM_BUILD_ROOT
81
82# Python 2 install
83# NOTE: sphinx is built on Python2 and packages with python2 and python3
84%py_install
85%{__python} setup.py build_sphinx
86pushd doc
87install -d %{buildroot}%{_mandir}/man1
88mv pygmentize.1 $RPM_BUILD_ROOT%{_mandir}/man1/pygmentize.1
89popd
90cp -r doc/docs doc/reST
91
92%if 0%{?with_python3}
93# Python 3 install
94%py3_install
95%endif
96
97%clean
98%__rm -rf $RPM_BUILD_ROOT
99
100%check
101make test PYTHON=%{__python}
102%if 0%{?with_python3}
103make test PYTHON=%{__python3}
104%endif
105
106%files
107%defattr(-,root,root,-)
108%doc AUTHORS CHANGES build/sphinx/html doc/reST TODO
109%license LICENSE
110# For noarch packages: sitelib
111%{python_sitelib}/*
112%{_bindir}/pygmentize
113%lang(en) %{_mandir}/man1/pygmentize.1*
114
115%if 0%{?with_python3}
116%files -n python3-pygments
117%defattr(-,root,root,-)
118%doc AUTHORS CHANGES build/sphinx/html doc/reST TODO
119%license LICENSE
120%{python3_sitelib}/*
121#{_bindir}/pygmentize
122#lang(en) %{_mandir}/man1/pygmentize.1*
123%endif # with_python3
124
125
126%changelog
127* Tue Nov 27 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.3.0-1
128- new upstream release.
129- added python3 support.
130
131* Tue Jul 12 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.1.3-1
132- new upstream release.
133
134* Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.3.1-3
135- rebuild with VineSeed environment
136
137* Sun Feb 19 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> - 1.3.1-2
138- rebuild with python-2.7.2
139
140* Mon Aug 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> - 1.3.1-1
141- initial build based on Fedora development
142
143* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 1.3.1-6
144- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
145
146* Thu May  6 2010 Gareth Armstrong <gareth.armstrong@hp.com> - 1.3.1-5
147- Enforce that Pygments requires Python 2.4 or later via an explicit BR
148- Minor tweaks to spec file
149- Deliver html and reST doc files to specifically named directories
150- Align description with that of http://pygments.org/
151- Add %%check section for Python2 and add BR on python-nose
152
153* Fri Apr 23 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-4
154- switched with_python3 back to 1
155
156* Fri Apr 23 2010 David Malcolm <dmalcolm@redhat.com> - 1.3.1-3
157- add python3 subpackage (BZ#537244), ignoring soft-dep on imaging for now
158
159* Tue Apr 13 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-2
160- added python-imaging as a dependency per BZ#581663.
161
162* Sat Mar  6 2010 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.3.1-1
163- Updated for release.
164
165* Tue Sep 29 2009 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.1.1-1
166- Updated for release.
167
168* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-5
169- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
170
171* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0-4
172- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
173
174* Sun Dec 21 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.0-3
175- Updated for release.
176
177* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0-2
178- Rebuild for Python 2.6
179
180* Thu Nov 27 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 1.0-1
181- Updated for upstream 1.0.
182
183* Sun Sep 14 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.11.1-1
184- Updated for upstream 0.11.
185
186* Mon Jul 21 2008 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.10-1
187- Updated for upstream 0.10.
188
189* Thu Nov 29 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.9-2
190- Added python-setuptools as a Requires per bz#403601.
191
192* Mon Nov 12 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.9-1
193- Updated for upstream 0.9.
194
195* Fri Aug 17 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.8.1-2
196- Removed the dos2unix build dependency.
197
198* Thu Jun 28 2007 Steve 'Ashcrow' Milner <me@stevemilner.org> - 0.8.1-1
199- Initial packaging for Fedora.
Note: See TracBrowser for help on using the repository browser.