%define pyver %(%{__python} -c "import sys; print sys.version[:3]") %undefine _enable_debug_packages %{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} Name: pysvn Version: 1.4.1 Release: 1%{?dist} Summary: Python SVN Extension Source: http://pysvn.tigris.org/files/documents/1233/30108/pysvn-1.4.1.tar.gz License: APL Group: Development/Languages URL: http://pysvn.tigris.org/ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel BuildRequires: gcc-c++ BuildRequires: subversion-devel %description pysvn Extension Features: * Supports all svn client features * Supports svn transaction features required to write svn pre-commit hooks * Easy to learn and use * Python like interface * Good Documentation and examples * No need to understand the Subversion C API %prep %setup -q %build cd Source python setup.py configure make %install rm -rf $RPM_BUILD_ROOT # Install.html says we need to do this manually cd Source install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/site-packages/pysvn install -m 644 pysvn/__init__.py $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/site-packages/pysvn install -m 644 pysvn/_pysvn.so $RPM_BUILD_ROOT%{_libdir}/python%{pyver}/site-packages/pysvn %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %doc LICENSE.txt Docs/*.html Docs/*.js %{_libdir}/python*.*/site-packages/pysvn %changelog * Sat Mar 04 2006 Thomas Vander Stichele - initial package