%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} %define oname pysvn Name: python-svn Version: 1.5.2 Release: 2%{dist} Summary: Pythonic style bindings for Subversion Group: Development/Languages License: ASL 1.1 URL: http://pysvn.tigris.org/ Source0: http://pysvn.barrys-emacs.org/source_kits/%{oname}-%{version}.tar.gz Patch0: pysvn-1.5.2-remove-rpath.patch Patch1: pysvn-1.5.2-drop-version.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: python-devel BuildRequires: PyXML BuildRequires: subversion-devel BuildRequires: libgssapi-devel BuildRequires: neon-devel %description Pythonic style bindings for Subversion %prep %setup -q -n %{oname}-%{version} %patch -p1 %patch1 -p1 %build pushd Source %{__python} setup.py configure --enable-debug --verbose # Set correct build flags %{__sed} -i -e 's/-Wall -fPIC -fexceptions -frtti/%{optflags} -fPIC/' Makefile %{__make} %install %{__rm} -rf %{buildroot} %{__install} -d %{buildroot}%{python_sitearch}/%{oname} %{__install} -m 0644 Source/pysvn/__init__.py* %{buildroot}%{python_sitearch}/%{oname} %{__install} -m 0755 Source/pysvn/_pysvn*.so %{buildroot}%{python_sitearch}/%{oname}/_pysvn.so %check pushd Tests #{__make} %clean %{__rm} -rf %{buildroot} %files %defattr(-, root, root, -) %doc Docs/pysvn.html Docs/pysvn_prog_guide.html Docs/pysvn_prog_ref.html %doc Docs/pysvn_prog_ref.js %{python_sitearch}/%{oname} %changelog * Fri Jan 04 2008 Timothy Selivanow - 1.5.2-2 - Attempting to make the spec work with different versions of Python * Mon Sep 03 2007 Timothy Selivanow - 1.5.2-1 - Update to 1.5.2 - Some spec clean up * Fri Jan 12 2007 Timothy Selivanow - 1.5.0-1 - Initial spec creation