22cbe2
%if 0%{?fedora}
22cbe2
%global with_python3 1
22cbe2
%endif
902ad9
902ad9
Name:           pysvn
934854
Version:        1.9.2
6270f1
Release:        7%{dist}
902ad9
Summary:        Pythonic style bindings for Subversion
902ad9
Group:          Development/Languages
902ad9
License:        ASL 1.1
902ad9
URL:            http://pysvn.tigris.org/
902ad9
Source0:        http://pysvn.barrys-emacs.org/source_kits/%{name}-%{version}.tar.gz
902ad9
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
902ad9
BuildRequires:  python-devel
902ad9
BuildRequires:  subversion-devel
902ad9
BuildRequires:  krb5-devel
902ad9
BuildRequires:  neon-devel
902ad9
BuildRequires:  apr-devel
6d2a8f
BuildRequires:  openssl-devel
934854
BuildRequires:  python-pycxx-devel >= 6.2.8
902ad9
6270f1
%global _description\
6270f1
Pythonic style bindings for Subversion\
6270f1
6270f1
6270f1
%description %_description
902ad9
6270f1
%package -n python2-pysvn
6270f1
Summary: %summary
6270f1
%{?python_provide:%python_provide python2-pysvn}
6270f1
# Remove before F30
6270f1
Provides: pysvn%{?_isa} = %{version}-%{release}
6270f1
Obsoletes: pysvn < %{version}-%{release}
6270f1
6270f1
%description -n python2-pysvn %_description
Caitlyn O'Hanna 663e8f
22cbe2
%if 0%{?with_python3}
22cbe2
%package -n python3-pysvn
22cbe2
Summary: Pythonic style bindings for Subversion
22cbe2
22cbe2
BuildRequires:    python3-devel
22cbe2
BuildRequires:    python3-pycxx-devel
22cbe2
22cbe2
%description -n python3-pysvn
22cbe2
Pythonic style bindings for Subversion
22cbe2
22cbe2
%endif
22cbe2
22cbe2
902ad9
%prep
902ad9
%setup -q -n %{name}-%{version}
Caitlyn O'Hanna 663e8f
e1da45
# Remove bundled libs
e1da45
rm -Rf Import
902ad9
22cbe2
%if 0%{?with_python3}
22cbe2
rm -rf %{py3dir}
22cbe2
cp -a . %{py3dir}
22cbe2
%endif
22cbe2
902ad9
%build
902ad9
pushd Source
e1da45
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py configure \
e1da45
    --enable-debug --verbose --fixed-module-name --norpath \
e1da45
    --pycxx-dir=/usr/include --pycxx-src-dir=/usr/src/CXX
e1da45
ccb5c4
%{__sed} -i -e 's@-Wall -fPIC -fexceptions -frtti@%{optflags} -fPIC -frtti@' Makefile
902ad9
%{__make} %{?_smp_mflags}
902ad9
22cbe2
%if 0%{?with_python3}
22cbe2
pushd %{py3dir}/Source
22cbe2
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py configure \
22cbe2
    --enable-debug --verbose --fixed-module-name --norpath \
22cbe2
    --pycxx-dir=/usr/include --pycxx-src-dir=/usr/src/CXX
22cbe2
ccb5c4
%{__sed} -i -e 's@-Wall -fPIC -fexceptions -frtti@%{optflags} -fPIC -frtti@' Makefile
22cbe2
%{__make} %{?_smp_mflags}
22cbe2
popd
22cbe2
%endif
22cbe2
Caitlyn O'Hanna 663e8f
902ad9
%install
902ad9
%{__rm} -rf %{buildroot}
22cbe2
22cbe2
%if 0%{?with_python3}
22cbe2
pushd %{py3dir}
22cbe2
%{__install} -d -m 755 %{buildroot}%{python3_sitearch}/%{name}
22cbe2
%{__install} -p -m 644 Source/pysvn/__init__.py %{buildroot}%{python3_sitearch}/%{name}
22cbe2
%{__install} -p -m 755 Source/pysvn/_pysvn.so %{buildroot}%{python3_sitearch}/%{name}
22cbe2
popd
22cbe2
%endif
22cbe2
902ad9
%{__install} -d -m 755 %{buildroot}%{python_sitearch}/%{name}
902ad9
%{__install} -p -m 644 Source/pysvn/__init__.py %{buildroot}%{python_sitearch}/%{name}
902ad9
%{__install} -p -m 755 Source/pysvn/_pysvn.so %{buildroot}%{python_sitearch}/%{name}
902ad9
Caitlyn O'Hanna 663e8f
d1679d
%check
45c1f4
#pushd Tests
45c1f4
#%{__make} %{?_smp_mflags}
902ad9
Caitlyn O'Hanna 663e8f
902ad9
%clean
902ad9
%{__rm} -rf %{buildroot}
902ad9
Caitlyn O'Hanna 663e8f
6270f1
%files -n python2-pysvn
902ad9
%defattr(-, root, root, -)
902ad9
%doc Docs/pysvn.html Docs/pysvn_prog_guide.html Docs/pysvn_prog_ref.html
902ad9
%doc Docs/pysvn_prog_ref.js
902ad9
%doc Examples
902ad9
%doc LICENSE.txt
902ad9
%{python_sitearch}/%{name}
902ad9
22cbe2
%files -n python3-pysvn
22cbe2
%defattr(-, root, root, -)
22cbe2
%doc Docs/pysvn.html Docs/pysvn_prog_guide.html Docs/pysvn_prog_ref.html
22cbe2
%doc Docs/pysvn_prog_ref.js
22cbe2
%doc Examples
22cbe2
%doc LICENSE.txt
22cbe2
%{python3_sitearch}/%{name}
22cbe2
Caitlyn O'Hanna 663e8f
902ad9
%changelog
6270f1
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.9.2-7
6270f1
- Python 2 binary package renamed to python2-pysvn
6270f1
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
6270f1
f3da8c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-6
f3da8c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f3da8c
f3bcac
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-5
f3bcac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f3bcac
9121b1
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-4
9121b1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9121b1
17640d
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.9.2-3
17640d
- Rebuild for Python 3.6
17640d
8f2458
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.2-2
8f2458
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8f2458
934854
* Mon May 16 2016 Stephen Gallagher <sgallagh@redhat.com> - 1.9.2-1
934854
- Update to 1.9.2 to support subversion 1.9
934854
fea34b
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-2
fea34b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fea34b
7152fe
* Fri Nov 13 2015 Stephen Gallagher <sgallagh@redhat.com> 1.8.0-1
7152fe
- New upstream release 1.8.0
7152fe
be10f2
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
be10f2
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
be10f2
e79a93
* Thu Jul 09 2015 Stephen Gallagher <sgallagh@redhat.com> 1.7.10-1
e79a93
- Update to latest pysvn 1.7.10
e79a93
0cf53f
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.6-12
0cf53f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0cf53f
a0c997
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
a0c997
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a0c997
cf34ca
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.6-10
cf34ca
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cf34ca
8cac27
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 1.7.6-9
8cac27
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
8cac27
22cbe2
* Wed Aug 07 2013 Stephen Gallagher <sgallagh@redhat.com> - 1.7.6-8
22cbe2
- Build python3 version as well
22cbe2
e1da45
* Wed Aug 07 2013 Stephen Gallagher <sgallagh@redhat.com> - 1.7.6-7
e1da45
- Remove bundled copy of pyCXX
e1da45
- Resolves: RHBZ#838249
e1da45
391f51
* Mon Aug 05 2013 Stephen Gallagher <sgallagh@redhat.com> - 1.7.6-6
391f51
- Drop build dependency on PyXML
391f51
- Fix bad changelog date
391f51
7db768
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.6-5
7db768
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7db768
45c1f4
* Fri Feb 22 2013 Stephen Gallagher <sgallagh@redhat.com> - 1.7.6-4
45c1f4
- Disable running tests during build. They have not been updated for use with
45c1f4
  subversion 1.7.8
45c1f4
6af4eb
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.6-3
6af4eb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6af4eb
b68044
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.6-2
b68044
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b68044
391f51
* Tue Jul 10 2012 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.7.6-1
Caitlyn O'Hanna 663e8f
- Update to newest, per request of upstream maintainer.
Caitlyn O'Hanna 663e8f
568004
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.5-3
568004
- Rebuilt for c++ ABI breakage
568004
ad044a
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.5-2
ad044a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ad044a
587b25
* Sun Jun 26 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.7.5-1.2
587b25
- New upstream release 1.7.5
587b25
- Do not generate library with --rpath
587b25
- Apply upstream patch for test fixes against subversion 1.6.17
587b25
80c769
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2-2
80c769
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
80c769
d38e45
* Thu Jul 22 2010 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.7.2-1
d38e45
- Update to newest
d38e45
643b31
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.7.0-4
643b31
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
643b31
ea1284
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.7.0-3
ea1284
- rebuilt with new openssl
ea1284
b78d3e
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
b78d3e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b78d3e
cc4288
* Mon Jun 29 2009 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.7.0-1
cc4288
- Update to new version
cc4288
ba50ff
* Wed Mar 04 2009 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.6.3-2
9cd245
- Remove the benchmark patch.  Changes included in this release.
9cd245
08e89d
* Tue Mar 03 2009 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.6.3-1
08e89d
- Update to 1.6.3
08e89d
e2b9ff
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.2-4
e2b9ff
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
e2b9ff
aa22a6
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 1.6.2-3
aa22a6
- rebuild with new openssl
aa22a6
7cc422
* Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.6.2-2
7cc422
- Rebuild for Python 2.6
7cc422
d1679d
* Tue Oct 28 2008 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.6.2-1
d1679d
- Upstream to 1.6.2, upstream provided some build fixes to remove patches
d1679d
-   (Thanks Barry!).  Re-enabled testing with provided patch to fix whitespace
d1679d
93cf99
* Sat Oct 11 2008 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.6.1-2
93cf99
- Fixed lingering module versioning in __init__
93cf99
6d2a8f
* Mon Oct 06 2008 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.6.1-1
6d2a8f
- Update to 1.6.1, fix F10 FBFS
6d2a8f
- Disabled tests, might be because of subversion 1.5
6d2a8f
6d2a8f
* Wed Feb 27 2008 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.3-1
902ad9
- Update to 1.5.3
902ad9
6d2a8f
* Thu Feb 14 2008 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.2-6
902ad9
- Clean up. Name change (back to upstream)
902ad9
6d2a8f
* Tue Feb 12 2008 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.2-5
902ad9
- Temporary fix for tests.  Need to work with upstream for permanent fix.
902ad9
902ad9
* Fri Feb 08 2008 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.2-4
902ad9
- Fixed build requires, libgssapi-devel was still in there (for EL5 support)
902ad9
902ad9
* Fri Jan 11 2008 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.2-3
902ad9
- Merged patches and spec changes by Terje Røsten <terje.rosten@ntnu.no>
902ad9
- Fixed the test failures
902ad9
902ad9
* Fri Jan 04 2008 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.2-2 
902ad9
- Attempting to make the spec work with different versions of Python
902ad9
902ad9
* Mon Sep 03 2007 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.2-1
902ad9
- Update to 1.5.2
902ad9
- Some spec clean up
902ad9
902ad9
* Fri Jan 12 2007 Timothy Selivanow <timothy.selivanow@virtualxistenz.com> - 1.5.0-1
902ad9
- Initial spec creation
902ad9