902ad9c
Name:           pysvn
d0233c0
Version:        1.9.21
9da21d2
Release:        3%{?dist}
902ad9c
Summary:        Pythonic style bindings for Subversion
902ad9c
License:        ASL 1.1
772d300
URL:            https://pysvn.sourceforge.io/
902ad9c
Source0:        http://pysvn.barrys-emacs.org/source_kits/%{name}-%{version}.tar.gz
a3d7c2c
BuildRequires:  make
fe11e12
BuildRequires:  gcc-c++
044fbcd
BuildRequires:  subversion
902ad9c
BuildRequires:  subversion-devel
902ad9c
BuildRequires:  krb5-devel
902ad9c
BuildRequires:  neon-devel
902ad9c
BuildRequires:  apr-devel
6d2a8fe
BuildRequires:  openssl-devel
e73c5ac
BuildRequires:  glibc-langpack-en
902ad9c
2366e1d
# Replace the usage of locale.getdefaultlocale() for python 3.11 support
2366e1d
Patch0001: initlocale.patch
2366e1d
6270f19
%global _description\
6270f19
Pythonic style bindings for Subversion\
6270f19
6270f19
6270f19
%description %_description
902ad9c
66fee67
%package -n python3-pysvn
22cbe2b
Summary: Pythonic style bindings for Subversion
66fee67
%{?python_provide:%python_provide python3-pysvn}
66fee67
BuildRequires:    python3-devel
d0233c0
BuildRequires:    python3-pycxx-devel >= 7.1.8
22cbe2b
66fee67
%description -n python3-pysvn %_description
22cbe2b
22cbe2b
902ad9c
%prep
2366e1d
%autosetup -n %{name}-%{version} -p1
Caitlyn O'Hanna 663e8f6
e1da45b
# Remove bundled libs
66fee67
rm -rf Import
902ad9c
22cbe2b
902ad9c
%build
902ad9c
pushd Source
22cbe2b
CFLAGS="$RPM_OPT_FLAGS" %{__python3} setup.py configure \
772d300
    --enable-debug --verbose --fixed-module-name --norpath
22cbe2b
a3d7c2c
echo "optflags %{optflags}"
ccb5c40
%{__sed} -i -e 's@-Wall -fPIC -fexceptions -frtti@%{optflags} -fPIC -frtti@' Makefile
22cbe2b
%{__make} %{?_smp_mflags}
22cbe2b
Caitlyn O'Hanna 663e8f6
902ad9c
%install
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}
902ad9c
Caitlyn O'Hanna 663e8f6
e73c5ac
%check
e73c5ac
pushd Tests
e73c5ac
# the tests expect a valid answer from locale.getdefaultlocale()
e73c5ac
# C.UTF-8 does not work. Use en_US.utf-8.
e73c5ac
LC_ALL=en_US.UTF-8 %{__make} -j1
e73c5ac
popd
Caitlyn O'Hanna 663e8f6
66fee67
%files -n python3-pysvn
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
cd7b6eb
%license LICENSE.txt
22cbe2b
%{python3_sitearch}/%{name}
22cbe2b
Caitlyn O'Hanna 663e8f6
902ad9c
%changelog
9da21d2
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.21-3
9da21d2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
9da21d2
b49d53d
* Mon Jun 19 2023 Python Maint <python-maint@redhat.com> - 1.9.21-2
b49d53d
- Rebuilt for Python 3.12
b49d53d
d0233c0
* Sun Jun 18 2023 Barry A. Scott <barry@barrys-emacs.org> - 1.9.21-1
d0233c0
- Update to upstream 1.9.21 which includes support for python 3.12 beta 1
d0233c0
556b4e2
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.20-2
556b4e2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
556b4e2
ce0287c
* Sat Oct 22 2022 Barry A. Scott <barry@barrys-emacs.org> - 1.9.20-1
ce0287c
- Update to upstream 1.9.20 which includes support for python 3.12
ce0287c
c97f4ad
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.18-2
c97f4ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
c97f4ad
2366e1d
* Tue Jun 21 2022 Stephen Gallagher <sgallagh@redhat.com> - 1.9.18-1
2366e1d
- Update to upstream release 1.9.18
2366e1d
- Replace usage of locale.getdefaultlocale() for py3.11 support
2366e1d
3d986d9
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 1.9.17-2
3d986d9
- Rebuilt for Python 3.11
3d986d9
a3d7c2c
* Sun Feb 13 2022 Barry A. Scott <barry@barrys-emacs.org> - 1.9.17-1
a3d7c2c
- Update to upstream release 1.9.17
a3d7c2c
952c2e7
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.12-6
952c2e7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
952c2e7
56a2c4f
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.12-5
56a2c4f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
56a2c4f
ba69b54
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 1.9.12-4
ba69b54
- Rebuilt for Python 3.10
ba69b54
4e456f6
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.12-3
4e456f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
4e456f6
9c4df96
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.12-2
9c4df96
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
9c4df96
54ccba9
* Sun Jul 26 2020 Barry Scott <barry@barrys-emacs.org> - 1.9.12-1
54ccba9
- Update to upstream 1.9.12 release
54ccba9
- Add support for subversion 1.14
54ccba9
- Tested with Python 3.9b1
54ccba9
- Add support for gpg-agent auth provider
54ccba9
- Fix problem building against svn 1.7 which is needed for Centos 7 support
54ccba9
5487f36
* Tue May 26 2020 Miro Hrončok <mhroncok@redhat.com> - 1.9.11-5
5487f36
- Rebuilt for Python 3.9
5487f36
cd2f7e8
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.11-4
cd2f7e8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
cd2f7e8
66fee67
* Sat Jan 18 2020 Barry Scott <barry@barrys-emacs.org> - 1.9.11-3
66fee67
- revert the last change that introduced a problem with
66fee67
  generated debug rpm
66fee67
9b840e7
* Mon Dec 23 2019 Xavier Bachelot <xavier@bachelot.org> - 1.9.11-2
9b840e7
- Add py2 back and conditionalize py2/py3 build.
9b840e7
- Use %%license for LICENSE.txt.
9b840e7
c4e86aa
* Sun Dec 15 2019 Barry Scott <barry@barrys-emacs.org> - 1.9.11-1
c4e86aa
- Update to upstream 1.9.11 release
c4e86aa
fb9ee76
* Sun Sep 08 2019 Miro Hrončok <mhroncok@redhat.com> - 1.9.10-3
fb9ee76
- Subpackage python2-pysvn has been removed
fb9ee76
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
fb9ee76
df8db0e
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.9.10-2
df8db0e
- Rebuilt for Python 3.8
df8db0e
137724d
* Mon Aug 19 2019 Barry Scott <barry@barrys-emacs.org> - 1.9.10-1
137724d
- Update to 1.9.10 and build against PyCXX 7.1.3
137724d
- Fix memory leak for python3 strings from PyCXX
137724d
d17ed54
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 1.9.9-3
d17ed54
- Rebuilt for Python 3.8
d17ed54
4255999
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.9-2
4255999
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
4255999
772d300
* Mon Mar 04 2019 Barry Scott <barry@barrys-emacs.org> - 1.9.9-1
772d300
- Update to 1.9.9 and build against PyCXX 7.1.2
772d300
- remove setup options that are the default
772d300
6b20535
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.6-3
6b20535
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
6b20535
ff3d051
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.6-2
ff3d051
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
ff3d051
07b3a5b
* Fri Jun 29 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.9.6-1
07b3a5b
- Update to 1.9.6 and build against pyCXX 7.0.3
07b3a5b
5d22ff1
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 1.9.5-5
5d22ff1
- Rebuilt for Python 3.7
5d22ff1
34128bf
* Sat May 05 2018 Miro Hrončok <mhroncok@redhat.com> - 1.9.5-4
34128bf
- Update Python macros to new packaging standards
34128bf
  (See https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build)
34128bf
57ef7f1
* Wed Feb 07 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.9.5-3
57ef7f1
- Fix conditionals for older releases and EPEL 7
57ef7f1
3559b14
* Wed Feb 07 2018 Iryna Shcherbina <ishcherb@redhat.com> - 1.9.5-2
3559b14
- Update Python 2 dependency declarations to new packaging standards
3559b14
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
3559b14
18e5ee7
* Mon Feb 05 2018 Stephen Gallagher <sgallagh@redhat.com> - 1.9.5-1
18e5ee7
- Update to 1.9.5
18e5ee7
- Resolves: rhbz#1541765
18e5ee7
d018a34
* Sun Aug 20 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.9.2-8
d018a34
- Add Provides for the old name without %%_isa
d018a34
6270f19
* Sat Aug 19 2017 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 1.9.2-7
6270f19
- Python 2 binary package renamed to python2-pysvn
6270f19
  See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3
6270f19
f3da8cc
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-6
f3da8cc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
f3da8cc
f3bcac5
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-5
f3bcac5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f3bcac5
9121b12
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.9.2-4
9121b12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
9121b12
17640d6
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 1.9.2-3
17640d6
- Rebuild for Python 3.6
17640d6
8f24583
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.9.2-2
8f24583
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
8f24583
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