diff --git a/pygit2-0.24.2.tar.gz b/pygit2-0.24.2.tar.gz deleted file mode 100644 index fec5cb4..0000000 --- a/pygit2-0.24.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:2aae85836c3a8da686220db7db05f91f8797e37edf91cc2a1f88b09fb653166a -size 470732 diff --git a/pygit2-0.25.0.tar.gz b/pygit2-0.25.0.tar.gz new file mode 100644 index 0000000..03509b1 --- /dev/null +++ b/pygit2-0.25.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:de0ed85fd840dfeb32bcaa94c643307551dc0d967c3714e49087e7edc0cdc571 +size 472116 diff --git a/python-pygit2.changes b/python-pygit2.changes index 7059ef6..2c46de9 100644 --- a/python-pygit2.changes +++ b/python-pygit2.changes @@ -1,3 +1,13 @@ +------------------------------------------------------------------- +Fri Apr 7 22:12:04 UTC 2017 - toddrme2178@gmail.com + +- Update to 0.25.0. + * Make pygit2 throw if tree of a commit is not found + * fixed cached memory tests + * Added mwindow_mapped_limit, cached_memory, enable_caching, + cache_max_size, cache_object_limit options +- Implement singlespec version. + ------------------------------------------------------------------- Wed Jan 11 21:49:47 UTC 2017 - astieger@suse.com diff --git a/python-pygit2.spec b/python-pygit2.spec index b7d1f5e..0ac2f8f 100644 --- a/python-pygit2.spec +++ b/python-pygit2.spec @@ -16,43 +16,47 @@ # +%{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pygit2 -Version: 0.24.2 +Version: 0.25.0 Release: 0 Summary: Python bindings for libgit2 License: GPL-2.0 Group: Development/Languages/Python Url: https://github.com/libgit2/pygit2 Source: https://pypi.io/packages/source/p/pygit2/pygit2-%{version}.tar.gz -BuildRequires: libgit2-devel >= 0.24 -#BuildRequires: python-unittest2 +BuildRequires: libgit2-devel >= 0.25 BuildRequires: libopenssl-devel -BuildRequires: python-cffi -BuildRequires: python-devel -BuildRequires: python-setuptools -BuildRequires: python-six +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module cffi} +BuildRequires: %{python_module devel} +BuildRequires: %{python_module six} +BuildRequires: %{python_module setuptools} %requires_eq python-cffi +Requires: python-six BuildRoot: %{_tmppath}/%{name}-%{version}-build +%python_subpackages + %description Bindings for libgit2, a linkable C library for the Git version-control system. %prep %setup -q -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 %build -CFLAGS="%{optflags} -fno-strict-aliasing" python setup.py build +export CFLAGS="%{optflags} -fno-strict-aliasing" +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} %check #python setup.py test -%files +%files %{python_files} %defattr(-,root,root,-) %doc COPYING README.rst %{python_sitearch}/*