Author: glen                         Date: Thu Feb 17 07:04:36 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- add missing build section, run tests

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

---- Diffs:

================================================================
Index: packages/python-pyflakes/python-pyflakes.spec
diff -u packages/python-pyflakes/python-pyflakes.spec:1.6 
packages/python-pyflakes/python-pyflakes.spec:1.7
--- packages/python-pyflakes/python-pyflakes.spec:1.6   Thu Feb 17 08:01:35 2011
+++ packages/python-pyflakes/python-pyflakes.spec       Thu Feb 17 08:04:31 2011
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without tests   # do not perform "make test"
+
 %define        module  pyflakes
 Summary:       Passive checker of Python programs
 Summary(pl.UTF-8):     Pasywny program do sprawdzania programów w Pythonie
@@ -10,8 +14,9 @@
 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-TwistedCore
 BuildRequires: python-devel
-BuildRequires: rpm-pythonprov
+%{?with_tests:BuildRequires:   rpm-pythonprov}
 BuildRequires: rpmbuild(macros) >= 1.219
 %pyrequires_eq python-modules
 Provides:      pyflakes = %{version}-%{release}
@@ -38,6 +43,13 @@
 %prep
 %setup -q -n %{module}-%{version}
 
+%build
+%{__python} setup.py build
+
+%if %{with tests}
+trial pyflakes/test
+%endif
+
 %install
 rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install \
@@ -65,6 +77,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.7  2011/02/17 07:04:31  glen
+- add missing build section, run tests
+
 Revision 1.6  2011/02/17 07:01:35  glen
 - rename to python-pyflakes
 - verbose files, remove tests packaging
================================================================

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to