Trivial spec file fixes

This commit is contained in:
Pete Walter 2017-04-10 22:01:47 +01:00
parent 32182290d6
commit c48577da5c

View File

@ -2,8 +2,9 @@
Name: python-%{pkgname}
Version: 0.25.0
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Python bindings for libgit2
License: GPLv2 with linking exception
URL: http://www.pygit2.org
Source0: https://github.com/libgit2/%{pkgname}/archive/v%{version}/%{pkgname}-%{version}.tar.gz
@ -14,43 +15,46 @@ BuildRequires: libgit2-devel
BuildRequires: openssl-devel
%description
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.
%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
BuildRequires: python2-nose
BuildRequires: python2-setuptools
BuildRequires: python2-six
Requires: python2-cffi
Requires: python2-six
%description -n python2-%{pkgname}
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.
Python 2 version.
%package -n python3-%{pkgname}
Summary: Python 3.x bindings for libgit2
%{?python_provide:%python_provide python3-%{pkgname}}
BuildRequires: python3-cffi
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-nose
BuildRequires: python3-setuptools
BuildRequires: python3-six
Requires: python3-cffi
Requires: python3-six
%description -n python3-%{pkgname}
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.
Python 3 version.
%package doc
Summary: Documentation for %{name}
BuildArch: noarch
@ -59,25 +63,32 @@ BuildRequires: python-sphinx
%description doc
Documentation for %{name}.
%prep
%autosetup -n %{pkgname}-%{version} -p1
%build
%py2_build
make -C docs html
%py3_build
%install
%py2_install
%py3_install
find %{_builddir} -name '.buildinfo' -delete
# Correct the permissions.
find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
%check
%{__python2} setup.py test
%{__python3} setup.py test
%files -n python2-%{pkgname}
%doc README.rst TODO.txt
%license COPYING
@ -96,7 +107,11 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
%license COPYING
%doc docs/_build/html/*
%changelog
* Mon Apr 10 2017 Pete Walter <pwalter@fedoraproject.org> - 0.25.0-3
- Trivial spec file fixes
* Tue Feb 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.25.0-2
- Bump release for rebuild