Accepting request 104914 from multimedia:libs

patch license to follow spdx.org standard (forwarded request 104574 from coolo)

OBS-URL: https://build.opensuse.org/request/show/104914
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/wavpack?expand=0&rev=17
This commit is contained in:
Stephan Kulow 2012-02-16 15:24:57 +00:00 committed by Git OBS Bridge
commit 64e959d45b
3 changed files with 47 additions and 40 deletions

View File

@ -0,0 +1,16 @@
--- wavpack.pc.in.orig 2011-12-01 00:48:27.306001025 +0100
+++ wavpack.pc.in 2011-12-01 00:48:45.777001024 +0100
@@ -1,5 +1,5 @@
prefix=@prefix@
-libdir=${prefix}/lib
+libdir=@libdir@
includedir=${prefix}/include
Name: wavpack
@@ -7,5 +7,5 @@
Version: @PACKAGE_VERSION@
Requires:
Conflicts:
-Libs: -L${libdir} -lwavpack @LIBM@ @ICONV@
+Libs: -lwavpack @LIBM@ @ICONV@
Cflags: -I${includedir}

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Feb 13 10:57:33 UTC 2012 - coolo@suse.com
- patch license to follow spdx.org standard
------------------------------------------------------------------- -------------------------------------------------------------------
Fri Nov 25 12:33:45 UTC 2011 - coolo@suse.com Fri Nov 25 12:33:45 UTC 2011 - coolo@suse.com

View File

@ -1,7 +1,7 @@
# #
# spec file for package wavpack # spec file for package wavpack
# #
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany. # Copyright (c) 2012 SUSE LINUX Products 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
@ -15,21 +15,23 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/ # Please submit bugfixes or comments via http://bugs.opensuse.org/
# #
# norootforbuild
Name: wavpack Name: wavpack
License: BSD3c BuildRequires: libtool
BuildRequires: libtool pkgconfig BuildRequires: pkgconfig
Group: Productivity/Multimedia/Sound/Editors and Convertors
Url: http://www.wavpack.com/ Url: http://www.wavpack.com/
Summary: Free Hybrid Lossless Audio Compression Format Summary: Free Hybrid Lossless Audio Compression Format
License: BSD-3-Clause
Group: Productivity/Multimedia/Sound/Editors and Convertors
Version: 4.60.1 Version: 4.60.1
Release: 1 Release: 0
%define soname 1
Source: http://www.wavpack.com/%{name}-%{version}.tar.bz2 Source: http://www.wavpack.com/%{name}-%{version}.tar.bz2
# pbleser: fix .pc file by using @libdir@ instead of @prefix@/lib, and remove -L$libdir altogether
Patch1: wavpack-fix_pkgconfig.patch
# Name used by third parties before openSUSE 10.3: # Name used by third parties before openSUSE 10.3:
Provides: WavPack = %{version}-%{release} Provides: WavPack = %{version}-%{release}
Requires: libwavpack1 >= %{version} Requires: libwavpack%{soname} >= %{version}
Obsoletes: WavPack < %version Obsoletes: WavPack < %version
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -55,18 +57,11 @@ used all by itself, and a "correction" file that (when combined with
the lossy file) provides full lossless restoration. For some users this the lossy file) provides full lossless restoration. For some users this
means never having to choose between lossless and lossy compression! means never having to choose between lossless and lossy compression!
%package -n libwavpack%{soname}
Authors:
--------
David Bryant <david@wavpack.com>
%package -n libwavpack1
License: BSD3c
Summary: Free Hybrid Lossless Audio Compression Format Summary: Free Hybrid Lossless Audio Compression Format
Group: System/Libraries Group: System/Libraries
%description -n libwavpack1 %description -n libwavpack%{soname}
WavPack is a completely open audio compression format providing WavPack is a completely open audio compression format providing
lossless, high-quality lossy, and a unique hybrid compression mode. lossless, high-quality lossy, and a unique hybrid compression mode.
Although the technology is loosely based on previous versions of Although the technology is loosely based on previous versions of
@ -88,14 +83,7 @@ used all by itself, and a "correction" file that (when combined with
the lossy file) provides full lossless restoration. For some users this the lossy file) provides full lossless restoration. For some users this
means never having to choose between lossless and lossy compression! means never having to choose between lossless and lossy compression!
Authors:
--------
David Bryant <david@wavpack.com>
%package devel %package devel
License: BSD3c
Summary: Free Hybrid Lossless Audio Compression Format Summary: Free Hybrid Lossless Audio Compression Format
Group: Development/Libraries/C and C++ Group: Development/Libraries/C and C++
Requires: %{name} = %{version} glibc-devel Requires: %{name} = %{version} glibc-devel
@ -122,51 +110,49 @@ used all by itself, and a "correction" file that (when combined with
the lossy file) provides full lossless restoration. For some users this the lossy file) provides full lossless restoration. For some users this
means never having to choose between lossless and lossy compression! means never having to choose between lossless and lossy compression!
Authors:
--------
David Bryant <david@wavpack.com>
%prep %prep
%setup -q %setup -q
%patch1
%build %build
autoreconf -f -i autoreconf -fiv
%configure --disable-static --with-pic %configure --disable-static --with-pic
%{__make} %{?jobs:-j%jobs} %{__make} %{?_smp_mflags}
%install %install
%makeinstall %makeinstall
#not needed #not needed
%{__rm} %{buildroot}%{_libdir}/*.la %__rm "%{buildroot}%{_libdir}"/*.la
%check %check
make check make check
%post -n libwavpack1 -p /sbin/ldconfig %post -n libwavpack%{soname} -p /sbin/ldconfig
%postun -n libwavpack1 -p /sbin/ldconfig %postun -n libwavpack%{soname} -p /sbin/ldconfig
%clean %clean
rm -rf $RPM_BUILD_ROOT %{?buildroot:%__rm -rf "%{buildroot}"}
%files %files
%defattr(-,root,root) %defattr(-,root,root)
# AUTHORS NEWS are empty # AUTHORS NEWS are empty
%doc ChangeLog README license.txt %doc ChangeLog README license.txt
%{_bindir}/* %{_bindir}/wavpack
%{_bindir}/wvgain
%{_bindir}/wvunpack
%{_mandir}/man?/* %{_mandir}/man?/*
%files -n libwavpack1 %files -n libwavpack%{soname}
%defattr(-,root,root) %defattr(-,root,root)
%{_libdir}/*.so.* %{_libdir}/libwavpack.so.%{soname}
%{_libdir}/libwavpack.so.%{soname}.*
%files devel %files devel
%defattr(-,root,root) %defattr(-,root,root)
%doc doc/*.* %doc doc/*.*
%{_includedir}/wavpack %{_includedir}/wavpack
%{_libdir}/*.so %{_libdir}/libwavpack.so
%{_libdir}/pkgconfig/wavpack.pc %{_libdir}/pkgconfig/wavpack.pc
%changelog %changelog