diff --git a/.gitignore b/.gitignore index e69de29..c7abfba 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/zope.fixers-1.0.tar.gz diff --git a/python3-zope-fixers.spec b/python3-zope-fixers.spec new file mode 100644 index 0000000..8720fcd --- /dev/null +++ b/python3-zope-fixers.spec @@ -0,0 +1,51 @@ +%global modname zope.fixers + +Summary: 2to3 fixers for Zope +Name: python3-%(echo %{modname} | sed -r 's|\.|-|g') +Version: 1.0 +Release: 2%{?dist} +Source0: http://pypi.python.org/packages/source/%(echo %{modname} | sed -r 's|^(.).*|\1|')/%{modname}/%{modname}-%{version}.tar.gz +License: ZPLv2.1 +Group: Development/Libraries +BuildArch: noarch +URL: http://svn.zope.org/zope.fixers/ + +BuildRequires: python3-devel +BuildRequires: python3-setuptools + + +%description +Fixers for Zope Component Architecture and the frameworks built with it. + +Currently, there is only one fixer, fix_implements. This fixer will change +all uses of implements(IFoo) in a class body to the class decorator +@implementer(IFoo), which is the most likely Python 3 syntax for +zope.interfaces implements statements. + +%prep +%setup -q -n %{modname}-%{version} + +%build +%{__python3} setup.py build + +%install +%{__python3} setup.py install --root=$RPM_BUILD_ROOT + +%check +%{__python3} setup.py test + +%files +%defattr(-,root,root,-) +%doc CHANGES.txt README.txt ZPL.txt docs/* +%{python3_sitelib}/%(echo %{modname} | sed -r 's|\.|/|g') +%dir %{python3_sitelib}/zope/ +%{python3_sitelib}/%{modname}-*.egg-info +%{python3_sitelib}/%{modname}-*-nspkg.pth + + +%changelog +* Wed Apr 25 2012 Robin Lee - 1.0-2 +- Add check section + +* Thu Sep 2 2010 Robin Lee - 1.0-1 +- Initial packaging diff --git a/sources b/sources index e69de29..969d480 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +6f8c87752660ba503e0705166cc9c7a8 zope.fixers-1.0.tar.gz