902ad9c
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
902ad9c
902ad9c
Name:           pysvn
08e89d2
Version:        1.6.3
08e89d2
Release:        1%{dist}
902ad9c
Summary:        Pythonic style bindings for Subversion
902ad9c
Group:          Development/Languages
902ad9c
License:        ASL 1.1
902ad9c
URL:            http://pysvn.tigris.org/
902ad9c
Source0:        http://pysvn.barrys-emacs.org/source_kits/%{name}-%{version}.tar.gz
d1679d8
Patch0:         pysvn-1.6.2-fix-benchmark.patch
902ad9c
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
902ad9c
BuildRequires:  python-devel
902ad9c
BuildRequires:  PyXML
902ad9c
BuildRequires:  subversion-devel
902ad9c
BuildRequires:  krb5-devel
902ad9c
BuildRequires:  neon-devel
902ad9c
BuildRequires:  apr-devel
6d2a8fe
BuildRequires:  openssl-devel
902ad9c
902ad9c
%description
902ad9c
Pythonic style bindings for Subversion
902ad9c
902ad9c
%prep
902ad9c
%setup -q -n %{name}-%{version}
6d2a8fe
%patch0
902ad9c
902ad9c
%build
902ad9c
pushd Source
d1679d8
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py configure --enable-debug --verbose --norpath --fixed-module-name
902ad9c
# Set correct build flags
d1679d8
%{__sed} -i -e 's/-Wall -fPIC -fexceptions -frtti/%{optflags} -fPIC -frtti/' Makefile
902ad9c
%{__make} %{?_smp_mflags}
902ad9c
902ad9c
%install
902ad9c
%{__rm} -rf %{buildroot}
902ad9c
%{__install} -d -m 755 %{buildroot}%{python_sitearch}/%{name}
902ad9c
%{__install} -p -m 644 Source/pysvn/__init__.py %{buildroot}%{python_sitearch}/%{name}
902ad9c
%{__install} -p -m 755 Source/pysvn/_pysvn.so %{buildroot}%{python_sitearch}/%{name}
902ad9c
d1679d8
%check
d1679d8
pushd Tests
d1679d8
%{__make} %{?_smp_mflags}
902ad9c
902ad9c
%clean
902ad9c
%{__rm} -rf %{buildroot}
902ad9c
902ad9c
%files
902ad9c
%defattr(-, root, root, -)
902ad9c
%doc Docs/pysvn.html Docs/pysvn_prog_guide.html Docs/pysvn_prog_ref.html
902ad9c
%doc Docs/pysvn_prog_ref.js
902ad9c
%doc Examples
902ad9c
%doc LICENSE.txt
902ad9c
%{python_sitearch}/%{name}
902ad9c
902ad9c
%changelog
08e89d2
* Tue Mar 03 2009 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.6.3-1
08e89d2
- Update to 1.6.3
08e89d2
e2b9ffb
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-4
e2b9ffb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e2b9ffb
aa22a6b
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 1.6.2-3
aa22a6b
- rebuild with new openssl
aa22a6b
7cc422f
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.6.2-2
7cc422f
- Rebuild for Python 2.6
7cc422f
d1679d8
* Tue Oct 28 2008 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.6.2-1
d1679d8
- Upstream to 1.6.2, upstream provided some build fixes to remove patches
d1679d8
-   (Thanks Barry!).  Re-enabled testing with provided patch to fix whitespace
d1679d8
93cf99e
* Sat Oct 11 2008 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.6.1-2
93cf99e
- Fixed lingering module versioning in __init__
93cf99e
6d2a8fe
* Mon Oct 06 2008 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.6.1-1
6d2a8fe
- Update to 1.6.1, fix F10 FBFS
6d2a8fe
- Disabled tests, might be because of subversion 1.5
6d2a8fe
6d2a8fe
* Wed Feb 27 2008 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.3-1
902ad9c
- Update to 1.5.3
902ad9c
6d2a8fe
* Thu Feb 14 2008 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.2-6
902ad9c
- Clean up. Name change (back to upstream)
902ad9c
6d2a8fe
* Tue Feb 12 2008 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.2-5
902ad9c
- Temporary fix for tests.  Need to work with upstream for permanent fix.
902ad9c
902ad9c
* Fri Feb 08 2008 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.2-4
902ad9c
- Fixed build requires, libgssapi-devel was still in there (for EL5 support)
902ad9c
902ad9c
* Fri Jan 11 2008 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.2-3
902ad9c
- Merged patches and spec changes by Terje Røsten <terje.rosten@ntnu.no>
902ad9c
- Fixed the test failures
902ad9c
902ad9c
* Fri Jan 04 2008 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.2-2 
902ad9c
- Attempting to make the spec work with different versions of Python
902ad9c
902ad9c
* Mon Sep 03 2007 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.2-1
902ad9c
- Update to 1.5.2
902ad9c
- Some spec clean up
902ad9c
902ad9c
* Fri Jan 12 2007 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.0-1
902ad9c
- Initial spec creation
902ad9c