You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
python-zope-event/python-zope-event.spec

75 lines
2.0 KiB

%if ! (0%{?fedora} > 12 || 0%{?rhel} > 5)
16 years ago
%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
%endif
16 years ago
Name: python-zope-event
Version: 3.5.0.1
Release: 2%{?dist}
16 years ago
Summary: Zope Event Publication
Group: Development/Languages
License: ZPLv2.1
URL: http://pypi.python.org/pypi/zope.event/
# Upstream accidentally used strange version
Source0: http://pypi.python.org/packages/source/z/zope.event/zope.event-3.5.0-1.tar.gz
16 years ago
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
BuildRequires: python-devel
BuildRequires: python-setuptools
BuildRequires: python-zope-testing
Requires: python-zope-filesystem
%description
The zope.event package provides a simple event system. It provides
an event publishing system and a very simple event-dispatching system
on which more sophisticated event dispatching systems can be built.
(For example, a type-based event dispatching system that builds on
zope.event can be found in zope.component.)
%prep
%setup -q -n zope.event-3.5.0-1
16 years ago
%build
%{__python} setup.py build
%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT%{python_sitelib}/zope/event/*.txt
16 years ago
%check
%{__python} setup.py test
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc CHANGES.txt COPYRIGHT.txt LICENSE.txt
%doc src/zope/event/*.txt
16 years ago
%{python_sitelib}/zope/*
%{python_sitelib}/zope.event*
%changelog
* Thu Jul 22 2010 David Malcolm <dmalcolm@redhat.com> - 3.5.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
* Thu Jun 17 2010 Robin Lee <robinlee.sysu@gmail.com> - 3.5.0.1-1
- Update to 3.5.0-1
- Include more documents
16 years ago
* Sun Jul 5 2009 Conrad Meyer <konrad@tylerc.org> - 3.4.1-1
- Add missing BR on python-setuptools.
- Enable testing stuff as zope-testing is in devel.
* Sun Dec 14 2008 Conrad Meyer <konrad@tylerc.org> - 3.4.0-1
- Initial package.