8c56dbe
%global pkgname pygit2
8c56dbe
8c56dbe
Name:           python-%{pkgname}
1e7229a
Version:        1.1.1
2b273f3
Release:        1%{?dist}
4e64165
Summary:        Python bindings for libgit2
c48577d
Igor Gnatenko 518e568
License:        GPLv2 with linking exception
2274deb
URL:            https://www.pygit2.org/
f135c57
Source0:        https://github.com/libgit2/%{pkgname}/archive/v%{version}/%{pkgname}-%{version}.tar.gz
Igor Gnatenko 518e568
6fc2016
BuildRequires:  gcc
44c23e9
BuildRequires:  (libgit2-devel >= 0.99.0 with libgit2-devel < 1.1.0)
8c56dbe
8c56dbe
%description
c48577d
pygit2 is a set of Python bindings to the libgit2 library, which implements
4e64165
the core of Git.
4e64165
acaf857
8c56dbe
%package -n     python3-%{pkgname}
5adc81e
Summary:        Python 3 bindings for libgit2
4e64165
%{?python_provide:%python_provide python3-%{pkgname}}
acaf857
BuildRequires:  python3-cffi
8c56dbe
BuildRequires:  python3-devel
acaf857
BuildRequires:  python3-pytest
c48577d
BuildRequires:  python3-setuptools
307ea41
BuildRequires:  python3-cached_property
0846182
8c56dbe
%description -n python3-%{pkgname}
c48577d
pygit2 is a set of Python bindings to the libgit2 library, which implements
4e64165
the core of Git.
234f238
5adc81e
The python3-%{pkgname} package contains the Python 3 bindings.
2110641
acaf857
8c56dbe
%package        doc
8c56dbe
Summary:        Documentation for %{name}
8c56dbe
BuildArch:      noarch
d645e78
BuildRequires:  /usr/bin/sphinx-build
8c56dbe
8c56dbe
%description    doc
8c56dbe
Documentation for %{name}.
8c56dbe
acaf857
8c56dbe
%prep
4e64165
%autosetup -n %{pkgname}-%{version} -p1
39bc7d0
acaf857
8c56dbe
%build
4e64165
%py3_build
acaf857
def5f5a
make -C docs html
271f11d
acaf857
def5f5a
%install
4e64165
%py3_install
0c05c84
find %{_builddir} -name '.buildinfo' -print -delete
8c56dbe
acaf857
8c56dbe
%check
0c05c84
# This is horrible, but otherwise pytest does not use pygit2 from site-packages
0c05c84
rm -f pygit2/__init__.py
85fd6be
# https://github.com/libgit2/pygit2/issues/812
85fd6be
%ifarch ppc64 s390x
2274deb
  PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-%{python3_version} -v || :
0b43ffa
%else
2274deb
  PYTHONPATH=%{buildroot}%{python3_sitearch} py.test-%{python3_version} -v
0b43ffa
%endif
271f11d
acaf857
8c56dbe
%files -n python3-%{pkgname}
d7cd117
%license COPYING
1e7229a
%doc README.rst
aa4b9f0
%{python3_sitearch}/%{pkgname}-*.egg-info/
aa4b9f0
%{python3_sitearch}/%{pkgname}/
8c56dbe
8c56dbe
%files doc
Igor Gnatenko 9365640
%license COPYING
8c56dbe
%doc docs/_build/html/*
8c56dbe
acaf857
8c56dbe
%changelog
1e7229a
* Sat Mar 21 2020 Pete Walter <pwalter@fedoraproject.org> - 1.1.1-1
1e7229a
- Update to 1.1.1
1e7229a
44c23e9
* Tue Mar 03 2020 Igor Raits <ignatenkobrain@fedoraproject.org> - 1.1.0-1
44c23e9
- Update to 1.1.0
44c23e9
2b273f3
* Sun Feb 02 2020 Pete Walter <pwalter@fedoraproject.org> - 1.0.3-1
2b273f3
- Update to 1.0.3
2b273f3
6520379
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.2-2
6520379
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
6520379
5d1fec4
* Mon Jan 13 2020 Pete Walter <pwalter@fedoraproject.org> - 1.0.2-1
5d1fec4
- Update to 1.0.2
5d1fec4
9651f29
* Thu Oct 03 2019 Miro Hrončok <mhroncok@redhat.com> - 0.28.2-4
9651f29
- Rebuilt for Python 3.8.0rc1 (#1748018)
9651f29
7a6496c
* Mon Aug 19 2019 Miro Hrončok <mhroncok@redhat.com> - 0.28.2-3
7a6496c
- Rebuilt for Python 3.8
7a6496c
6bf0734
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.28.2-2
6bf0734
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
6bf0734
ee69ccd
* Thu Jun 06 14:32:34 CEST 2019 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.28.2-1
ee69ccd
- Update to 0.28.2
ee69ccd
225b75b
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.27.4-2
225b75b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
225b75b
1d66eb1
* Thu Jan 24 2019 Pete Walter <pwalter@fedoraproject.org> - 0.27.4-1
1d66eb1
- Update to 0.27.4
601991c
- Enable tests on aarch64 as they seem fixed now
1d66eb1
89f38ef
* Thu Dec 27 2018 Pete Walter <pwalter@fedoraproject.org> - 0.27.3-1
89f38ef
- Update to 0.27.3
89a8b49
- Switch to pytest
89f38ef
b50f3b9
* Thu Oct 11 2018 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.27.2-2
b50f3b9
- Python2 binary package has been removed
b50f3b9
  See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal
b50f3b9
b89f328
* Mon Sep 17 2018 Pete Walter <pwalter@fedoraproject.org> - 0.27.2-1
b89f328
- Update to 0.27.2
b89f328
a5d6031
* Fri Aug 10 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.27.1-1
a5d6031
- Update to 0.27.1
a5d6031
04e58c1
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.4-3
04e58c1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
04e58c1
7e3690e
* Tue Jun 19 2018 Miro Hrončok <mhroncok@redhat.com> - 0.26.4-2
7e3690e
- Rebuilt for Python 3.7
7e3690e
8ef1928
* Mon Mar 26 2018 Pete Walter <pwalter@fedoraproject.org> - 0.26.4-1
8ef1928
- Update to 0.26.4
8ef1928
597053c
* Mon Feb 12 2018 Iryna Shcherbina <ishcherb@redhat.com> - 0.26.3-3
597053c
- Update Python 2 dependency declarations to new packaging standards
597053c
  (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3)
597053c
24f2553
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.3-2
24f2553
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
24f2553
8d8cb38
* Tue Dec 26 2017 Pete Walter <pwalter@fedoraproject.org> - 0.26.3-1
8d8cb38
- Update to 0.26.3
8d8cb38
4500c3b
* Fri Dec 01 2017 Pete Walter <pwalter@fedoraproject.org> - 0.26.2-1
4500c3b
- Update to 0.26.2
4500c3b
d1eab5b
* Mon Nov 20 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.26.1-3
d1eab5b
- Fixup python3 conditionals
d1eab5b
5a5c482
* Mon Nov 20 2017 Pete Walter <pwalter@fedoraproject.org> - 0.26.1-2
5a5c482
- Add back Python 3 conditionals
5a5c482
271f11d
* Mon Nov 20 2017 Pete Walter <pwalter@fedoraproject.org> - 0.26.1-1
f9616e2
- Update to 0.26.1
f9616e2
ce9cb4c
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.0-3
ce9cb4c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ce9cb4c
382931b
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.0-2
382931b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
382931b
a481a7e
* Sat Jul 08 2017 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.26.0-1
a481a7e
- Update to 0.26.0
a481a7e
b22a8ee
* Sun May 07 2017 Pete Walter <pwalter@fedoraproject.org> - 0.25.1-2
b22a8ee
- Fix the build with cffi 1.10
b22a8ee
962c252
* Thu Apr 27 2017 Pete Walter <pwalter@fedoraproject.org> - 0.25.1-1
962c252
- Update to 0.25.1
724078a
- Disable one more failing test that tries to do network access
962c252
c48577d
* Mon Apr 10 2017 Pete Walter <pwalter@fedoraproject.org> - 0.25.0-3
c48577d
- Trivial spec file fixes
1ec0be8
- Add Python 3 conditionals
c48577d
Igor Gnatenko 3218229
* Tue Feb 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.25.0-2
Igor Gnatenko 3218229
- Bump release for rebuild
Igor Gnatenko 3218229
Igor Gnatenko 9365640
* Tue Jan 10 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.25.0-1
Igor Gnatenko 9365640
- Update to 0.25.0 (RHBZ #1408689)
Igor Gnatenko 9365640
0ad30d9
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.24.2-2
0ad30d9
- Rebuild for Python 3.6
0ad30d9
a9e2716
* Sat Nov 19 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.24.2-1
a9e2716
- Update to 0.24.2 (RHBZ #1390796)
a9e2716
49897c2
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24.1-2
49897c2
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
49897c2
f135c57
* Wed Jun 22 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.24.1-1
f135c57
- Update to 0.24.1 (RHBZ #1348750)
f135c57
Igor Gnatenko 518e568
* Mon Apr 18 2016 Igor Gnatenko <ignatenko@redhat.com> 0.24.0-3
Igor Gnatenko 518e568
- Remove remote-calling unit tests
Igor Gnatenko 518e568
- repository: decode() linkname
Igor Gnatenko 518e568
- repository: SYMTYPE is constant in module tarfile, not in any class
Igor Gnatenko 518e568
Igor Gnatenko c2ad1f0
* Thu Apr 14 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.24.0-2
Igor Gnatenko c2ad1f0
- Add python[23]-six to BR/Rs
Igor Gnatenko c2ad1f0
37be196
* Sun Mar 20 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.24.0-1
37be196
- Update to 0.24.0
37be196
f9aa4bf
* Wed Feb 24 2016 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.23.3-2
f9aa4bf
- Fix building 0.23.3 also in i686
f9aa4bf
4e64165
* Sun Feb 14 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.23.3-1
4e64165
- Update to 0.23.3
4e64165
- Fix compliance with new packaging guidelines
4e64165
8c404af
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.1-3
8c404af
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
8c404af
f116561
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23.1-2
f116561
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
f116561
a38c383
* Sun Sep 27 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.23.1-1
a38c383
- Update to 0.23.1 (RHBZ #1266726)
a38c383
682256b
* Fri Jul 31 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.23.0-0.1
682256b
- Cherry-pick patch for 0.23.0 support
682256b
909a086
* Fri Jul 31 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.22.1-2
909a086
- Rebuilt for libgit2-0.23.0 and libgit2-glib-0.23
909a086
Fedora Release Monitoring e00f540
* Mon Jul 13 2015 Mathieu Bridon <bochecha@daitauha.fr> - 0.22.1-1
Fedora Release Monitoring e00f540
- Update to 0.22.1 (#1242226)
Fedora Release Monitoring e00f540
- Drop one of our patches, as it has been merged in this release.
Fedora Release Monitoring e00f540
43d6fcd
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22.0-2
43d6fcd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
43d6fcd
bb63a54
* Wed Jan 21 2015 Mathieu Bridon <bochecha@daitauha.fr> - 0.22.0-1
bb63a54
- Update to 0.22.0
bb63a54
39bc7d0
* Mon Nov 17 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 0.21.4-1
39bc7d0
- Update to 0.21.4
39bc7d0
57fe51d
* Fri Sep 19 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 0.21.3-1
57fe51d
- Update to 0.21.3
57fe51d
a52a991
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.2-3
a52a991
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
a52a991
771a4ea
* Thu Aug 14 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 0.21.2-2
0846182
- Add missing requirement
0846182
  https://bugzilla.redhat.com/show_bug.cgi?id=1129868
0846182
e148289
* Tue Aug 12 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 0.21.2-1
e148289
- Update to 0.21.2
e148289
d7cd117
* Tue Jul 29 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 0.21.1-1
d7cd117
- Update to 0.21.1
d7cd117
234f238
* Sun Jun 29 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 0.21.0-1
234f238
- Update to 0.21.0
234f238
fffb9f9
* Sat Jun 21 2014 Christopher Meng <rpm@cicku.me> - 0.20.3-1
fffb9f9
- Update to 0.20.3
fffb9f9
1d4db34
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.2-3
1d4db34
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
1d4db34
e96357b
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.20.2-2
e96357b
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
e96357b
8c56dbe
* Sun Mar 09 2014 Christopher Meng <rpm@cicku.me> - 0.20.2-1
8c56dbe
- Update to 0.20.2
8c56dbe
8c56dbe
* Sun Dec 08 2013 Christopher Meng <rpm@cicku.me> - 0.20.0-1
8c56dbe
- Update to 0.20.0
8c56dbe
- Clarify the license
8c56dbe
8c56dbe
* Tue Oct 08 2013 Christopher Meng <rpm@cicku.me> - 0.19.1-2
8c56dbe
- Split out -doc subpackage.
8c56dbe
- Correct the libs permissions.
8c56dbe
8c56dbe
* Mon Oct 07 2013 Christopher Meng <rpm@cicku.me> - 0.19.1-1
8c56dbe
- Update to 0.19.1
8c56dbe
8c56dbe
* Sat Aug 17 2013 Christopher Meng <rpm@cicku.me> - 0.19.0-4
8c56dbe
- Add missing sphinx BR.
8c56dbe
8c56dbe
* Tue Aug 13 2013 Christopher Meng <rpm@cicku.me> - 0.19.0-3
8c56dbe
- Remove unneeded files.
8c56dbe
8c56dbe
* Mon Aug 12 2013 Christopher Meng <rpm@cicku.me> - 0.19.0-2
8c56dbe
- Add missing nose BR.
8c56dbe
- Add docs.
8c56dbe
8c56dbe
* Thu Aug 01 2013 Christopher Meng <rpm@cicku.me> - 0.19.0-1
8c56dbe
- Update to new release.
8c56dbe
8c56dbe
* Fri Apr 26 2013 Christopher Meng <rpm@cicku.me> - 0.18.1-1
8c56dbe
- Update to new release.
8c56dbe
8c56dbe
* Mon Sep 24 2012 Christopher Meng <rpm@cicku.me> - 0.17.3-1
8c56dbe
- Update to new release.
8c56dbe
8c56dbe
* Sun Jul 29 2012 Christopher Meng <rpm@cicku.me> - 0.17.2-1
8c56dbe
- Update to new release.
8c56dbe
8c56dbe
* Fri Mar 30 2012 Christopher Meng <rpm@cicku.me> - 0.16.1-1
8c56dbe
- Update to new release.
8c56dbe
8c56dbe
* Thu Mar 01 2012 Christopher Meng <rpm@cicku.me> - 0.16.0-1
8c56dbe
- Initial Package.