2014-03-27 04:38:30 +00:00
|
|
|
%global pkgname pygit2
|
|
|
|
|
|
|
|
Name: python-%{pkgname}
|
2017-01-10 13:44:03 +00:00
|
|
|
Version: 0.24.2
|
|
|
|
Release: 2%{?dist}
|
2016-02-14 13:28:39 +00:00
|
|
|
Summary: Python bindings for libgit2
|
2016-04-18 07:22:36 +00:00
|
|
|
License: GPLv2 with linking exception
|
2014-03-27 04:38:30 +00:00
|
|
|
URL: http://www.pygit2.org
|
2016-06-22 05:51:02 +00:00
|
|
|
Source0: https://github.com/libgit2/%{pkgname}/archive/v%{version}/%{pkgname}-%{version}.tar.gz
|
2016-04-18 07:22:36 +00:00
|
|
|
|
2016-06-22 07:50:43 +00:00
|
|
|
Patch0001: 0001-Remove-remote-calling-unit-tests.patch
|
2016-04-18 07:22:36 +00:00
|
|
|
|
2014-03-27 04:38:30 +00:00
|
|
|
BuildRequires: libgit2-devel
|
2014-06-22 11:30:09 +00:00
|
|
|
BuildRequires: openssl-devel
|
2014-03-27 04:38:30 +00:00
|
|
|
|
|
|
|
%description
|
|
|
|
pygit2 is a set of Python bindings to the libgit2 library, which implements
|
2016-02-14 13:28:39 +00:00
|
|
|
the core of Git.
|
|
|
|
|
|
|
|
%package -n python2-%{pkgname}
|
|
|
|
Summary: Python 2.x bindings for libgit2
|
|
|
|
%{?python_provide:%python_provide python2-%{pkgname}}
|
|
|
|
BuildRequires: python2-cffi
|
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python2-setuptools
|
2016-04-14 10:26:39 +00:00
|
|
|
BuildRequires: python2-nose
|
|
|
|
BuildRequires: python2-six
|
|
|
|
Requires: python2-cffi
|
|
|
|
Requires: python2-six
|
2016-02-14 13:28:39 +00:00
|
|
|
|
|
|
|
%description -n python2-%{pkgname}
|
|
|
|
pygit2 is a set of Python bindings to the libgit2 library, which implements
|
|
|
|
the core of Git.
|
2014-06-29 15:56:46 +00:00
|
|
|
|
2016-02-14 13:28:39 +00:00
|
|
|
Python 2 version.
|
2014-03-27 04:38:30 +00:00
|
|
|
|
|
|
|
%package -n python3-%{pkgname}
|
|
|
|
Summary: Python 3.x bindings for libgit2
|
2016-02-14 13:28:39 +00:00
|
|
|
%{?python_provide:%python_provide python3-%{pkgname}}
|
2014-06-29 15:56:46 +00:00
|
|
|
BuildRequires: python3-cffi
|
2014-03-27 04:38:30 +00:00
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-setuptools
|
2016-04-14 10:26:39 +00:00
|
|
|
BuildRequires: python3-nose
|
|
|
|
BuildRequires: python3-six
|
2014-08-14 08:27:49 +00:00
|
|
|
Requires: python3-cffi
|
2016-04-14 10:26:39 +00:00
|
|
|
Requires: python3-six
|
2014-08-14 08:27:49 +00:00
|
|
|
|
2014-03-27 04:38:30 +00:00
|
|
|
%description -n python3-%{pkgname}
|
|
|
|
pygit2 is a set of Python bindings to the libgit2 library, which implements
|
2016-02-14 13:28:39 +00:00
|
|
|
the core of Git.
|
2014-06-29 15:56:46 +00:00
|
|
|
|
2016-02-14 13:28:39 +00:00
|
|
|
Python 3 version.
|
2014-03-27 04:38:30 +00:00
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
BuildArch: noarch
|
2016-04-14 10:26:39 +00:00
|
|
|
BuildRequires: python-sphinx
|
2017-01-10 13:44:03 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2014-03-27 04:38:30 +00:00
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
2016-02-14 13:28:39 +00:00
|
|
|
%autosetup -n %{pkgname}-%{version} -p1
|
2014-09-19 15:36:32 +00:00
|
|
|
|
2014-03-27 04:38:30 +00:00
|
|
|
%build
|
2016-02-14 13:28:39 +00:00
|
|
|
%py2_build
|
2014-06-29 15:56:46 +00:00
|
|
|
make -C docs html
|
2016-02-14 13:28:39 +00:00
|
|
|
%py3_build
|
2014-03-27 04:38:30 +00:00
|
|
|
|
|
|
|
%install
|
2016-02-14 13:28:39 +00:00
|
|
|
%py2_install
|
|
|
|
%py3_install
|
2014-03-27 04:38:30 +00:00
|
|
|
find %{_builddir} -name '.buildinfo' -delete
|
|
|
|
# Correct the permissions.
|
|
|
|
find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
|
|
|
|
|
|
|
|
%check
|
2016-02-07 21:22:29 +00:00
|
|
|
%{__python2} setup.py test
|
|
|
|
%{__python3} setup.py test
|
2014-09-19 15:36:32 +00:00
|
|
|
|
2016-02-14 13:28:39 +00:00
|
|
|
%files -n python2-%{pkgname}
|
2014-07-29 08:45:38 +00:00
|
|
|
%doc README.rst TODO.txt
|
|
|
|
%license COPYING
|
2015-09-27 17:14:39 +00:00
|
|
|
%{python2_sitearch}/%{pkgname}-%{version}-py%{python2_version}.egg-info
|
2014-03-27 04:38:30 +00:00
|
|
|
%{python2_sitearch}/%{pkgname}
|
|
|
|
%{python2_sitearch}/_%{pkgname}.so
|
|
|
|
|
|
|
|
%files -n python3-%{pkgname}
|
2014-07-29 08:45:38 +00:00
|
|
|
%doc README.rst TODO.txt
|
|
|
|
%license COPYING
|
2015-09-27 17:14:39 +00:00
|
|
|
%{python3_sitearch}/%{pkgname}-%{version}-py%{python3_version}.egg-info
|
2014-03-27 04:38:30 +00:00
|
|
|
%{python3_sitearch}/%{pkgname}
|
|
|
|
%{python3_sitearch}/_%{pkgname}.*.so
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc docs/_build/html/*
|
|
|
|
|
|
|
|
%changelog
|
2016-12-19 17:20:37 +00:00
|
|
|
* Mon Dec 19 2016 Miro Hrončok <mhroncok@redhat.com> - 0.24.2-2
|
|
|
|
- Rebuild for Python 3.6
|
|
|
|
|
2016-11-19 09:55:31 +00:00
|
|
|
* Sat Nov 19 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.24.2-1
|
|
|
|
- Update to 0.24.2 (RHBZ #1390796)
|
|
|
|
|
2016-07-19 11:09:47 +00:00
|
|
|
* Tue Jul 19 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.24.1-2
|
|
|
|
- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages
|
|
|
|
|
2016-06-22 05:51:02 +00:00
|
|
|
* Wed Jun 22 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.24.1-1
|
|
|
|
- Update to 0.24.1 (RHBZ #1348750)
|
|
|
|
|
2016-04-18 07:22:36 +00:00
|
|
|
* Mon Apr 18 2016 Igor Gnatenko <ignatenko@redhat.com> 0.24.0-3
|
|
|
|
- Remove remote-calling unit tests
|
|
|
|
- repository: decode() linkname
|
|
|
|
- repository: SYMTYPE is constant in module tarfile, not in any class
|
|
|
|
|
2016-04-14 10:26:39 +00:00
|
|
|
* Thu Apr 14 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.24.0-2
|
|
|
|
- Add python[23]-six to BR/Rs
|
|
|
|
|
2016-03-20 07:41:34 +00:00
|
|
|
* Sun Mar 20 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.24.0-1
|
|
|
|
- Update to 0.24.0
|
|
|
|
|
2016-02-24 22:18:12 +00:00
|
|
|
* Wed Feb 24 2016 Pierre-Yves Chibon <pingou@pingoured.fr> - 0.23.3-2
|
|
|
|
- Fix building 0.23.3 also in i686
|
|
|
|
|
2016-02-14 13:28:39 +00:00
|
|
|
* Sun Feb 14 2016 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.23.3-1
|
|
|
|
- Update to 0.23.3
|
|
|
|
- Fix compliance with new packaging guidelines
|
|
|
|
|
2016-02-04 20:36:39 +00:00
|
|
|
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.1-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-11-10 16:52:13 +00:00
|
|
|
* Tue Nov 10 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23.1-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5
|
|
|
|
|
2015-09-27 17:14:39 +00:00
|
|
|
* Sun Sep 27 2015 Igor Gnatenko <i.gnatenko.brain@gmail.com> - 0.23.1-1
|
|
|
|
- Update to 0.23.1 (RHBZ #1266726)
|
|
|
|
|
2015-07-31 10:29:53 +00:00
|
|
|
* Fri Jul 31 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.23.0-0.1
|
|
|
|
- Cherry-pick patch for 0.23.0 support
|
|
|
|
|
2015-07-31 04:24:47 +00:00
|
|
|
* Fri Jul 31 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0.22.1-2
|
|
|
|
- Rebuilt for libgit2-0.23.0 and libgit2-glib-0.23
|
|
|
|
|
2015-07-12 12:16:00 +00:00
|
|
|
* Mon Jul 13 2015 Mathieu Bridon <bochecha@daitauha.fr> - 0.22.1-1
|
|
|
|
- Update to 0.22.1 (#1242226)
|
|
|
|
- Drop one of our patches, as it has been merged in this release.
|
|
|
|
|
2015-06-18 20:25:23 +00:00
|
|
|
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22.0-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-02-06 09:46:50 +00:00
|
|
|
* Wed Jan 21 2015 Mathieu Bridon <bochecha@daitauha.fr> - 0.22.0-1
|
|
|
|
- Update to 0.22.0
|
|
|
|
|
2014-09-19 15:36:32 +00:00
|
|
|
* Mon Nov 17 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 0.21.4-1
|
|
|
|
- Update to 0.21.4
|
|
|
|
|
2014-09-19 15:36:32 +00:00
|
|
|
* Fri Sep 19 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 0.21.3-1
|
|
|
|
- Update to 0.21.3
|
|
|
|
|
2014-08-17 21:37:58 +00:00
|
|
|
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.21.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-09-19 15:39:08 +00:00
|
|
|
* Thu Aug 14 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 0.21.2-2
|
2014-08-14 08:27:49 +00:00
|
|
|
- Add missing requirement
|
|
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=1129868
|
|
|
|
|
2014-08-12 11:46:10 +00:00
|
|
|
* Tue Aug 12 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 0.21.2-1
|
|
|
|
- Update to 0.21.2
|
|
|
|
|
2014-07-29 08:45:38 +00:00
|
|
|
* Tue Jul 29 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 0.21.1-1
|
|
|
|
- Update to 0.21.1
|
|
|
|
|
2014-06-29 15:56:46 +00:00
|
|
|
* Sun Jun 29 2014 Mathieu Bridon <bochecha@fedoraproject.org> - 0.21.0-1
|
|
|
|
- Update to 0.21.0
|
|
|
|
|
2014-06-22 11:30:09 +00:00
|
|
|
* Sat Jun 21 2014 Christopher Meng <rpm@cicku.me> - 0.20.3-1
|
|
|
|
- Update to 0.20.3
|
|
|
|
|
2014-06-07 22:23:06 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-27 22:33:33 +00:00
|
|
|
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.20.2-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
|
|
|
|
|
2014-03-27 04:38:30 +00:00
|
|
|
* Sun Mar 09 2014 Christopher Meng <rpm@cicku.me> - 0.20.2-1
|
|
|
|
- Update to 0.20.2
|
|
|
|
|
|
|
|
* Sun Dec 08 2013 Christopher Meng <rpm@cicku.me> - 0.20.0-1
|
|
|
|
- Update to 0.20.0
|
|
|
|
- Clarify the license
|
|
|
|
|
|
|
|
* Tue Oct 08 2013 Christopher Meng <rpm@cicku.me> - 0.19.1-2
|
|
|
|
- Split out -doc subpackage.
|
|
|
|
- Correct the libs permissions.
|
|
|
|
|
|
|
|
* Mon Oct 07 2013 Christopher Meng <rpm@cicku.me> - 0.19.1-1
|
|
|
|
- Update to 0.19.1
|
|
|
|
|
|
|
|
* Sat Aug 17 2013 Christopher Meng <rpm@cicku.me> - 0.19.0-4
|
|
|
|
- Add missing sphinx BR.
|
|
|
|
|
|
|
|
* Tue Aug 13 2013 Christopher Meng <rpm@cicku.me> - 0.19.0-3
|
|
|
|
- Remove unneeded files.
|
|
|
|
|
|
|
|
* Mon Aug 12 2013 Christopher Meng <rpm@cicku.me> - 0.19.0-2
|
|
|
|
- Add missing nose BR.
|
|
|
|
- Add docs.
|
|
|
|
|
|
|
|
* Thu Aug 01 2013 Christopher Meng <rpm@cicku.me> - 0.19.0-1
|
|
|
|
- Update to new release.
|
|
|
|
|
|
|
|
* Fri Apr 26 2013 Christopher Meng <rpm@cicku.me> - 0.18.1-1
|
|
|
|
- Update to new release.
|
|
|
|
|
|
|
|
* Mon Sep 24 2012 Christopher Meng <rpm@cicku.me> - 0.17.3-1
|
|
|
|
- Update to new release.
|
|
|
|
|
|
|
|
* Sun Jul 29 2012 Christopher Meng <rpm@cicku.me> - 0.17.2-1
|
|
|
|
- Update to new release.
|
|
|
|
|
|
|
|
* Fri Mar 30 2012 Christopher Meng <rpm@cicku.me> - 0.16.1-1
|
|
|
|
- Update to new release.
|
|
|
|
|
|
|
|
* Thu Mar 01 2012 Christopher Meng <rpm@cicku.me> - 0.16.0-1
|
|
|
|
- Initial Package.
|