packages: python-nose/python-nose.spec - ver. 1.0.0 - added python 3.x package
wrobell
wrobell at pld-linux.org
Wed Jun 1 22:11:12 CEST 2011
Author: wrobell Date: Wed Jun 1 20:11:12 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- ver. 1.0.0
- added python 3.x package
---- Files affected:
packages/python-nose:
python-nose.spec (1.21 -> 1.22)
---- Diffs:
================================================================
Index: packages/python-nose/python-nose.spec
diff -u packages/python-nose/python-nose.spec:1.21 packages/python-nose/python-nose.spec:1.22
--- packages/python-nose/python-nose.spec:1.21 Sat Nov 13 01:20:03 2010
+++ packages/python-nose/python-nose.spec Wed Jun 1 22:11:07 2011
@@ -3,16 +3,19 @@
Summary: A unittest extension with automatic discovery, simplified authoring, and output capture
Summary(pl.UTF-8): Rozszerzenie testów jednostkowych z automatycznym wykrywaniem, prostym tworzeniem i przechwytywaniem wyjścia
Name: python-%{module}
-Version: 0.11.1
-Release: 3
+Version: 1.0.0
+Release: 1
License: LGPL
Group: Libraries/Python
-Source0: http://somethingaboutorange.com/mrl/projects/nose/%{module}-%{version}.tar.gz
-# Source0-md5: 00789d016f81ec52f666f020c644447e
-URL: http://somethingaboutorange.com/mrl/projects/nose/
+Source0: http://pypi.python.org/packages/source/n/%{module}/%{module}-%{version}.tar.gz
+# Source0-md5: 47a4784c817afa6ef11a505b574584ed
+URL: http://pypi.python.org/pypi/nose
BuildRequires: python-devel
BuildRequires: python-devel-tools >= 1:2.5
BuildRequires: python-setuptools >= 0.6-0.c5
+BuildRequires: python3-devel
+BuildRequires: python3-devel-tools >= 1:2.5
+BuildRequires: python3-distribute
BuildRequires: rpm-pythonprov
%pyrequires_eq python-devel-tools
BuildArch: noarch
@@ -34,16 +37,39 @@
których nazwa zawiera "test". Obsługuje także testy doctest i
opcjonalnie przedstawia raport pokrycia testów.
+%package -n python3-%{module}
+Summary: Serial port interface module
+Version: %{version}
+Release: %{release}
+Group: Libraries/Python
+
+%description -n python3-%{module}
+nose provides an alternate test discovery and running process for
+unittest, one that is intended to mimic the behavior of py.test as
+much as is reasonably possible without resorting to magic. By default,
+nose will run tests in files or directories under the current working
+directory whose names include "test". nose also supports doctest tests
+and may optionally provide a test coverage report.
+
%prep
%setup -qn %{module}-%{version}
%build
-python setup.py build
+%{__python} setup.py build --build-base py2
+%{__python3} setup.py build --build-base py3
%install
rm -rf $RPM_BUILD_ROOT
-python setup.py install \
+%{__python} setup.py build \
+ --build-base py2 \
+ install \
+ --root=$RPM_BUILD_ROOT \
+ --optimize=2
+
+%{__python3} setup.py build \
+ --build-base py3 \
+ install \
--root=$RPM_BUILD_ROOT \
--optimize=2
@@ -56,17 +82,28 @@
%files
%defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/nosetests
+%attr(755,root,root) %{_bindir}/nosetests-2.7
%{py_sitescriptdir}/%{module}
%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
%{_mandir}/man1/*
+%files -n python3-%{module}
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/nosetests-3.2
+%{py3_sitescriptdir}/%{module}
+%{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
+%{_mandir}/man1/*
+
%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.22 2011/06/01 20:11:07 wrobell
+- ver. 1.0.0
+- added python 3.x package
+
Revision 1.21 2010/11/13 00:20:03 pawelz
- release 3
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/python-nose/python-nose.spec?r1=1.21&r2=1.22&f=u
More information about the pld-cvs-commit
mailing list