xavierb / rpms / pysvn

Forked from rpms/pysvn 4 years ago
Clone
22cbe2b
%if 0%{?fedora}
22cbe2b
%global with_python3 1
22cbe2b
%endif
902ad9c
902ad9c
Name:           pysvn
934854d
Version:        1.9.2
934854d
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
902ad9c
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
902ad9c
BuildRequires:  python-devel
902ad9c
BuildRequires:  subversion-devel
902ad9c
BuildRequires:  krb5-devel
902ad9c
BuildRequires:  neon-devel
902ad9c
BuildRequires:  apr-devel
6d2a8fe
BuildRequires:  openssl-devel
934854d
BuildRequires:  python-pycxx-devel >= 6.2.8
902ad9c
902ad9c
%description
902ad9c
Pythonic style bindings for Subversion
902ad9c
Caitlyn O'Hanna 663e8f6
22cbe2b
%if 0%{?with_python3}
22cbe2b
%package -n python3-pysvn
22cbe2b
Summary: Pythonic style bindings for Subversion
22cbe2b
22cbe2b
BuildRequires:    python3-devel
22cbe2b
BuildRequires:    python3-pycxx-devel
22cbe2b
22cbe2b
%description -n python3-pysvn
22cbe2b
Pythonic style bindings for Subversion
22cbe2b
22cbe2b
%endif
22cbe2b
22cbe2b
902ad9c
%prep
902ad9c
%setup -q -n %{name}-%{version}
Caitlyn O'Hanna 663e8f6
e1da45b
# Remove bundled libs
e1da45b
rm -Rf Import
902ad9c
22cbe2b
%if 0%{?with_python3}
22cbe2b
rm -rf %{py3dir}
22cbe2b
cp -a . %{py3dir}
22cbe2b
%endif
22cbe2b
902ad9c
%build
902ad9c
pushd Source
e1da45b
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py configure \
e1da45b
    --enable-debug --verbose --fixed-module-name --norpath \
e1da45b
    --pycxx-dir=/usr/include --pycxx-src-dir=/usr/src/CXX
e1da45b
ccb5c40
%{__sed} -i -e 's@-Wall -fPIC -fexceptions -frtti@%{optflags} -fPIC -frtti@' Makefile
902ad9c
%{__make} %{?_smp_mflags}
902ad9c
22cbe2b
%if 0%{?with_python3}
22cbe2b
pushd %{py3dir}/Source
22cbe2b
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py configure \
22cbe2b
    --enable-debug --verbose --fixed-module-name --norpath \
22cbe2b
    --pycxx-dir=/usr/include --pycxx-src-dir=/usr/src/CXX
22cbe2b
ccb5c40
%{__sed} -i -e 's@-Wall -fPIC -fexceptions -frtti@%{optflags} -fPIC -frtti@' Makefile
22cbe2b
%{__make} %{?_smp_mflags}
22cbe2b
popd
22cbe2b
%endif
22cbe2b
Caitlyn O'Hanna 663e8f6
902ad9c
%install
902ad9c
%{__rm} -rf %{buildroot}
22cbe2b
22cbe2b
%if 0%{?with_python3}
22cbe2b
pushd %{py3dir}
22cbe2b
%{__install} -d -m 755 %{buildroot}%{python3_sitearch}/%{name}
22cbe2b
%{__install} -p -m 644 Source/pysvn/__init__.py %{buildroot}%{python3_sitearch}/%{name}
22cbe2b
%{__install} -p -m 755 Source/pysvn/_pysvn.so %{buildroot}%{python3_sitearch}/%{name}
22cbe2b
popd
22cbe2b
%endif
22cbe2b
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
Caitlyn O'Hanna 663e8f6
d1679d8
%check
45c1f4f
#pushd Tests
45c1f4f
#%{__make} %{?_smp_mflags}
902ad9c
Caitlyn O'Hanna 663e8f6
902ad9c
%clean
902ad9c
%{__rm} -rf %{buildroot}
902ad9c
Caitlyn O'Hanna 663e8f6
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
22cbe2b
%files -n python3-pysvn
22cbe2b
%defattr(-, root, root, -)
22cbe2b
%doc Docs/pysvn.html Docs/pysvn_prog_guide.html Docs/pysvn_prog_ref.html
22cbe2b
%doc Docs/pysvn_prog_ref.js
22cbe2b
%doc Examples
22cbe2b
%doc LICENSE.txt
22cbe2b
%{python3_sitearch}/%{name}
22cbe2b
Caitlyn O'Hanna 663e8f6
902ad9c
%changelog
934854d
* Mon May 16 2016 Stephen Gallagher <sgallagh@redhat.com> - 1.9.2-1
934854d
- Update to 1.9.2 to support subversion 1.9
934854d
fea34b0
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.8.0-2
fea34b0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
fea34b0
7152fe5
* Fri Nov 13 2015 Stephen Gallagher <sgallagh@redhat.com> 1.8.0-1
7152fe5
- New upstream release 1.8.0
7152fe5
be10f29
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
be10f29
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
be10f29
e79a93a
* Thu Jul 09 2015 Stephen Gallagher <sgallagh@redhat.com> 1.7.10-1
e79a93a
- Update to latest pysvn 1.7.10
e79a93a
0cf53f8
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.6-12
0cf53f8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
0cf53f8
a0c9970
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
a0c9970
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a0c9970
cf34ca7
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.6-10
cf34ca7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
cf34ca7
8cac27b
* Tue May 27 2014 Kalev Lember <kalevlember@gmail.com> - 1.7.6-9
8cac27b
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
8cac27b
22cbe2b
* Wed Aug 07 2013 Stephen Gallagher <sgallagh@redhat.com> - 1.7.6-8
22cbe2b
- Build python3 version as well
22cbe2b
e1da45b
* Wed Aug 07 2013 Stephen Gallagher <sgallagh@redhat.com> - 1.7.6-7
e1da45b
- Remove bundled copy of pyCXX
e1da45b
- Resolves: RHBZ#838249
e1da45b
391f515
* Mon Aug 05 2013 Stephen Gallagher <sgallagh@redhat.com> - 1.7.6-6
391f515
- Drop build dependency on PyXML
391f515
- Fix bad changelog date
391f515
7db7684
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.6-5
7db7684
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
7db7684
45c1f4f
* Fri Feb 22 2013 Stephen Gallagher <sgallagh@redhat.com> - 1.7.6-4
45c1f4f
- Disable running tests during build. They have not been updated for use with
45c1f4f
  subversion 1.7.8
45c1f4f
6af4ebb
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.6-3
6af4ebb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6af4ebb
b680442
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.6-2
b680442
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b680442
391f515
* Tue Jul 10 2012 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.7.6-1
Caitlyn O'Hanna 663e8f6
- Update to newest, per request of upstream maintainer.
Caitlyn O'Hanna 663e8f6
568004f
* Tue Feb 28 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.5-3
568004f
- Rebuilt for c++ ABI breakage
568004f
ad044a4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.5-2
ad044a4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ad044a4
587b25d
* Sun Jun 26 2011 Stephen Gallagher <sgallagh@redhat.com> - 1.7.5-1.2
587b25d
- New upstream release 1.7.5
587b25d
- Do not generate library with --rpath
587b25d
- Apply upstream patch for test fixes against subversion 1.6.17
587b25d
80c769a
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.2-2
80c769a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
80c769a
d38e45a
* Thu Jul 22 2010 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.7.2-1
d38e45a
- Update to newest
d38e45a
643b31d
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 1.7.0-4
643b31d
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
643b31d
ea12842
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 1.7.0-3
ea12842
- rebuilt with new openssl
ea12842
b78d3e0
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.7.0-2
b78d3e0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
b78d3e0
cc4288d
* Mon Jun 29 2009 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.7.0-1
cc4288d
- Update to new version
cc4288d
ba50ff4
* Wed Mar 04 2009 Caitlyn O'Hanna <ravenoak@virtualxistenz.com> - 1.6.3-2
9cd245b
- Remove the benchmark patch.  Changes included in this release.
9cd245b
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