]> git.pld-linux.org Git - packages/python-nose.git/commitdiff
- ver. 1.0.0 auto/th/python-nose-1_0_0-1
authorwrobell <wrobell@pld-linux.org>
Wed, 1 Jun 2011 20:11:07 +0000 (20:11 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- added python 3.x package

Changed files:
    python-nose.spec -> 1.22

python-nose.spec

index cd66fc3df7ab48214627c190efa328c6209ab253..9588b7ccb2e72f226fedeb5bfafcb9c244dbda84 100644 (file)
@@ -2,16 +2,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
@@ -33,16 +36,39 @@ uruchamia testy z tych plików lub katalogów od bieżącego katalogu,
 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
 
@@ -55,7 +81,14 @@ rm -rf $RPM_BUILD_ROOT
 
 %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/*
This page took 0.104977 seconds and 4 git commands to generate.