diff --git a/lilv.spec b/lilv.spec index bcd0efc..862ee6f 100644 --- a/lilv.spec +++ b/lilv.spec @@ -1,7 +1,7 @@ # # spec file for package lilv # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -17,6 +17,7 @@ %define soname 0 +%define sordversion %(pkg-config --modversion sord-0) Name: lilv Version: 0.22.0 @@ -32,8 +33,6 @@ Patch0: lilv-python-bindings-fix.diff # lilv 0.22 require new API of sord 0.13 # Since sord soname unchanged from 0.12, explicitly require here. -BuildRequires: libsord-0-devel >= 0.13 -Requires: libsord-0-0 >= 0.13 BuildRequires: doxygen BuildRequires: gcc-c++ @@ -44,6 +43,7 @@ BuildRequires: python-numpy-devel BuildRequires: swig BuildRequires: pkgconfig(lv2) >= 1.8.0 BuildRequires: pkgconfig(serd-0) >= 0.14.0 +BuildRequires: pkgconfig(sord-0) >= 0.13 BuildRequires: pkgconfig(sratom-0) >= 0.4.0 %description @@ -52,6 +52,9 @@ A C library to make the use of LV2 plugins as simple as possible for application %package -n liblilv-0-%{soname} Summary: A C library to make the use of LV2 plugins as simple as possible Group: System/Libraries +# NOTE: This is the only way to ensure that the correct version of sord is installed. +# rpmbuild ignores the Requires: tag here. +Requires(pre): libsord-0-0 = %{sordversion} %description -n liblilv-0-%{soname} A C library to make the use of LV2 plugins as simple as possible for applications. @@ -76,6 +79,7 @@ Lilv is a C library to make the use of LV2 plugins as simple as possible for app %prep %setup -q %patch0 -p1 +echo %{sordversion} %build # TODO: The numpy path here is a hack. Check how to properly fix it.