From 7eebcfb115d13c512ee35c12c76b759dcbbd5994b33e3927868292aef8f56a38 Mon Sep 17 00:00:00 2001 From: Sascha Peilicke Date: Tue, 24 Apr 2012 09:14:51 +0000 Subject: [PATCH] - 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 --- libgit2-pygit2-v0.15.0-0-g1dde686.tar.gz | 3 --- pygit2-0.16.1.tar.gz | 3 +++ python-pygit2.changes | 6 ++++++ python-pygit2.spec | 27 ++++++++++++------------ 4 files changed, 22 insertions(+), 17 deletions(-) delete mode 100644 libgit2-pygit2-v0.15.0-0-g1dde686.tar.gz create mode 100644 pygit2-0.16.1.tar.gz diff --git a/libgit2-pygit2-v0.15.0-0-g1dde686.tar.gz b/libgit2-pygit2-v0.15.0-0-g1dde686.tar.gz deleted file mode 100644 index 0f400c0..0000000 --- a/libgit2-pygit2-v0.15.0-0-g1dde686.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:31803d2f042ca80b15a142067879fcb61fd35f445cb69fee882800e530702ed2 -size 49881 diff --git a/pygit2-0.16.1.tar.gz b/pygit2-0.16.1.tar.gz new file mode 100644 index 0000000..9593da4 --- /dev/null +++ b/pygit2-0.16.1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:70bc10796729f8b95c6c47969f5d06bb755b754322724924c0ba4472e1ad3846 +size 30414 diff --git a/python-pygit2.changes b/python-pygit2.changes index 020c70d..90a4ece 100644 --- a/python-pygit2.changes +++ b/python-pygit2.changes @@ -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 diff --git a/python-pygit2.spec b/python-pygit2.spec index 9b04c09..ea1e578 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -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