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} Name: python-%{pkgname}
Version: 0.25.0 Version: 0.25.0
Release: 2%{?dist} Release: 3%{?dist}
Summary: Python bindings for libgit2 Summary: Python bindings for libgit2
License: GPLv2 with linking exception License: GPLv2 with linking exception
URL: http://www.pygit2.org URL: http://www.pygit2.org
Source0: https://github.com/libgit2/%{pkgname}/archive/v%{version}/%{pkgname}-%{version}.tar.gz Source0: https://github.com/libgit2/%{pkgname}/archive/v%{version}/%{pkgname}-%{version}.tar.gz
@ -17,13 +18,14 @@ 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-setuptools
BuildRequires: python2-nose BuildRequires: python2-nose
BuildRequires: python2-setuptools
BuildRequires: python2-six BuildRequires: python2-six
Requires: python2-cffi Requires: python2-cffi
Requires: python2-six Requires: python2-six
@ -34,13 +36,14 @@ the core of Git.
Python 2 version. Python 2 version.
%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-setuptools
BuildRequires: python3-nose BuildRequires: python3-nose
BuildRequires: python3-setuptools
BuildRequires: python3-six BuildRequires: python3-six
Requires: python3-cffi Requires: python3-cffi
Requires: python3-six Requires: python3-six
@ -51,6 +54,7 @@ the core of Git.
Python 3 version. Python 3 version.
%package doc %package doc
Summary: Documentation for %{name} Summary: Documentation for %{name}
BuildArch: noarch BuildArch: noarch
@ -59,25 +63,32 @@ 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 make -C docs html
%py3_build %py3_build
%install %install
%py2_install %py2_install
%py3_install %py3_install
find %{_builddir} -name '.buildinfo' -delete 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
%{__python3} setup.py test %{__python3} setup.py test
%files -n python2-%{pkgname} %files -n python2-%{pkgname}
%doc README.rst TODO.txt %doc README.rst TODO.txt
%license COPYING %license COPYING
@ -96,7 +107,11 @@ find %{buildroot} -name '*.so' -exec chmod 755 {} ';'
%license COPYING %license COPYING
%doc docs/_build/html/* %doc docs/_build/html/*
%changelog %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 * Tue Feb 07 2017 Igor Gnatenko <ignatenko@redhat.com> - 0.25.0-2
- Bump release for rebuild - Bump release for rebuild