commit 47e2afb64af2fd050f86b8287fb6e0eac754d508
Author: Jakub Bogusz <[email protected]>
Date:   Sun Dec 1 18:02:50 2013 +0100

    - updated to 1.3.0, cleanups

 python-nose.spec | 49 +++++++++++++++++++++++++++++++++----------------
 1 file changed, 33 insertions(+), 16 deletions(-)
---
diff --git a/python-nose.spec b/python-nose.spec
index 506e40e..023da6b 100644
--- a/python-nose.spec
+++ b/python-nose.spec
@@ -2,21 +2,20 @@
 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:       1.2.1
+Version:       1.3.0
 Release:       1
-License:       LGPL
+License:       LGPL v2.1
 Group:         Libraries/Python
-Source0:       
http://pypi.python.org/packages/source/n/%{module}/%{module}-%{version}.tar.gz
-# Source0-md5: 735e3f1ce8b07e70ee1b742a8a53585a
+Source0:       
http://pypi.python.org/packages/source/n/nose/%{module}-%{version}.tar.gz
+# Source0-md5: 95d6d32b9d6b029c3c65674bd9e7eabe
 URL:           http://pypi.python.org/pypi/nose
-BuildRequires: python-devel
+BuildRequires: python-devel >= 1:2.5
 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
+Requires:      python-devel-tools >= 1:2.5
 BuildArch:     noarch
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
@@ -36,11 +35,11 @@ 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}
+%package -n python3-%{module}
+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
 Group:         Libraries/Python
+Requires:      python3-devel-tools
 
 %description -n python3-%{module}
 nose provides an alternate test discovery and running process for
@@ -50,6 +49,14 @@ 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.
 
+%description -n python3-%{module} -l pl.UTF-8
+nose dostarcza alternatywny proces wykrywania i uruchamiania testów
+dla testów jednostkowych (unittest), mający przypominać zachowanie
+py.test na ile to możliwe bez uciekania się do magii. Domyślnie nose
+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.
+
 %define        _duplicate_files_terminate_build        0
 
 %prep
@@ -74,7 +81,14 @@ rm -rf $RPM_BUILD_ROOT
        --root=$RPM_BUILD_ROOT \
        --optimize=2
 
-mv $RPM_BUILD_ROOT%{_prefix}/man/ $RPM_BUILD_ROOT%{_datadir}
+mv $RPM_BUILD_ROOT%{_prefix}/man $RPM_BUILD_ROOT%{_datadir}
+for v in %{py_ver} %{py3_ver} ; do
+       cp -p $RPM_BUILD_ROOT%{_mandir}/man1/nosetests.1 
$RPM_BUILD_ROOT%{_mandir}/man1/nosetests-${v}.1
+done
+
+# default to python2 for now
+ln -sf nosetests-%{py_ver} $RPM_BUILD_ROOT%{_bindir}/nosetests
+echo '.so nosetests-%{py_ver}.1' > $RPM_BUILD_ROOT%{_mandir}/man1/nosetests.1
 
 %py_postclean
 
@@ -83,14 +97,17 @@ rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/nosetests-2.7
+%doc AUTHORS CHANGELOG NEWS README.txt
+%attr(755,root,root) %{_bindir}/nosetests-%{py_ver}
+%attr(755,root,root) %{_bindir}/nosetests
 %{py_sitescriptdir}/%{module}
 %{py_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%{_mandir}/man1/*
+%{_mandir}/man1/nosetests-%{py_ver}.1*
+%{_mandir}/man1/nosetests.1*
 
 %files -n python3-%{module}
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_bindir}/nosetests-3.?
+%attr(755,root,root) %{_bindir}/nosetests-%{py3_ver}
 %{py3_sitescriptdir}/%{module}
 %{py3_sitescriptdir}/%{module}-%{version}-py*.egg-info
-%{_mandir}/man1/*
+%{_mandir}/man1/nosetests-%{py3_ver}.1*
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python-nose.git/commitdiff/47e2afb64af2fd050f86b8287fb6e0eac754d508

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

Reply via email to