From 47954499a5509e82a3f74f699948b92d9b15d1b2 Mon Sep 17 00:00:00 2001 From: Luke Macken Date: Sun, 4 Mar 2007 01:23:02 +0000 Subject: [PATCH] - Add nosetests(1) manpage, and python-nose-0.9.2-mandir.patch to put it in the correct location. - 0.9.2 --- .cvsignore | 2 +- python-nose-0.9.2-mandir.patch | 11 +++++++++++ python-nose.spec | 17 +++++++++++++---- sources | 2 +- 4 files changed, 26 insertions(+), 6 deletions(-) create mode 100644 python-nose-0.9.2-mandir.patch diff --git a/.cvsignore b/.cvsignore index b3ca1cb..955f9a6 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -nose-0.9.1.tar.gz +nose-0.9.2.tar.gz diff --git a/python-nose-0.9.2-mandir.patch b/python-nose-0.9.2-mandir.patch new file mode 100644 index 0000000..567e86d --- /dev/null +++ b/python-nose-0.9.2-mandir.patch @@ -0,0 +1,11 @@ +--- setup.py.orig 2007-03-03 20:19:03.000000000 -0500 ++++ setup.py 2007-03-03 20:19:07.000000000 -0500 +@@ -38,7 +38,7 @@ + download_url = \ + 'http://somethingaboutorange.com/mrl/projects/nose/nose-%s.tar.gz' \ + % VERSION, +- data_files = [('man/man2', ['nosetests.1'])], ++ data_files = [('man/man1', ['nosetests.1'])], + package_data = {'': ['*.txt']}, + packages = find_packages(), + entry_points = { diff --git a/python-nose.spec b/python-nose.spec index 757ecc4..de740ab 100644 --- a/python-nose.spec +++ b/python-nose.spec @@ -3,14 +3,15 @@ %{!?pyver: %define pyver %(%{__python} -c "import sys ; print sys.version[:3]")} Name: python-nose -Version: 0.9.1 -Release: 2%{?dist} +Version: 0.9.2 +Release: 1%{?dist} Summary: A discovery-based unittest extension for Python Group: Development/Languages License: LGPL URL: http://somethingaboutorange.com/mrl/projects/nose/ Source0: http://somethingaboutorange.com/mrl/projects/nose/nose-%{version}.tar.gz +Patch0: %{name}-%{version}-mandir.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildArch: noarch @@ -25,14 +26,16 @@ reasonably possible without resorting to too much magic. %prep %setup -q -n nose-%{version} +%patch0 %build CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build %install rm -rf $RPM_BUILD_ROOT -%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT --single-version-externally-managed - +%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT \ + --single-version-externally-managed --install-data=%{_datadir} + %clean rm -rf $RPM_BUILD_ROOT @@ -40,10 +43,16 @@ rm -rf $RPM_BUILD_ROOT %defattr(-,root,root,-) %doc AUTHORS CHANGELOG lgpl.txt NEWS README.txt %{_bindir}/nosetests +%{_mandir}/man1/nosetests.1.gz %{python_sitelib}/nose-%{version}-py%{pyver}.egg-info %{python_sitelib}/nose %changelog +* Sat Mar 3 2007 Luke Macken 0.9.2-1 +- Add nosetests(1) manpage, and python-nose-0.9.2-mandir.patch to put it in + the correct location. +- 0.9.2 + * Sat Dec 9 2006 Luke Macken 0.9.1-2 - Rebuild for python 2.5 diff --git a/sources b/sources index 357ed0e..d7bee1a 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -97771e186ff3680e1abe5566a939966c nose-0.9.1.tar.gz +d6c78e37b5a5a671e79b00784233dc63 nose-0.9.2.tar.gz