python-pygit2/python-pygit2.spec

200 lines
5.6 KiB
RPMSpec
Raw Normal View History

%global pkgname pygit2
%global realver 0.22.1
Name: python-%{pkgname}
Version: 0.23.0
Release: 0.1%{?dist}
Summary: Python 2.x bindings for libgit2
URL: http://www.pygit2.org
Source: http://pypi.python.org/packages/source/p/%{pkgname}/%{pkgname}-%{realver}.tar.gz
License: GPLv2 with linking exception
BuildRequires: libgit2-devel
2014-06-22 11:30:09 +00:00
BuildRequires: openssl-devel
2014-06-29 15:56:46 +00:00
BuildRequires: python-cffi
BuildRequires: python2-devel
BuildRequires: python-nose
BuildRequires: python-setuptools
Requires: python-cffi
2015-02-06 09:46:50 +00:00
Patch1: 0001-Remove-remote-calling-unit-tests.patch
# https://github.com/libgit2/pygit2/commit/81520c9c626e092bc45f9fc8ba138eefa4d1beb2
Patch2: 0001-Update-to-libgit2-v0.23.patch
%description
pygit2 is a set of Python bindings to the libgit2 library, which implements
2015-02-06 09:46:50 +00:00
the core of Git. Pygit2 works with Python 2.7, 3.1, 3.2, 3.3, 3.4 and pypy.
2014-06-29 15:56:46 +00:00
%package -n python3-%{pkgname}
Summary: Python 3.x bindings for libgit2
2014-06-29 15:56:46 +00:00
BuildRequires: python3-cffi
BuildRequires: python3-devel
BuildRequires: python3-nose
BuildRequires: python3-setuptools
Requires: python3-cffi
%description -n python3-%{pkgname}
pygit2 is a set of Python bindings to the libgit2 library, which implements
2014-06-29 15:56:46 +00:00
the core of Git. Pygit2 works with Python 2.7, 3.1, 3.2, 3.3 and 3.4.
%package doc
Summary: Documentation for %{name}
BuildArch: noarch
2014-06-29 15:56:46 +00:00
BuildRequires: python-sphinx
Requires: %{name} = %{version}-%{release}
%description doc
Documentation for %{name}.
2014-06-29 15:56:46 +00:00
%prep
%setup -qn %{pkgname}-%{realver}
%patch2 -p1
2015-02-06 09:46:50 +00:00
%patch1 -p1
rm -rf %{py3dir}
cp -a . %{py3dir}
2014-09-19 15:36:32 +00:00
%build
CFLAGS="%{optflags}" %{__python2} setup.py build
2014-06-29 15:56:46 +00:00
make -C docs html
pushd %{py3dir}
CFLAGS="%{optflags}" %{__python3} setup.py build
popd
2014-06-29 15:56:46 +00:00
%install
%{__python2} setup.py install --prefix=%{_prefix} -O1 --skip-build --root=%{buildroot}
pushd %{py3dir}
%{__python3} setup.py install --prefix=%{_prefix} -O1 --skip-build --root=%{buildroot}
popd
find %{_builddir} -name '.buildinfo' -delete
# Correct the permissions.
find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
2014-09-19 15:36:32 +00:00
%check
%{__python2} setup.py test
pushd %{py3dir}
%{__python3} setup.py test
popd
2014-09-19 15:36:32 +00:00
%files
%doc README.rst TODO.txt
%license COPYING
%{python2_sitearch}/%{pkgname}-%{realver}-py%{python2_version}.egg-info
%{python2_sitearch}/%{pkgname}
%{python2_sitearch}/_%{pkgname}.so
2014-09-19 15:36:32 +00:00
%{python2_sitearch}/%{pkgname}_cffi_*.so
%files -n python3-%{pkgname}
%doc README.rst TODO.txt
%license COPYING
%{python3_sitearch}/%{pkgname}-%{realver}-py%{python3_version}.egg-info
%{python3_sitearch}/%{pkgname}
%{python3_sitearch}/_%{pkgname}.*.so
2014-09-19 15:36:32 +00:00
%{python3_sitearch}/%{pkgname}_cffi_*.so
%files doc
%doc docs/_build/html/*
%changelog
* Fri Jul 31 2015 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.23.0-0.1
- Cherry-pick patch for 0.23.0 support
* 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.
* 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
* 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
- 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
* 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
* 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
* Wed May 28 2014 Kalev Lember <kalevlember@gmail.com> - 0.20.2-2
- Rebuilt for https://fedoraproject.org/wiki/Changes/Python_3.4
* 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.