File pysvn.spec of Package pysvn
%define name pysvn
%define version 1.4.2
%define release 3
Summary: Python Subversion Tools
Name: %{name}
Version: %{version}
Release: %{release}
License: Apache License
URL: http://pysvn.tigris.org/
Group: Development/Python
Source0: %{name}-%{version}.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
Requires: python >= 2.3, subversion >= 1.2.0
BuildRequires: python-devel, subversion-devel, python-xml, gcc-c++
#libsubversion1_0-devel
%description
The pysvn project's goal is to enable Tools to be written in Python
that use Subversion. pysvn supports all svn client features, and svn
transaction features required to write svn pre-commit hooks. It is easy
to learn and use and provides Python like interface with good
documentation and examples.
%prep
%setup -q
%build
export LC_ALL=C
pushd Source
python setup.py configure --apr-inc-dir=/usr/include/apr-1
make
popd
python <<EOF
import py_compile, distutils.sysconfig
lib = distutils.sysconfig.get_python_lib(plat_specific=1, standard_lib=0)
py_compile.compile("Source/pysvn/__init__.py",
"Source/pysvn/__init__.pyc",
lib + "pysvn/__init__.py")
EOF
%install
rm -rf %{buildroot}
lib=`python -c 'import distutils.sysconfig; print distutils.sysconfig.get_python_lib(plat_specific=1, standard_lib=0)'`
install -d %{buildroot}/$lib/pysvn
for f in __init__.py __init__.pyc _pysvn.so; do
install Source/pysvn/$f %{buildroot}/$lib/pysvn
done
%clean
rm -rf %{buildroot}
%files
%defattr(-, root, root)
%doc INSTALL.html LICENSE.txt Docs/*.html Examples
%{_libdir}/python*/site-packages/pysvn/__init__.py
%{_libdir}/python*/site-packages/pysvn/__init__.pyc
%{_libdir}/python*/site-packages/pysvn/_pysvn.so
%changelog
* Mon Jan 22 2007 Kevin Deldycke <kevin@nexedi.com> 1.4.2-3mdv2007.0
- Rebuild for Mandriva 2007.0
* Fri May 12 2006 Christophe Dumez <christophe@nexedi.com> 1.4.2-2mdk
- added check for subversion version
- Added LC_ALL=C to make it compile
* Mon May 1 2006 Christophe Dumez <christophe@nexedi.com> 1.4.2-1mdk
- new upstream release
* Thu Mar 16 2006 Christophe Dumez <christophe@nexedi.com> 1.4.1-1mdk
- new upstream release
* Sun Dec 18 2005 Yoshinori Okuji <yo@nexedi.com> 1.3.1-1mdk
- initial version