1
0
forked from pool/python-pygit2

- Update to version 0.16.1:

- No changelog

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pygit2?expand=0&rev=3
This commit is contained in:
Sascha Peilicke 2012-04-24 09:14:51 +00:00 committed by Git OBS Bridge
parent 4e1e87afc7
commit 7eebcfb115
4 changed files with 22 additions and 17 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:31803d2f042ca80b15a142067879fcb61fd35f445cb69fee882800e530702ed2
size 49881

3
pygit2-0.16.1.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:70bc10796729f8b95c6c47969f5d06bb755b754322724924c0ba4472e1ad3846
size 30414

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Apr 24 08:49:31 UTC 2012 - saschpe@suse.de
- Update to version 0.16.1:
- No changelog
-------------------------------------------------------------------
Wed Jan 26 17:26:21 UTC 2011 - saschpe@gmx.de

View File

@ -1,7 +1,7 @@
#
# spec file for package python-pygit2
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -11,19 +11,19 @@
# 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.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-pygit2
Version: 0.1
Version: 0.16.1
Release: 0
Url: http://github.com/dborowitz/pygit2
Summary: Python bindings for libgit2
License: Apache-2.0
Group: Development/Languages/Python
Source: libgit2-pygit2-v0.15.0-0-g1dde686.tar.gz
Source: http://pypi.python.org/packages/source/p/pygit2/pygit2-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: libgit2-devel
BuildRequires: python-devel
@ -32,33 +32,32 @@ BuildRequires: openssl-devel
%else
BuildRequires: libopenssl-devel
%endif
%if 0%{?suse_version}
%py_requires
%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()")}
%endif
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
%description
Bindings for libgit2, a linkable C library for the Git version-control system.
%prep
export CFLAGS="%{optflags}"
%setup -n libgit2-pygit2-1dde686
%setup -n pygit2-%{version}
# Adjust include/lib paths to local system
sed -i 's|/usr/local/include|%{_includedir}|' setup.py
sed -i 's|/usr/local/lib|%{_libdir}|' setup.py
#sed -i 's|/usr/local/include|%%{_includedir}|' setup.py
#sed -i 's|/usr/local/lib|%%{_libdir}|' setup.py
%build
python setup.py build
CFLAGS="%{optflags}" python setup.py build
%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
# Testsuite is broken ATM.
#%%check
#python setup.py test
%files
%defattr(-,root,root,-)
%doc README.md COPYING
%python_sitearch/pygit2*
%doc README.rst
%{python_sitearch}/pygit2*
%changelog