6188ad4
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
327ed58
93ac28d
Name:           python-py
575de01
Version:        1.3.2
0be52fd
Release:        1%{?prerelease:.%{prerelease}}%{?dist}
6188ad4
Summary:        Rapid testing (py.test) and development utils (pylib)
93ac28d
Group:          Development/Languages
e536c7a
License:        MIT and Public Domain
e536c7a
#               main package: MIT, except: doc/style.css: Public Domain
93ac28d
URL:            http://codespeak.net/py/dist/
327ed58
Source:         http://pypi.python.org/packages/source/p/py/py-%{version}%{?prerelease}.tar.gz
93ac28d
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
327ed58
BuildArch:      noarch
93ac28d
BuildRequires:  python-devel
93ac28d
BuildRequires:  python-setuptools-devel
327ed58
# needed by the testsuite:
93ac28d
BuildRequires:  subversion
93ac28d
BuildRequires:  python-docutils
327ed58
BuildRequires:  python-pygments
327ed58
BuildRequires:  pylint
327ed58
BuildRequires:  pexpect
93ac28d
93ac28d
93ac28d
%description
6188ad4
The py lib has several namespaces which help with testing, generating
6188ad4
and distributing code across machines.
93ac28d
93ac28d
93ac28d
%prep
327ed58
%setup -q -n py-%{version}%{?prerelease}
93ac28d
575de01
# remove shebangs and fix permissions
575de01
find -type f -a \( -name '*.py' -o -name 'py.*' \) \
575de01
   -exec sed -i '1{/^#!/d}' {} \; \
575de01
   -exec chmod u=rw,go=r {} \;
575de01
93ac28d
93ac28d
%build
93ac28d
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build
93ac28d
93ac28d
93ac28d
%install
93ac28d
rm -rf %{buildroot}
93ac28d
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
93ac28d
575de01
# remove hidden file
575de01
rm -f doc/.coverage
93ac28d
93ac28d
327ed58
%check
e536c7a
%{__python} bin/py.test --report=failed,skipped
93ac28d
93ac28d
93ac28d
%clean
93ac28d
rm -rf %{buildroot}
93ac28d
93ac28d
93ac28d
%files
93ac28d
%defattr(-,root,root,-)
93ac28d
%{_bindir}/py.*
327ed58
%{python_sitelib}/*
e536c7a
%doc CHANGELOG LICENSE README.txt
e536c7a
%doc doc contrib
93ac28d
93ac28d
93ac28d
%changelog
575de01
* Sat Jul 10 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.3.2-1
575de01
- Update to 1.3.2.
575de01
- Do cleanups already in %%prep to avoid inconsistent mtimes between
575de01
  source files and bytecode.
575de01
b4bc5a6
* Sat May 29 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.3.1-1
b4bc5a6
- Update to 1.3.1.
b4bc5a6
4998a41
* Sat May  8 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.3.0-1
4998a41
- Update to 1.3.0.
4998a41
- Remove some backup (.orig) files.
4998a41
9726607
* Sun Feb 14 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.2.1-1
9726607
- Update to 1.2.1.
9726607
6188ad4
* Wed Jan 27 2010 Thomas Moschny <thomas.moschny@gmx.de> - 1.2.0-1
6188ad4
- Update to 1.2.0.
6188ad4
- Adjust summary and %%description.
6188ad4
- Use %%global instead of %%define.
6188ad4
e536c7a
* Sat Nov 28 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.1.1-1
e536c7a
- Update to 1.1.1.
e536c7a
e536c7a
* Sat Nov 21 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.1.0-1
e536c7a
- Update to 1.1.0. Upstream reorganized the package's structure and
e536c7a
  cleaned up the install process, so the specfile could be greatly
e536c7a
  simplified.
e536c7a
- Dropped licenses for files no longer present from the License tag.
e536c7a
b8f7535
* Thu Aug 27 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.2-1
b8f7535
- Update to 1.0.2.
b8f7535
- One failing test is no longer part of the testsuite, thus needs not
b8f7535
  to be skipped anymore.
b8f7535
- Some developer docs are missing this time in upstream's tarfile, so
b8f7535
  cannot be moved to %%{_docdir}
b8f7535
8f3753d
* Thu Aug 13 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.0-1
8f3753d
- Update to 1.0.0.
8f3753d
- Re-enable SVN tests in %%check.
8f3753d
0be52fd
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.0-1.b8
0be52fd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
0be52fd
327ed58
* Wed Jul 22 2009 Thomas Moschny <thomas.moschny@gmx.de> - 1.0.0-0.b8
327ed58
- Update to 1.0.0b8.
327ed58
- Remove patches applied upstream.
327ed58
- Greenlets have been removed upstream. So, package is noarch and
327ed58
  - installs to %%{python_sitelib} again
327ed58
  - %%ifarch sections have been removed.
327ed58
- Don't remove files used by the testsuite for now.
327ed58
- Add dependency on python-pygments, pylint and pexpect (for the
327ed58
  testsuite).
327ed58
e7add50
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-7
e7add50
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e7add50
93ac28d
* Wed Jan 14 2009 Thomas Moschny <thomas.moschny@gmx.de> - 0.9.2-6
93ac28d
- Use system doctest module again, as this wasn't the real cause of
93ac28d
  the test failure. Instead, remove the failing test for now.
93ac28d
93ac28d
* Fri Dec 12 2008 Thomas Moschny <thomas.moschny@gmx.de> - 0.9.2-5
93ac28d
- Add patch from trunk fixing a subversion 1.5 problem (pylib
93ac28d
  issue66).
93ac28d
- Don't replace doctest compat module (pylib issue67).
93ac28d
93ac28d
* Fri Nov 21 2008 Thomas Moschny <thomas.moschny@gmx.de> - 0.9.2-4
93ac28d
- Use dummy_greenlet on ppc and ppc64.
93ac28d
93ac28d
* Tue Oct  7 2008 Thomas Moschny <thomas.moschny@gmx.de> - 0.9.2-3
93ac28d
- Replace compat modules by stubs using the system modules instead.
93ac28d
- Add patch from trunk fixing a timing issue in the tests.
93ac28d
93ac28d
* Tue Sep 30 2008 Thomas Moschny <thomas.moschny@gmx.de> - 0.9.2-2
93ac28d
- Update license information.
93ac28d
- Fix the tests.
93ac28d
93ac28d
* Sun Sep  7 2008 Thomas Moschny <thomas.moschny@gmx.de> - 0.9.2-1
93ac28d
- Update to 0.9.2.
93ac28d
- Upstream now uses setuptools and installs to %%{python_sitearch}.
93ac28d
- Remove %%{srcname} macro.
93ac28d
- More detailed information about licenses.
93ac28d
93ac28d
* Wed Aug 21 2008 Thomas Moschny <thomas.moschny@gmx.de> - 0.9.1-1
93ac28d
- New package.