2014-03-27 04:38:30 +00:00
|
|
|
%global pkgname pygit2
|
|
|
|
|
|
|
|
%if 0%{?fedora} < 20 || 0%{?rhel} < 7
|
|
|
|
%global __provides_exclude_from ^%{python_sitearch}/.*\\.so
|
|
|
|
%global __provides_exclude_from ^%{python3_sitearch}/.*\\.so
|
|
|
|
%endif
|
|
|
|
|
|
|
|
Name: python-%{pkgname}
|
2014-06-22 11:30:09 +00:00
|
|
|
Version: 0.20.3
|
|
|
|
Release: 1%{?dist}
|
2014-03-27 04:38:30 +00:00
|
|
|
Summary: Python 2.x bindings for libgit2
|
|
|
|
URL: http://www.pygit2.org
|
|
|
|
Source: http://pypi.python.org/packages/source/p/%{pkgname}/%{pkgname}-%{version}.tar.gz
|
|
|
|
License: GPLv2 with linking exception
|
|
|
|
BuildRequires: libgit2-devel
|
2014-06-22 11:30:09 +00:00
|
|
|
BuildRequires: openssl-devel
|
2014-03-27 04:38:30 +00:00
|
|
|
BuildRequires: python2-devel
|
|
|
|
BuildRequires: python-sphinx
|
|
|
|
BuildRequires: python-nose
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
|
|
|
%description
|
|
|
|
pygit2 is a set of Python bindings to the libgit2 library, which implements
|
|
|
|
the core of Git. Pygit2 works with Python 2.6, 2.7, 3.1, 3.2 and 3.3.
|
|
|
|
|
|
|
|
%package -n python3-%{pkgname}
|
|
|
|
Summary: Python 3.x bindings for libgit2
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
BuildRequires: python3-nose
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
|
|
|
%description -n python3-%{pkgname}
|
|
|
|
pygit2 is a set of Python bindings to the libgit2 library, which implements
|
|
|
|
the core of Git. Pygit2 works with Python 2.6, 2.7, 3.1, 3.2 and 3.3.
|
|
|
|
|
|
|
|
%package doc
|
|
|
|
Summary: Documentation for %{name}
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
Documentation for %{name}.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qn %{pkgname}-%{version}
|
|
|
|
rm -rf %{py3dir}
|
|
|
|
cp -a . %{py3dir}
|
|
|
|
|
|
|
|
%build
|
|
|
|
CFLAGS="%{optflags}" %{__python2} setup.py build
|
|
|
|
pushd %{py3dir}
|
|
|
|
CFLAGS="%{optflags}" %{__python3} setup.py build
|
|
|
|
popd
|
2014-06-22 11:30:09 +00:00
|
|
|
make -C docs html
|
2014-03-27 04:38:30 +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 {} ';'
|
|
|
|
|
|
|
|
%check
|
|
|
|
%{__python2} setup.py test
|
|
|
|
pushd %{py3dir}
|
|
|
|
%{__python3} setup.py test
|
|
|
|
popd
|
|
|
|
|
|
|
|
%files
|
|
|
|
%doc COPYING README.rst TODO.txt
|
|
|
|
%{python2_sitearch}/%{pkgname}-%{version}-py%{python2_version}.egg-info
|
|
|
|
%{python2_sitearch}/%{pkgname}
|
|
|
|
%{python2_sitearch}/_%{pkgname}.so
|
|
|
|
|
|
|
|
%files -n python3-%{pkgname}
|
|
|
|
%doc COPYING README.rst TODO.txt
|
|
|
|
%{python3_sitearch}/%{pkgname}-%{version}-py%{python3_version}.egg-info
|
|
|
|
%{python3_sitearch}/%{pkgname}
|
|
|
|
%{python3_sitearch}/_%{pkgname}.*.so
|
|
|
|
|
|
|
|
%files doc
|
|
|
|
%doc docs/_build/html/*
|
|
|
|
|
|
|
|
%changelog
|
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.
|