rpms/python-line_profiler/devel import.log, NONE, 1.1 python-line_profiler.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Silas Sewell silas at fedoraproject.org
Sun Jun 7 20:21:36 UTC 2009


Author: silas

Update of /cvs/pkgs/rpms/python-line_profiler/devel
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv9228/devel

Modified Files:
	.cvsignore sources 
Added Files:
	import.log python-line_profiler.spec 
Log Message:
Initial commit.



--- NEW FILE import.log ---
python-line_profiler-1_0-0_3_b2_fc10:HEAD:python-line_profiler-1.0-0.3.b2.fc10.src.rpm:1244406027


--- NEW FILE python-line_profiler.spec ---
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

%define real_name line_profiler
%define pre_release b2

Name:           python-%{real_name}
Version:        1.0
Release:        0.3.%{pre_release}%{?dist}
Summary:        A Python line-by-line profiler

Group:          Development/Languages
License:        BSD
URL:            http://packages.python.org/%{real_name}
Source0:        http://pypi.python.org/packages/source/l/%{real_name}/%{real_name}-%{version}%{pre_release}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  python-devel

%description
line_profiler will profile the time individual lines of code take to execute.

%prep
%setup -q -n %{real_name}-%{version}%{pre_release}

# Fix non-executable-script error
%{__sed} -i '/^#!\/usr\/bin\/env\ python/d' %{real_name}.py

%build
CFLAGS="%{optflags}" %{__python} setup.py build

%install
rm -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}

# Fix non-standard-executable-perm error
chmod 0755 %{buildroot}%{python_sitearch}/_%{real_name}.so

# Rename kernprof.py to fix various .py bindir issues
mv %{buildroot}%{_bindir}/kernprof.py %{buildroot}%{_bindir}/kernprof

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc LICENSE.txt PKG-INFO README.txt
%{_bindir}/kernprof
%{python_sitearch}/_%{real_name}.so
%{python_sitearch}/%{real_name}-*.egg-info
%{python_sitearch}/%{real_name}.py*

%changelog
* Mon Jun 01 2009 Silas Sewell <silas at sewell.ch> - 1.0-0.3.b2
- Rename kernprof.py to kernprof

* Fri May 29 2009 Silas Sewell <silas at sewell.ch> - 1.0-0.2.b2
- Remove pyc and pyo exclude for bindir as Koji doesn't create them

* Wed May 27 2009 Silas Sewell <silas at sewell.ch> - 1.0-0.1.b2
- Initial build


Index: .cvsignore
===================================================================
RCS file: /cvs/pkgs/rpms/python-line_profiler/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- .cvsignore	3 Jun 2009 17:07:15 -0000	1.1
+++ .cvsignore	7 Jun 2009 20:21:05 -0000	1.2
@@ -0,0 +1 @@
+line_profiler-1.0b2.tar.gz


Index: sources
===================================================================
RCS file: /cvs/pkgs/rpms/python-line_profiler/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -p -r1.1 -r1.2
--- sources	3 Jun 2009 17:07:15 -0000	1.1
+++ sources	7 Jun 2009 20:21:05 -0000	1.2
@@ -0,0 +1 @@
+90c9e67062f0e01f3e0e6f952a9fdc1d  line_profiler-1.0b2.tar.gz




More information about the fedora-extras-commits mailing list