SHA256
1
0
forked from pool/ladspa

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
This commit is contained in:
Takashi Iwai 2014-03-03 10:50:59 +00:00 committed by Git OBS Bridge
parent de461dbedf
commit cf5379d5d5
2 changed files with 23 additions and 17 deletions

View File

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

View File

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