packages: python-pyflakes/python-pyflakes.spec - rename to python-pyflakes ...

glen glen at pld-linux.org
Thu Feb 17 08:01:40 CET 2011


Author: glen                         Date: Thu Feb 17 07:01:40 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- rename to python-pyflakes
- verbose files, remove tests packaging

---- Files affected:
packages/python-pyflakes:
   python-pyflakes.spec (1.5 -> 1.6) 

---- Diffs:

================================================================
Index: packages/python-pyflakes/python-pyflakes.spec
diff -u packages/python-pyflakes/python-pyflakes.spec:1.5 packages/python-pyflakes/python-pyflakes.spec:1.6
--- packages/python-pyflakes/python-pyflakes.spec:1.5	Mon Dec 27 13:13:29 2010
+++ packages/python-pyflakes/python-pyflakes.spec	Thu Feb 17 08:01:35 2011
@@ -1,18 +1,21 @@
 # $Revision$, $Date$
+%define 	module	pyflakes
 Summary:	Passive checker of Python programs
 Summary(pl.UTF-8):	Pasywny program do sprawdzania programów w Pythonie
-Name:		pyflakes
+Name:		python-%{module}
 Version:	0.4.0
-Release:	1
+Release:	2
 License:	MIT
 Group:		Development/Tools
-Source0:	http://pypi.python.org/packages/source/p/pyflakes/%{name}-%{version}.tar.gz
+Source0:	http://pypi.python.org/packages/source/p/pyflakes/%{module}-%{version}.tar.gz
 # Source0-md5:	630a72510aae8758f48cf60e4fa17176
 URL:		http://www.divmod.org/projects/pyflakes
 BuildRequires:	python-devel
 BuildRequires:	rpm-pythonprov
 BuildRequires:	rpmbuild(macros) >= 1.219
 %pyrequires_eq	python-modules
+Provides:	pyflakes = %{version}-%{release}
+Obsoletes:	pyflakes < 0.4.0-2
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -29,29 +32,32 @@
 kątem błędów. Jest podobny do PyCheckera jeśli chodzi o zakres
 działania, ale różni się tym, że nie wykonuje modułów przy sprawdzaniu
 ich. Jest to zarówno bardziej bezpieczne, jak i szybze, choć nie
-sprawdza tak wielu rzeczy. W przeciwieństwie do PyLinta Pyflakes
-szuka tylko błędów logicznych w programach; nie sprawdza stylu.
+sprawdza tak wielu rzeczy. W przeciwieństwie do PyLinta Pyflakes szuka
+tylko błędów logicznych w programach; nie sprawdza stylu.
 
 %prep
-%setup -q
+%setup -q -n %{module}-%{version}
 
 %install
 rm -rf $RPM_BUILD_ROOT
-
-python ./setup.py install \
+%{__python} setup.py install \
 	--optimize=2 \
 	--root=$RPM_BUILD_ROOT
 
 %py_postclean
 
+rm -rf $RPM_BUILD_ROOT%{py_sitescriptdir}/pyflakes/test
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/*
-%{py_sitescriptdir}/pyflakes-%{version}-py*.egg-info
+%attr(755,root,root) %{_bindir}/pyflakes
 %{py_sitescriptdir}/pyflakes
+%if "%{py_ver}" > "2.4"
+%{py_sitescriptdir}/pyflakes-%{version}-*.egg-info
+%endif
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -59,6 +65,10 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.6  2011/02/17 07:01:35  glen
+- rename to python-pyflakes
+- verbose files, remove tests packaging
+
 Revision 1.5  2010/12/27 12:13:29  patrys
 - 0.4.0
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-pyflakes/python-pyflakes.spec?r1=1.5&r2=1.6&f=u



More information about the pld-cvs-commit mailing list