Accepting request 494566 from home:alarrosa:branches:multimedia:libs

DimStar suggested this solution in order to build with all versions of gperf

- Add BuildRequires: zypper and use it to check for gperf version so
  the package builds with all versions of gperf (boo#1027205)

  of the hash/lookup function (boo#1027205)

OBS-URL: https://build.opensuse.org/request/show/494566
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libid3tag?expand=0&rev=14
This commit is contained in:
OBS User mrdocs 2017-05-12 04:24:12 +00:00 committed by Git OBS Bridge
parent eaaca43108
commit be01ceffd2
2 changed files with 10 additions and 3 deletions

View File

@ -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

View File

@ -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