Search
j0ke.net Open Build Service
>
Projects
>
devel
:
python
>
python-pygments
> python-pygments.spec
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File python-pygments.spec of Package python-pygments
Name: python-pygments Version: 1.5 Release: 1 Url: http://pygments.org/ License: BSD Summary: Python syntax highlighter Group: Development/Languages/Python Source0: Pygments-%{version}.tar.bz2 BuildRoot: %{_tmppath}/%{name}-%{version}-root BuildRequires: python-distribute BuildRequires: python BuildRequires: python-devel Requires: python Requires: python-distribute %description Python syntax highlighter. %prep %setup -n Pygments-%{version} %build python setup.py build %install %if 0%{?suse_version} python setup.py install \ --root=%{buildroot} \ --prefix=%{_prefix} \ --record-rpm=%{name}.filelist %else python setup.py install \ --root=%{buildroot} \ --prefix=%{_prefix} cd $RPM_BUILD_ROOT find . -type d | sed '1,2d;s,^\.,\%attr(-\,root\,root) \%dir ,' > %{_builddir}/Pygments-%{version}/%{name}.filelist find . -type f | sed 's,^\.,\%attr(-\,root\,root) ,' >> %{_builddir}/Pygments-%{version}/%{name}.filelist find . -type l | sed 's,^\.,\%attr(-\,root\,root) ,' >> %{_builddir}/Pygments-%{version}/%{name}.filelist sed -i s@"\.py$"@"\.py\*"@g %{_builddir}/Pygments-%{version}/%{name}.filelist %endif %clean rm -rf %{buildroot} %files -f %{name}.filelist %defattr(-,root,root) %doc AUTHORS CHANGES %changelog