SPECS: python-Pygments.spec (NEW) - initial release, working

emes emes at pld-linux.org
Tue Jul 29 12:53:45 CEST 2008


Author: emes                         Date: Tue Jul 29 10:53:45 2008 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- initial release, working

---- Files affected:
SPECS:
   python-Pygments.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/python-Pygments.spec
diff -u /dev/null SPECS/python-Pygments.spec:1.1
--- /dev/null	Tue Jul 29 12:53:45 2008
+++ SPECS/python-Pygments.spec	Tue Jul 29 12:53:40 2008
@@ -0,0 +1,60 @@
+# $Revision$, $Date$
+%define 	module	pygments
+%define		fname	Pygments
+Summary:	A generic syntax highlighter
+Name:		python-%{fname}
+Version:	0.10
+Release:	0.1
+License:	BSD
+Group:		Development/Languages/Python
+Source0:	http://pypi.python.org/packages/source/P/%{fname}/%{fname}-%{version}.tar.gz
+# Source0-md5:	1f24bee773010d0d53690a6f4bdc8bdb
+URL:		http://pygments.org/
+BuildRequires:	python-devel >= 1:2.5
+BuildRequires:	rpm-pythonprov
+# if py_postclean is used
+BuildRequires:	rpmbuild(macros) >= 1.219
+#%pyrequires_eq	python-libs
+%pyrequires_eq	python-modules
+#BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+
+%prep
+%setup -q -n %{fname}-%{version}
+
+%build
+%{__python} setup.py build
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__python} setup.py install \
+	--optimize=2 \
+	--root=$RPM_BUILD_ROOT
+
+%py_ocomp $RPM_BUILD_ROOT%{py_sitedir}
+%py_comp $RPM_BUILD_ROOT%{py_sitedir}
+%py_postclean
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc AUTHORS TODO
+%attr(755,root,root) %{_bindir}/pygmentize
+%{py_sitescriptdir}/%{module}
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/%{fname}-*.egg-info
+%endif
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2008/07/29 10:53:40  emes
+- initial release, working
+
================================================================


More information about the pld-cvs-commit mailing list