File python-protocols.spec of Package python-protocols
%define modname PyProtocols
Name: python-protocols
Version: 1.0
%define extraver a0dev_r2082
Release: 1
Summary: Open Protocols and Component Adaptation for Python
URL: http://peak.telecommunity.com/PyProtocols.html
License: PSF or ZPL
Group: Development/Libraries/Python
Source: %{modname}-%{version}%{extraver}.zip
BuildRoot: %{_tmppath}/%{name}-buildroot
%{py_requires}
BuildRequires: python-devel python-setuptools unzip
%description
PyProtocols extends the PEP 246 adapt() function with a new "declaration API"
that lets you easily define your own protocols and adapters, and declare what
adapters should be used to adapt what types, objects, or protocols. In addition
to its own Interface type, PyProtocols can also use Twisted and Zope's
Interface types too.
Authors:
--------
Phillip J. Eby <peak@eby-sarna.com>
%prep
%setup -q -n %{modname}-%{version}%{extraver}
%build
export CFLAGS="$RPM_OPT_FLAGS"
python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT --record-rpm=INSTALLED_FILES
%clean
rm -rf %{buildroot}
%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc CHANGES.txt README.txt TODO.txt UPGRADING.txt
%changelog
* Tue Nov 11 2008 - Ciaran Farrell <cfarrell1980@gmail.com>
- try building with --record-rpm instead of --record - 1.0-1
* Tue Oct 16 2007 - James Oakley <jfunk@funktronics.ca> - 1.0-1
- Update to the SVN snapshot everyone seems to use in production
* Thu Oct 11 2007 - James Oakley <jfunk@funktronics.ca> - 0.9.3-1
- Initial release