diff --git a/libid3tag.changes b/libid3tag.changes index f0c2bff..1bbeb59 100644 --- a/libid3tag.changes +++ b/libid3tag.changes @@ -1,9 +1,15 @@ +------------------------------------------------------------------- +Thu May 11 09:35:46 UTC 2017 - alarrosa@suse.com + +- Add BuildRequires: zypper and use it to check for gperf version so + the package builds with all versions of gperf (boo#1027205) + ------------------------------------------------------------------- Wed May 10 18:52:12 UTC 2017 - alarrosa@suse.com - Add fix-build-with-gperf-3.1.diff to fix build with gperf 3.1 which now uses size_t instead of unsigned int for the len parameter - of the hash/lookup function. + of the hash/lookup function (boo#1027205) ------------------------------------------------------------------- Tue Jun 16 12:18:10 UTC 2015 - mpluskal@suse.com diff --git a/libid3tag.spec b/libid3tag.spec index 25708c4..42e9901 100644 --- a/libid3tag.spec +++ b/libid3tag.spec @@ -39,6 +39,7 @@ BuildRequires: gperf BuildRequires: libtool BuildRequires: pkg-config BuildRequires: zlib-devel +BuildRequires: zypper BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -75,9 +76,9 @@ develop applications with libid3tag. %patch4 %patch5 %patch6 -%if 0%{?suse_version} > 1320 +if zypper vcmp $(rpm -q --qf "%%{version}" gperf) 3.1 | grep -v "is older"; then %patch7 -p1 -%endif +fi %build autoreconf -fiv