[hawkey/epel7] New version: ae433c5

jsilhan jsilhan at fedoraproject.org
Thu Feb 26 20:17:18 UTC 2015


commit c44759c25cd1cca8dd03b57edc6a96b84d2c444b
Author: Jan Silhan <jsilhan at redhat.com>
Date:   Thu Feb 26 21:17:15 2015 +0100

    New version: ae433c5

 .gitignore  |   1 +
 hawkey.spec | 152 +++++++++++++++++++++++++++++++++++++++++++++++++++++++-----
 sources     |   2 +-
 3 files changed, 142 insertions(+), 13 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index c8cf187..1945df4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -48,3 +48,4 @@
 /hawkey-428a977.tar.xz
 /hawkey-a56916e.tar.xz
 /hawkey-6c19775.tar.xz
+/hawkey-ae433c5dab8da85ec01cc4b69d7084273d89dae2.tar.gz
diff --git a/hawkey.spec b/hawkey.spec
index 273fa10..1d1274a 100644
--- a/hawkey.spec
+++ b/hawkey.spec
@@ -1,22 +1,32 @@
-%global gitrev 6c19775
-%global libsolv_version 0.6.1-1
+%{!?gitrev: %global gitrev 85826ee4905b0422e3490fc2aa1b6d9bd6a302b2}
+%{!?libsolv_version: %global libsolv_version 0.6.4-1}
+
+%if 0%{?rhel} <= 7
+%bcond_with python3
+%endif
 
 Name:		hawkey
-Version:	0.4.16
-Release:	1%{?dist}
+Version:	0.5.3
+Release:	2%{?dist}
 Summary:	Library providing simplified C and Python API to libsolv
 Group:		System Environment/Libraries
 License:	LGPLv2+
-URL:		https://github.com/akozumpl/hawkey
-# git clone https://github.com/akozumpl/hawkey.git && cd hawkey && package/archive
-Source0:	hawkey-%{gitrev}.tar.xz
+URL:		https://github.com/rpm-software-management/%{name}
+# git clone https://github.com/rpm-software-management/hawkey.git && cd hawkey && package/archive
+Source0:	https://github.com/rpm-software-management/%{name}/archive/%{gitrev}/%{name}-%{gitrev}.tar.gz
 BuildRequires:	libsolv-devel >= %{libsolv_version}
 BuildRequires:	cmake expat-devel rpm-devel zlib-devel check-devel
 Requires:	libsolv%{?_isa} >= %{libsolv_version}
 # prevent provides from nonstandard paths:
 %filter_provides_in %{python_sitearch}/.*\.so$
+%if %{with python3}
+%filter_provides_in %{python3_sitearch}/.*\.so$
+%endif
 # filter out _hawkey_testmodule.so DT_NEEDED _hawkeymodule.so:
 %filter_requires_in %{python_sitearch}/hawkey/test/.*\.so$
+%if %{with python3}
+%filter_requires_in %{python3_sitearch}/hawkey/test/.*\.so$
+%endif
 %filter_setup
 
 %description
@@ -36,25 +46,65 @@ Summary:	Python 2 bindings for the hawkey library
 Group:		Development/Languages
 BuildRequires:  python2-devel
 BuildRequires:  python-nose
-BuildRequires:  python-sphinx
+%if %{with python3}
+BuildRequires:	python-sphinx >= 1.1.3-9
+%else
+BuildRequires:	python-sphinx
+%endif
 Requires:	%{name}%{?_isa} = %{version}-%{release}
 
 %description -n python-hawkey
 Python 2 bindings for the hawkey library.
 
+%if %{with python3}
+%package -n python3-hawkey
+Summary:	Python 3 bindings for the hawkey library
+Group:		Development/Languages
+BuildRequires:	python3-devel
+BuildRequires:	python3-nose
+BuildRequires:	python3-sphinx >= 1.1.3-9
+Requires:	%{name}%{?_isa} = %{version}-%{release}
+
+%description -n python3-hawkey
+Python 3 bindings for the hawkey library.
+%endif
+
 %prep
-%setup -q -n hawkey
+%setup -q -n %{name}-%{gitrev}
+
+%if %{with python3}
+rm -rf py3
+mkdir ../py3
+cp -a . ../py3/
+mv ../py3 ./
+%endif
 
 %build
 %cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo .
 make %{?_smp_mflags}
 make doc-man
 
+%if %{with python3}
+pushd py3
+%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPYTHON_DESIRED:str=3.
+make %{?_smp_mflags}
+make doc-man
+popd
+%endif
+
 %check
 make ARGS="-V" test
+%if %{with python3}
+./py3/tests/python/tests/run_nosetests.sh
+%endif
 
 %install
 make install DESTDIR=$RPM_BUILD_ROOT
+%if %{with python3}
+pushd py3
+make install DESTDIR=$RPM_BUILD_ROOT
+popd
+%endif
 
 %post -p /sbin/ldconfig
 
@@ -73,11 +123,89 @@ make install DESTDIR=$RPM_BUILD_ROOT
 %files -n python-hawkey
 %{python_sitearch}/
 
+%if %{with python3}
+%files -n python3-hawkey
+%{python3_sitearch}/
+%exclude %{python3_sitearch}/hawkey/__pycache__
+%exclude %{python3_sitearch}/hawkey/test/__pycache__
+%endif
+
 %changelog
 
-* Mon Jun 2 2014 Jan Silhan <jsilhan at redhat.com> - 0.4.16-2
-- packaging: lift the sphinx version condition. (Ales Kozumplik)
-- packaging: no py3 builds. (Ales Kozumplik)
+* Thu Feb 26 2015 Jan Silhan <jsilhan at redhat.com> - 0.5.3-2
+- spec: rpmbuild works for rhel7 (Jan Silhan)
+
+* Sun Feb 15 2015 Jan Silhan <jsilhan at redhat.com> - 0.5.3-1
+- revert of API breakage (Jan Silhan)
+- Add Peter to Authors (Peter Hjalmarsson)
+- Add support for armv6hl (Peter Hjalmarsson)
+- README: made readthedoc documentation official (Jan Silhan)
+- sack: deprecation of create_cmdline_repo (Jan Silhan)
+- does not break Sack.__init__ API from 8ce3ce7 (Jan Silhan)
+- doc: document the new logdir parameter of Sack.__init__. (Radek Holy)
+- apichange: sack: added optional param logdir (Related:RhBug:1175434) (Jan Silhan)
+- apichange: py: rename: Sack.cache_path -> Sack.cache_dir (Radek Holy)
+- doc: add Sack to the Python API reference manual. (Radek Holy)
+- cosmetic: autopep8 applied on __init__.py (Jan Silhan)
+- query: support multiple flags in filter (RhBug:1173027) (Jan Silhan)
+- packaging: make the spec file compatible with GitHub packaging guideliness. (Radek Holy)
+- New version: 0.5.2 (Michal Luscon)
+- hy_chksum_str() returns NULL in case of incorrect type (Michal Luscon)
+- Fix defects found by coverity scan (Michal Luscon)
+- selector: allow selecting provides with globs (RhBug: 1148353) (Michal Luscon)
+- py: nevra_init() references possibly uninitialized variable. (Ales Kozumplik)
+- package: add weak deps attributes. (Ales Kozumplik)
+
+* Thu Sep 18 2014 Aleš Kozumplik <ales at redhat.com> - 0.5.1-1
+- pool_split_evr() assert if we hit unexpected data. (Related:RhBug:1141634) (Ales Kozumplik)
+- README: changed references to new repo location (Jan Silhan)
+- iutil-py: removed pyseq_to_packagelist function (Jan Silhan)
+- improved performance of python sequence iteration (RhBug:1109554) (Jan Silhan)
+- reldep: constructor accepts unicode strings (RhBug:1124968) (Jan Silhan)
+- Fix pool_split_evr's handling of EVRs without releases. (Radek Holy)
+- added sha512 support (RhBug:1082658) (Jan Silhan)
+- cosmetic: removed unneeded semicolon (Jan Silhan)
+- goal: does not raise exception on empty selector (Related:RhBug:1127206) (Jan Silhan)
+
+* Tue Aug 12 2014 Aleš Kozumplik <ales at redhat.com> - 0.5.0-1
+- sack: include directive support added (Related:RhBug:1055910) (Jan Silhan)
+- sack: using pool->considered instead of SOLVER_LOCK for excludes (RhBug:1099342) (Jan Silhan)
+- cosmetic: replaced fail_unless with ck_assert_int_eq (Jan Silhan)
+
+* Mon Jul 28 2014 Aleš Kozumplik <ales at redhat.com> - 0.4.19-1
+- packaging: bump the SONAME as there are dropped API calls. (Ales Kozumplik)
+- Support package splitting via obsoletes. (RhBug:1107973) (Ales Kozumplik)
+- api change: py: convert Advisory, AdvisoryRef and AdvisoryPkg attributes to Unicode. (Radek Holy)
+- hy_err_str: it's best to make it static. (Ales Kozumplik)
+- Hide hy_err_str from errno.h (Ales Kozumplik)
+- py: detailed error reporting. (Ales Kozumplik)
+- doc: deprecation policy. (Ales Kozumplik)
+
+* Wed Jul 16 2014 Aleš Kozumplik <ales at redhat.com> - 0.4.18-1
+- api change: py: deprecate _hawkey.Advisory.filenames. (Radek Holy)
+- api change: drop deprecated hy_package_get_update_*. (Radek Holy)
+- api change: deprecate hy_advisory_get_filenames. (Radek Holy)
+- tests: py: add tests for _hawkey.AdvisoryPkg type. (Radek Holy)
+- py: add _hawkey.Advisory.packages attribute. (Radek Holy)
+- py: add _hawkey.AdvisoryPkg type. (Radek Holy)
+- tests: add tests for advisorypkg object. (Radek Holy)
+- Add hy_advisory_get_packages method. (Radek Holy)
+- Add advisorypkglist object. (Radek Holy)
+- Add advisorypkg object. (Radek Holy)
+- selector: added file filter (Related: RhBug:1100946) (Jan Silhan)
+- priorities: change the meaning of the setting---lower number=better prio. (Ales Kozumplik)
+- py: better error checking in repo-py.c:set_int(). (Ales Kozumplik)
+- py: api: hawkey.Repo() does not accept cost keyword arg. (Ales Kozumplik)
+- fix: nevra: hy_nevra_cmp (Jan Silhan)
+- repos: priorities. (Ales Kozumplik)
+- py3: Sack: accepts unicoded cachedir (Related: RhBug:1108908) (Jan Silhan)
+
+* Thu Jul 3 2014  Aleš Kozumplik <ales at redhat.com> - 0.4.17-1
+- sack: add a public function to get the running kernel package. (Ales Kozumplik)
+- query: fix querying for string provides. (RhBug:1114483) (Ales Kozumplik)
+- fix: commandline RPMs do not provide their files (RhBug:1112810) (Ales Kozumplik)
+- tests: prevent automatic Python deps in tour.rpm. (Ales Kozumplik)
+- deepcopy of sack raises error (RhBug:1059149) (Jan Silhan)
 
 * Tue May 27 2014 Aleš Kozumplik <ales at redhat.com> - 0.4.16-1
 - py3: use sphinx-build-3 (which doesn't encode the minor py version) (RhBug:1098098) (Ales Kozumplik)
diff --git a/sources b/sources
index 28b6701..61c2266 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-aa8a8890c1f45407d9569e3169c1405d  hawkey-6c19775.tar.xz
+6a020c85d60942cd8d09f58e34fab016  hawkey-ae433c5dab8da85ec01cc4b69d7084273d89dae2.tar.gz


More information about the scm-commits mailing list