2011-02-02 13:49:39 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-pygit2
|
|
|
|
#
|
2017-01-12 13:19:25 +01:00
|
|
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
2011-02-02 13:49:39 +01:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
2012-04-24 11:14:51 +02:00
|
|
|
|
2011-02-02 13:49:39 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2017-04-08 21:04:55 +02:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2011-12-09 13:10:44 +01:00
|
|
|
Name: python-pygit2
|
2017-04-08 21:04:55 +02:00
|
|
|
Version: 0.25.0
|
2011-02-02 13:49:39 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Python bindings for libgit2
|
2012-12-27 21:15:39 +01:00
|
|
|
License: GPL-2.0
|
2011-02-02 13:49:39 +01:00
|
|
|
Group: Development/Languages/Python
|
2017-01-12 13:19:25 +01:00
|
|
|
Url: https://github.com/libgit2/pygit2
|
2016-08-15 16:23:37 +02:00
|
|
|
Source: https://pypi.io/packages/source/p/pygit2/pygit2-%{version}.tar.gz
|
2017-04-08 21:04:55 +02:00
|
|
|
BuildRequires: libgit2-devel >= 0.25
|
2011-02-02 13:49:39 +01:00
|
|
|
BuildRequires: libopenssl-devel
|
2017-04-08 21:04:55 +02:00
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: python-rpm-macros
|
|
|
|
BuildRequires: %{python_module cffi}
|
|
|
|
BuildRequires: %{python_module devel}
|
|
|
|
BuildRequires: %{python_module six}
|
|
|
|
BuildRequires: %{python_module setuptools}
|
2016-08-15 16:23:37 +02:00
|
|
|
%requires_eq python-cffi
|
2017-04-08 21:04:55 +02:00
|
|
|
Requires: python-six
|
2017-01-12 13:19:25 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-02-02 13:49:39 +01:00
|
|
|
|
2017-04-08 21:04:55 +02:00
|
|
|
%python_subpackages
|
|
|
|
|
2011-02-02 13:49:39 +01:00
|
|
|
%description
|
|
|
|
Bindings for libgit2, a linkable C library for the Git version-control system.
|
|
|
|
|
|
|
|
%prep
|
2017-01-12 13:19:25 +01:00
|
|
|
%setup -q -n pygit2-%{version}
|
2011-02-02 13:49:39 +01:00
|
|
|
|
|
|
|
%build
|
2017-04-08 21:04:55 +02:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
|
|
|
%python_build
|
2011-02-02 13:49:39 +01:00
|
|
|
|
|
|
|
%install
|
2017-04-08 21:04:55 +02:00
|
|
|
%python_install
|
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
2011-02-02 13:49:39 +01:00
|
|
|
|
2012-12-18 11:57:33 +01:00
|
|
|
%check
|
2014-09-02 20:46:36 +02:00
|
|
|
#python setup.py test
|
2011-02-02 13:49:39 +01:00
|
|
|
|
2017-04-08 21:04:55 +02:00
|
|
|
%files %{python_files}
|
2011-02-02 13:49:39 +01:00
|
|
|
%defattr(-,root,root,-)
|
2012-12-18 11:57:33 +01:00
|
|
|
%doc COPYING README.rst
|
|
|
|
%{python_sitearch}/*
|
2011-02-02 13:49:39 +01:00
|
|
|
|
|
|
|
%changelog
|