From cf5379d5d58573fc5dadf9d809a3b19d84f2a38f9a9c7ab04c533d208ac0fc54 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Mon, 3 Mar 2014 10:50:59 +0000 Subject: [PATCH] Accepting request 224336 from home:AndreasStieger:branches:multimedia:libs - some spec file cleanup - add source URLs, see https://en.opensuse.org/SourceUrls OBS-URL: https://build.opensuse.org/request/show/224336 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/ladspa?expand=0&rev=34 --- ladspa.changes | 6 ++++++ ladspa.spec | 34 +++++++++++++++++----------------- 2 files changed, 23 insertions(+), 17 deletions(-) diff --git a/ladspa.changes b/ladspa.changes index 0a8db50..0b842aa 100644 --- a/ladspa.changes +++ b/ladspa.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Mar 1 21:25:49 UTC 2014 - andreas.stieger@gmx.de + +- some spec file cleanup +- add source URLs, see https://en.opensuse.org/SourceUrls + ------------------------------------------------------------------- Mon Dec 16 15:14:29 CET 2013 - tiwai@suse.de diff --git a/ladspa.spec b/ladspa.spec index 3cbde90..4ff2b0f 100644 --- a/ladspa.spec +++ b/ladspa.spec @@ -1,7 +1,7 @@ # # spec file for package ladspa # -# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2014 SUSE LINUX Products 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,18 +17,18 @@ Name: ladspa -BuildRequires: gcc-c++ +Version: 1.13 +Release: 0 Summary: The Linux Audio Developer's Simple Plug-In API License: LGPL-2.1+ Group: Productivity/Multimedia/Sound/Utilities -Version: 1.13 -Release: 0 +Url: http://www.ladspa.org/ +Source: http://www.ladspa.org/download/%{name}_sdk_%{version}.tar.bz2 +Patch0: ladspa.dif +BuildRequires: gcc-c++ +BuildRoot: %{_tmppath}/%{name}-%{version}-build AutoReq: on Autoprov: off -Source: ladspa_sdk_1.13.tar.bz2 -Patch: ladspa.dif -Url: http://www.ladspa.org/ -BuildRoot: %{_tmppath}/%{name}-%{version}-build %description The Linux Audio Developer's Simple Plug-in API (LADSPA) provides the @@ -38,7 +38,7 @@ dynamically. This package contains the plugins built from LADSPA SDK. %package devel Summary: Include Files mandatory for Development Group: Development/Libraries/C and C++ -%if 0%{suse_version} > 1110 +%if 0%{?suse_version} > 1110 BuildArch: noarch %endif @@ -47,24 +47,24 @@ This package contains include files to develop LADSPA plugins. %prep %setup -q -n ladspa_sdk -%patch -p1 +%patch0 -p1 ln -s ../ladspa.h src/plugins/ladspa.h %build # This package failed when testing with -Wl,-as-needed being default. # So we disable it here, if you want to retest, just delete this comment and the line below. export SUSE_ASNEEDED=0 -make -C src %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -fPIC -ggdb" targets +make -C src %{?_smp_mflags} CFLAGS="%{optflags} -fPIC -ggdb" targets %install make -C src \ - INSTALL_PLUGINS_DIR="$RPM_BUILD_ROOT"%{_libdir}/ladspa \ - INSTALL_INCLUDE_DIR="$RPM_BUILD_ROOT"%{_includedir} \ - INSTALL_BINARY_DIR="$RPM_BUILD_ROOT"%{_bindir} install + INSTALL_PLUGINS_DIR=%{buildroot}%{_libdir}/ladspa \ + INSTALL_INCLUDE_DIR=%{buildroot}%{_includedir} \ + INSTALL_BINARY_DIR=%{buildroot}%{_bindir} install # devel package -mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-devel -cp -av doc/* $RPM_BUILD_ROOT%{_docdir}/%{name}-devel -ln -sf %{_includedir}/ladspa.h $RPM_BUILD_ROOT%{_docdir}/%{name}-devel/ladspa.h.txt +mkdir -p %{buildroot}%{_docdir}/%{name}-devel +cp -av doc/* %{buildroot}%{_docdir}/%{name}-devel +ln -sf %{_includedir}/ladspa.h %{buildroot}%{_docdir}/%{name}-devel/ladspa.h.txt %files %defattr(-,root,root)