SHA256
1
0
forked from pool/lilv

Accepting request 349623 from home:plater

Force lilv to use the libsord-0 version that it was built against, otherwise it can cause a crash.

OBS-URL: https://build.opensuse.org/request/show/349623
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/lilv?expand=0&rev=21
This commit is contained in:
Dave Plater 2015-12-19 07:56:44 +00:00 committed by Git OBS Bridge
parent bdcee1dfe8
commit 8a948a049b

View File

@ -1,7 +1,7 @@
# #
# spec file for package lilv # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@ -17,6 +17,7 @@
%define soname 0 %define soname 0
%define sordversion %(pkg-config --modversion sord-0)
Name: lilv Name: lilv
Version: 0.22.0 Version: 0.22.0
@ -32,8 +33,6 @@ Patch0: lilv-python-bindings-fix.diff
# lilv 0.22 require new API of sord 0.13 # lilv 0.22 require new API of sord 0.13
# Since sord soname unchanged from 0.12, explicitly require here. # 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: doxygen
BuildRequires: gcc-c++ BuildRequires: gcc-c++
@ -44,6 +43,7 @@ BuildRequires: python-numpy-devel
BuildRequires: swig BuildRequires: swig
BuildRequires: pkgconfig(lv2) >= 1.8.0 BuildRequires: pkgconfig(lv2) >= 1.8.0
BuildRequires: pkgconfig(serd-0) >= 0.14.0 BuildRequires: pkgconfig(serd-0) >= 0.14.0
BuildRequires: pkgconfig(sord-0) >= 0.13
BuildRequires: pkgconfig(sratom-0) >= 0.4.0 BuildRequires: pkgconfig(sratom-0) >= 0.4.0
%description %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} %package -n liblilv-0-%{soname}
Summary: A C library to make the use of LV2 plugins as simple as possible Summary: A C library to make the use of LV2 plugins as simple as possible
Group: System/Libraries 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} %description -n liblilv-0-%{soname}
A C library to make the use of LV2 plugins as simple as possible for applications. 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 %prep
%setup -q %setup -q
%patch0 -p1 %patch0 -p1
echo %{sordversion}
%build %build
# TODO: The numpy path here is a hack. Check how to properly fix it. # TODO: The numpy path here is a hack. Check how to properly fix it.