Update to 0.25.1
Signed-off-by: Igor Gnatenko <ignatenko@redhat.com>
This commit is contained in:
parent
1ec0be87c7
commit
2053d83652
1
.gitignore
vendored
1
.gitignore
vendored
@ -13,3 +13,4 @@
|
|||||||
/pygit2-0.24.1.tar.gz
|
/pygit2-0.24.1.tar.gz
|
||||||
/pygit2-0.24.2.tar.gz
|
/pygit2-0.24.2.tar.gz
|
||||||
/pygit2-0.25.0.tar.gz
|
/pygit2-0.25.0.tar.gz
|
||||||
|
/pygit2-0.25.1.tar.gz
|
||||||
|
@ -1,12 +1,14 @@
|
|||||||
%if 0%{?fedora}
|
|
||||||
%global with_python3 1
|
|
||||||
%endif
|
|
||||||
|
|
||||||
%global pkgname pygit2
|
%global pkgname pygit2
|
||||||
|
|
||||||
|
%if 0%{?rhel} && 0%{?rhel} < 7
|
||||||
|
%bcond_with python3
|
||||||
|
%else
|
||||||
|
%bcond_without python3
|
||||||
|
%endif
|
||||||
|
|
||||||
Name: python-%{pkgname}
|
Name: python-%{pkgname}
|
||||||
Version: 0.25.0
|
Version: 0.25.1
|
||||||
Release: 3%{?dist}
|
Release: 1%{?dist}
|
||||||
Summary: Python bindings for libgit2
|
Summary: Python bindings for libgit2
|
||||||
|
|
||||||
License: GPLv2 with linking exception
|
License: GPLv2 with linking exception
|
||||||
@ -22,14 +24,13 @@ BuildRequires: openssl-devel
|
|||||||
pygit2 is a set of Python bindings to the libgit2 library, which implements
|
pygit2 is a set of Python bindings to the libgit2 library, which implements
|
||||||
the core of Git.
|
the core of Git.
|
||||||
|
|
||||||
|
|
||||||
%package -n python2-%{pkgname}
|
%package -n python2-%{pkgname}
|
||||||
Summary: Python 2.x bindings for libgit2
|
Summary: Python 2.x bindings for libgit2
|
||||||
%{?python_provide:%python_provide python2-%{pkgname}}
|
%{?python_provide:%python_provide python2-%{pkgname}}
|
||||||
BuildRequires: python2-cffi
|
BuildRequires: python2-cffi
|
||||||
BuildRequires: python2-devel
|
BuildRequires: python2-devel
|
||||||
BuildRequires: python2-nose
|
|
||||||
BuildRequires: python2-setuptools
|
BuildRequires: python2-setuptools
|
||||||
|
BuildRequires: python2-nose
|
||||||
BuildRequires: python2-six
|
BuildRequires: python2-six
|
||||||
Requires: python2-cffi
|
Requires: python2-cffi
|
||||||
Requires: python2-six
|
Requires: python2-six
|
||||||
@ -40,15 +41,14 @@ the core of Git.
|
|||||||
|
|
||||||
Python 2 version.
|
Python 2 version.
|
||||||
|
|
||||||
|
%if %{with python3}
|
||||||
%if 0%{?with_python3}
|
|
||||||
%package -n python3-%{pkgname}
|
%package -n python3-%{pkgname}
|
||||||
Summary: Python 3.x bindings for libgit2
|
Summary: Python 3.x bindings for libgit2
|
||||||
%{?python_provide:%python_provide python3-%{pkgname}}
|
%{?python_provide:%python_provide python3-%{pkgname}}
|
||||||
BuildRequires: python3-cffi
|
BuildRequires: python3-cffi
|
||||||
BuildRequires: python3-devel
|
BuildRequires: python3-devel
|
||||||
BuildRequires: python3-nose
|
|
||||||
BuildRequires: python3-setuptools
|
BuildRequires: python3-setuptools
|
||||||
|
BuildRequires: python3-nose
|
||||||
BuildRequires: python3-six
|
BuildRequires: python3-six
|
||||||
Requires: python3-cffi
|
Requires: python3-cffi
|
||||||
Requires: python3-six
|
Requires: python3-six
|
||||||
@ -60,7 +60,6 @@ the core of Git.
|
|||||||
Python 3 version.
|
Python 3 version.
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%package doc
|
%package doc
|
||||||
Summary: Documentation for %{name}
|
Summary: Documentation for %{name}
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
@ -69,24 +68,19 @@ BuildRequires: python-sphinx
|
|||||||
%description doc
|
%description doc
|
||||||
Documentation for %{name}.
|
Documentation for %{name}.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%autosetup -n %{pkgname}-%{version} -p1
|
%autosetup -n %{pkgname}-%{version} -p1
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%py2_build
|
%py2_build
|
||||||
make -C docs html
|
%if %{with python3}
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_build
|
%py3_build
|
||||||
%endif
|
%endif
|
||||||
|
make -C docs html
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%py2_install
|
%py2_install
|
||||||
|
%if %{with python3}
|
||||||
%if 0%{?with_python3}
|
|
||||||
%py3_install
|
%py3_install
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -95,28 +89,25 @@ find %{_builddir} -name '.buildinfo' -delete
|
|||||||
# Correct the permissions.
|
# Correct the permissions.
|
||||||
find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
|
find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%{__python2} setup.py test
|
%{__python2} setup.py test
|
||||||
|
%if %{with python3}
|
||||||
%if 0%{?with_python3}
|
|
||||||
%{__python3} setup.py test
|
%{__python3} setup.py test
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%files -n python2-%{pkgname}
|
%files -n python2-%{pkgname}
|
||||||
%doc README.rst TODO.txt
|
%doc README.rst TODO.txt
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{python2_sitearch}/%{pkgname}-%{version}-py%{python2_version}.egg-info
|
%{python2_sitearch}/%{pkgname}-*.egg-info/
|
||||||
%{python2_sitearch}/%{pkgname}
|
%{python2_sitearch}/%{pkgname}/
|
||||||
%{python2_sitearch}/_%{pkgname}.so
|
%{python2_sitearch}/_%{pkgname}.so
|
||||||
|
|
||||||
%if 0%{?with_python3}
|
%if %{with python3}
|
||||||
%files -n python3-%{pkgname}
|
%files -n python3-%{pkgname}
|
||||||
%doc README.rst TODO.txt
|
%doc README.rst TODO.txt
|
||||||
%license COPYING
|
%license COPYING
|
||||||
%{python3_sitearch}/%{pkgname}-%{version}-py%{python3_version}.egg-info
|
%{python3_sitearch}/%{pkgname}-*.egg-info/
|
||||||
%{python3_sitearch}/%{pkgname}
|
%{python3_sitearch}/%{pkgname}/
|
||||||
%{python3_sitearch}/_%{pkgname}.*.so
|
%{python3_sitearch}/_%{pkgname}.*.so
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -124,8 +115,10 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
|
|||||||
%license COPYING
|
%license COPYING
|
||||||
%doc docs/_build/html/*
|
%doc docs/_build/html/*
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Apr 26 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.25.1-1
|
||||||
|
- Update to 0.25.1
|
||||||
|
|
||||||
* Mon Apr 10 2017 Pete Walter <pwalter@fedoraproject.org> - 0.25.0-3
|
* Mon Apr 10 2017 Pete Walter <pwalter@fedoraproject.org> - 0.25.0-3
|
||||||
- Trivial spec file fixes
|
- Trivial spec file fixes
|
||||||
- Add Python 3 conditionals
|
- Add Python 3 conditionals
|
||||||
|
2
sources
2
sources
@ -1 +1 @@
|
|||||||
SHA512 (pygit2-0.25.0.tar.gz) = 5619b09d3bf7aca6ccab2c29d2b220ec6942ba9190b4d52c058bcc29036ff10e20ed869c6ebc8131dccba07205699c7d567c0db538e54db64bdb058c3a0ca080
|
SHA512 (pygit2-0.25.1.tar.gz) = bb98786ee10d00822a9d61617052ee58dbd2ea5285a30cb13ea1c0ada5827ce11a66368f70ae2201c817f93fbbc596a781b74421b09735fbeaeb1a05f5bd5d4d
|
||||||
|
Loading…
Reference in New Issue
Block a user