%define oname pysvn %define name python2.4-%{oname} %define py_platsitedir %{_libdir}/python2.4/site-packages %define py_sitedir %{_libdir}/python2.4/site-packages Summary: Highlevel Subversion Python bindings Name: python2.4-%{oname} Version: 1.5.1 Release: %mkrel 3 License: Apache License Group: Development/Python URL: http://pysvn.tigris.org Source0: %{oname}-%{version}.tar.gz Patch0: pysvn-no_rpath.diff Patch1: pysvn-optflags.diff BuildRequires: apr-devel BuildRequires: libexpat-devel %if %mdkversion >= 200900 BuildRequires: libneon0.27-devel %else BuildRequires: libneon0.26-devel %endif BuildRequires: python2.4-devel BuildRequires: subversion-devel BuildRoot: %{_tmppath}/%{name}-buildroot %description pysvn is a highlevel and easy to use Python bindings to Subversion. %package docs Summary: Programmer's documentation for pysvn Group: Development/Python %description docs pysvn is a highlevel and easy to use Python bindings to Subversion. This package contains the pysvn Programmer's Guide and the Programmer's Reference. %prep %setup -q -n %{oname}-%{version} %patch0 -p0 %patch1 -p0 cd Source && python2.4 setup.py configure %build %make -C Source %install rm -rf %{buildroot} install -d %{buildroot}%{py_platsitedir}/%{oname} cp -a Source/%oname/*.py %{buildroot}%{py_platsitedir}/%{oname} cp -a Source/%{oname}/_pysvn*.so %{buildroot}%{py_platsitedir}/%{oname} %py_compile %{buildroot}%{py_platsitedir}/%{oname} %clean rm -rf %{buildroot} %files %defattr(-,root,root) %doc LICENSE.txt %dir %{py_platsitedir}/%{oname} %{py_platsitedir}/%{oname}/* %files docs %defattr(-,root,root) %doc Docs/*.html Docs/*.js Examples %changelog * Mon Aug 4 2008 Kazuhiko Shiozaki 1.5.1-3mdv2008.0 - locate both __init__.py and _pysvn_2_4.so in the same directory * Sat Jul 26 2008 Kazuhiko Shiozaki 1.5.1-2mdv2008.0 - locate architecture dependent files correctly * Thu Mar 01 2007 Jérôme Soyer 1.5.1-1mdv2007.0 + Revision: 130370 - New release + Bogdano Arendartchuk - fix after version upgrade) * Wed Dec 06 2006 Jérôme Soyer 1.5.0-1mdv2007.1 + Revision: 91597 - Remove patch and update - Rebuild for latest pyhton + Bogdano Arendartchuk - Import python-pysvn