SPECS (AC-branch): python-lsprof.spec (NEW) - cProfile from python...

arekm arekm at pld-linux.org
Sun Mar 4 16:52:00 CET 2007


Author: arekm                        Date: Sun Mar  4 15:52:00 2007 GMT
Module: SPECS                         Tag: AC-branch
---- Log message:
- cProfile from python 2.5

---- Files affected:
SPECS:
   python-lsprof.spec (NONE -> 1.1.2.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/python-lsprof.spec
diff -u /dev/null SPECS/python-lsprof.spec:1.1.2.1
--- /dev/null	Sun Mar  4 16:52:00 2007
+++ SPECS/python-lsprof.spec	Sun Mar  4 16:51:55 2007
@@ -0,0 +1,57 @@
+# $Revision$, $Date$
+
+%define 	module	lsprof
+
+%define		_vername %(echo %{version}|tr . _)
+Summary:	lsprof - cProfiler
+Name:		python-%{module}
+%define	snap	20070304
+Version:	0.1
+Release:	1
+License:	GPL
+Group:		Libraries/Python
+Source0:	%{module}-%{snap}.tar.gz
+# Source0-md5:	8363e4e7afb93be7f144496f071acefa
+BuildRequires:	python-devel >= 1:2.3
+BuildRequires:	python-devel < 1:2.5
+%pyrequires_eq	python-libs
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+cProfiler
+
+%prep
+%setup -q -n %{module}
+
+%build
+CFLAGS="%{rpmcflags}"
+export CFLAGS
+python setup.py build_ext
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{py_sitedir},%{_examplesdir}/%{name}-%{version}}
+
+python setup.py install \
+	--root=$RPM_BUILD_ROOT \
+	--install-lib=%{py_sitedir} \
+	--optimize=2
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{py_sitedir}/*.py[co]
+%attr(755,root,root) %{py_sitedir}/*.so
+
+%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.2.1  2007/03/04 15:51:55  arekm
+- cProfile from python 2.5
+
+
================================================================


More information about the pld-cvs-commit mailing list