From b218fc863742c9777c363bbf7246a1bc659e8e1c Mon Sep 17 00:00:00 2001 From: Robin Lee Date: Thu, 17 Jun 2010 00:32:02 +0800 Subject: python-zope-proxy 3.6.0-1 from Conrad Meyer --- python-ZODB3/F-13/python-ZODB3.spec | 6 +- python-zope-proxy/F-13/python-zope-proxy.spec | 92 +++++++++++++++++++++++++++ 2 files changed, 95 insertions(+), 3 deletions(-) create mode 100644 python-zope-proxy/F-13/python-zope-proxy.spec diff --git a/python-ZODB3/F-13/python-ZODB3.spec b/python-ZODB3/F-13/python-ZODB3.spec index ecda15c..c268e4e 100644 --- a/python-ZODB3/F-13/python-ZODB3.spec +++ b/python-ZODB3/F-13/python-ZODB3.spec @@ -57,9 +57,9 @@ 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 -# remove contained source file(s) +# remove contained source files find $RPM_BUILD_ROOT -name '*.c' -type f -print0 | xargs -0 rm -fv -# deal with header file(s) +# deal with header files for MOD in BTrees persistent; do mkdir -p $RPM_BUILD_ROOT%{_includedir}/python%{py_ver}/$MOD/ mv $RPM_BUILD_ROOT%{python_sitearch}/$MOD/*.h \ @@ -81,7 +81,7 @@ rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root,-) -%{_defaultdocdir}/%{name}-%{version}/ +%{_docdir}/%{name}-%{version}/ %{python_sitearch}/ZODB/ %{python_sitearch}/ZODB3-*.egg-info %{_bindir}/* diff --git a/python-zope-proxy/F-13/python-zope-proxy.spec b/python-zope-proxy/F-13/python-zope-proxy.spec new file mode 100644 index 0000000..137831b --- /dev/null +++ b/python-zope-proxy/F-13/python-zope-proxy.spec @@ -0,0 +1,92 @@ +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} + +Name: python-zope-proxy +Version: 3.6.0 +Release: 1%{?dist} +Summary: Generic Transparent Proxies +Group: Development/Languages +License: ZPLv2.1 +URL: http://pypi.python.org/pypi/zope.proxy/ +Source0: http://pypi.python.org/packages/source/z/zope.proxy/zope.proxy-%{version}.zip +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: python-devel +BuildRequires: python-setuptools +BuildRequires: python-zope-testing +Requires: python-zope-filesystem + + +%description +Proxies are special objects which serve as mostly-transparent wrappers +around another object, intervening in the apparent behavior of the +wrapped object only when necessary to apply the policy (e.g., access +checking, location brokering, etc.) for which the proxy is responsible. + + +%package devel +Summary: Development files for %{name} +Group: Development/Languages +Requires: %{name} = %{version}-%{release} + + +%description devel +Development headers and libraries for %{name}. + + +%prep +%setup -q -n zope.proxy-%{version} +sed -i -e 's|\r||' CHANGES.txt +sed -i -e 's|\r||' README.txt + + +%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 +rm -f $RPM_BUILD_ROOT%{python_sitearch}/zope/proxy/proxy.h +rm -f $RPM_BUILD_ROOT%{python_sitearch}/zope/proxy/_zope_proxy_proxy.c + + +%check +%{__python} setup.py test + + +%clean +rm -rf $RPM_BUILD_ROOT + + +%files +%defattr(-,root,root,-) +%doc CHANGES.txt README.txt +%{python_sitearch}/zope.proxy* +%{python_sitearch}/zope/* + + +%files devel +%defattr(-,root,root,-) +%{_includedir}/python?.?/zope.proxy + + + +%changelog +* Mon Jun 7 2010 Conrad Meyer - 3.6.0-1 +- Bump to latest version. + +* Mon Feb 15 2010 Conrad Meyer - 3.5.0-3 +- Nuke .c/.h files used to build C library from installed + files. + +* Wed Dec 30 2009 Conrad Meyer - 3.5.0-2 +- Move development files to devel subpackage. +- Use global instead of define. + +* Sun Jul 5 2009 Conrad Meyer - 3.5.0-1 +- Bump to latest version. +- Enable tests as zope.testing is in devel. +- Add missing BR on python-setuptools. + +* Sun Dec 14 2008 Conrad Meyer - 3.4.2-1 +- Initial package. -- cgit