2011-02-02 13:49:39 +01:00
|
|
|
#
|
|
|
|
# spec file for package python-pygit2
|
|
|
|
#
|
2012-04-24 11:14:51 +02:00
|
|
|
# Copyright (c) 2012 SUSE LINUX Products 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2011-12-09 13:10:44 +01:00
|
|
|
Name: python-pygit2
|
2012-04-24 11:14:51 +02:00
|
|
|
Version: 0.16.1
|
2011-02-02 13:49:39 +01:00
|
|
|
Release: 0
|
|
|
|
Url: http://github.com/dborowitz/pygit2
|
|
|
|
Summary: Python bindings for libgit2
|
2011-12-09 13:10:44 +01:00
|
|
|
License: Apache-2.0
|
2011-02-02 13:49:39 +01:00
|
|
|
Group: Development/Languages/Python
|
2012-04-24 11:14:51 +02:00
|
|
|
Source: http://pypi.python.org/packages/source/p/pygit2/pygit2-%{version}.tar.gz
|
2011-02-02 13:49:39 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2011-12-09 13:10:44 +01:00
|
|
|
BuildRequires: libgit2-devel
|
|
|
|
BuildRequires: python-devel
|
2011-02-02 13:49:39 +01:00
|
|
|
%if 0%{?fedora_version} || 0%{?rhel_version} || 0%{?centos_version}
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
%else
|
|
|
|
BuildRequires: libopenssl-devel
|
|
|
|
%endif
|
2012-04-24 11:14:51 +02:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
|
|
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
2011-02-02 13:49:39 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
Bindings for libgit2, a linkable C library for the Git version-control system.
|
|
|
|
|
|
|
|
%prep
|
2012-04-24 11:14:51 +02:00
|
|
|
%setup -n pygit2-%{version}
|
2011-02-02 13:49:39 +01:00
|
|
|
# Adjust include/lib paths to local system
|
2012-04-24 11:14:51 +02:00
|
|
|
#sed -i 's|/usr/local/include|%%{_includedir}|' setup.py
|
|
|
|
#sed -i 's|/usr/local/lib|%%{_libdir}|' setup.py
|
2011-02-02 13:49:39 +01:00
|
|
|
|
|
|
|
%build
|
2012-04-24 11:14:51 +02:00
|
|
|
CFLAGS="%{optflags}" python setup.py build
|
2011-02-02 13:49:39 +01:00
|
|
|
|
|
|
|
%install
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
|
|
|
|
2012-04-24 11:14:51 +02:00
|
|
|
# Testsuite is broken ATM.
|
2011-12-09 13:10:44 +01:00
|
|
|
#%%check
|
|
|
|
#python setup.py test
|
2011-02-02 13:49:39 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2012-04-24 11:14:51 +02:00
|
|
|
%doc README.rst
|
|
|
|
%{python_sitearch}/pygit2*
|
2011-02-02 13:49:39 +01:00
|
|
|
|
|
|
|
%changelog
|