2007-01-16 00:23:30 +01:00
|
|
|
#
|
2011-05-09 09:15:16 +02:00
|
|
|
# spec file for package libvorbis
|
2007-01-16 00:23:30 +01:00
|
|
|
#
|
2018-03-16 20:21:09 +01:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:23:30 +01:00
|
|
|
#
|
2008-11-21 15:32:43 +01:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-04-17 00:38:46 +02:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
2007-01-16 00:23:30 +01:00
|
|
|
#
|
|
|
|
|
2010-12-08 14:18:37 +01:00
|
|
|
|
2007-04-17 00:38:46 +02:00
|
|
|
Name: libvorbis
|
2018-03-16 23:13:48 +01:00
|
|
|
Version: 1.3.6
|
2011-12-25 12:14:29 +01:00
|
|
|
Release: 0
|
2010-12-08 10:12:03 +01:00
|
|
|
Summary: The Vorbis General Audio Compression Codec
|
2011-12-25 12:14:29 +01:00
|
|
|
License: BSD-3-Clause
|
2010-12-08 10:12:03 +01:00
|
|
|
Group: System/Libraries
|
2011-12-25 12:14:29 +01:00
|
|
|
Url: http://www.vorbis.com/
|
2014-02-24 17:40:07 +01:00
|
|
|
Source: http://downloads.xiph.org/releases/vorbis/%{name}-%{version}.tar.xz
|
2016-11-29 13:26:12 +01:00
|
|
|
Source1: baselibs.conf
|
2007-04-17 00:38:46 +02:00
|
|
|
Patch1: libvorbis-lib64.dif
|
|
|
|
Patch2: libvorbis-m4.dif
|
2011-11-25 22:35:02 +01:00
|
|
|
Patch12: vorbis-ocloexec.patch
|
2018-05-03 16:25:09 +02:00
|
|
|
Patch101: vorbis-CVE-2017-14160.patch
|
|
|
|
Patch102: vorbis-CVE-2018-10393.patch
|
2010-12-08 10:12:03 +01:00
|
|
|
BuildRequires: libogg-devel
|
2011-12-25 12:14:29 +01:00
|
|
|
BuildRequires: libtool
|
|
|
|
BuildRequires: pkgconfig
|
2014-02-24 17:40:07 +01:00
|
|
|
BuildRequires: xz
|
2007-04-17 00:38:46 +02:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-03-08 20:57:07 +01:00
|
|
|
# bug437293 (SLES10 -> SLES11 upgrade path)
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libvorbis-64bit
|
|
|
|
%endif
|
2007-01-16 00:23:30 +01:00
|
|
|
|
|
|
|
%description
|
2007-07-27 01:58:11 +02:00
|
|
|
Vorbis is a fully open, nonproprietary, patent-and-royalty-free, and
|
|
|
|
general-purpose compressed audio format for audio and music at fixed
|
|
|
|
and variable bit rates from 16 to 128 kbps/channel.
|
|
|
|
|
|
|
|
The native bitstream format of Vorbis is libogg (Ogg). Alternatively,
|
|
|
|
libmatroska (matroska) can also be used.
|
2007-01-16 00:23:30 +01:00
|
|
|
|
2010-12-10 16:35:11 +01:00
|
|
|
%package -n libvorbis0
|
|
|
|
Summary: The Vorbis General Audio Compression Codec
|
|
|
|
#
|
|
|
|
# libvorbis was last used in openSUSE 11.3
|
2017-12-19 14:59:09 +01:00
|
|
|
Group: System/Libraries
|
2011-05-06 23:12:08 +02:00
|
|
|
Provides: %{name} = 1.3.2
|
|
|
|
Obsoletes: %{name} < 1.3.2
|
2015-03-08 20:57:07 +01:00
|
|
|
# bug437293 (SLES10 -> SLES11 upgrade path)
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libvorbis-64bit
|
|
|
|
%endif
|
2010-12-10 16:35:11 +01:00
|
|
|
|
|
|
|
%description -n libvorbis0
|
|
|
|
Vorbis is a fully open, nonproprietary, patent-and-royalty-free, and
|
|
|
|
general-purpose compressed audio format for audio and music at fixed
|
|
|
|
and variable bit rates from 16 to 128 kbps/channel.
|
|
|
|
|
|
|
|
The native bitstream format of Vorbis is libogg (Ogg). Alternatively,
|
|
|
|
libmatroska (matroska) can also be used.
|
|
|
|
|
|
|
|
%package -n libvorbisenc2
|
|
|
|
Summary: The Vorbis General Audio Compression Codec
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libvorbisenc2
|
|
|
|
Vorbis is a fully open, nonproprietary, patent-and-royalty-free, and
|
|
|
|
general-purpose compressed audio format for audio and music at fixed
|
|
|
|
and variable bit rates from 16 to 128 kbps/channel.
|
|
|
|
|
|
|
|
The native bitstream format of Vorbis is libogg (Ogg). Alternatively,
|
|
|
|
libmatroska (matroska) can also be used.
|
|
|
|
|
|
|
|
%package -n libvorbisfile3
|
|
|
|
Summary: The Vorbis General Audio Compression Codec
|
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n libvorbisfile3
|
|
|
|
Vorbis is a fully open, nonproprietary, patent-and-royalty-free, and
|
|
|
|
general-purpose compressed audio format for audio and music at fixed
|
|
|
|
and variable bit rates from 16 to 128 kbps/channel.
|
|
|
|
|
|
|
|
The native bitstream format of Vorbis is libogg (Ogg). Alternatively,
|
|
|
|
libmatroska (matroska) can also be used.
|
|
|
|
|
2007-01-16 00:23:30 +01:00
|
|
|
%package devel
|
2007-07-27 01:58:11 +02:00
|
|
|
Summary: Include Files and Libraries mandatory for Ogg Vorbis Development
|
2007-04-17 00:38:46 +02:00
|
|
|
Group: Development/Libraries/C and C++
|
2010-12-10 16:35:11 +01:00
|
|
|
Requires: glibc-devel
|
2010-12-08 10:12:03 +01:00
|
|
|
Requires: libogg-devel
|
2012-06-20 18:14:31 +02:00
|
|
|
Requires: libvorbis0 = %{version}
|
|
|
|
Requires: libvorbisenc2 = %{version}
|
|
|
|
Requires: libvorbisfile3 = %{version}
|
2010-12-08 10:12:03 +01:00
|
|
|
# bug437293 (SLES10 -> SLES11 upgrade path)
|
2009-01-08 18:45:51 +01:00
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: libvorbis-devel-64bit
|
|
|
|
%endif
|
|
|
|
#
|
2007-01-16 00:23:30 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains all necessary include files and libraries needed
|
2007-07-27 01:58:11 +02:00
|
|
|
to compile and develop applications that use libvorbis.
|
2007-01-16 00:23:30 +01:00
|
|
|
|
|
|
|
%prep
|
2007-08-03 17:13:47 +02:00
|
|
|
%setup -q
|
2007-01-16 00:23:30 +01:00
|
|
|
%patch2
|
2010-12-10 16:35:11 +01:00
|
|
|
# %%patch5 -p1
|
2010-12-08 10:12:03 +01:00
|
|
|
if [ "%{_lib}" == "lib64" ]; then
|
2007-01-16 00:23:30 +01:00
|
|
|
%patch1
|
|
|
|
fi
|
2011-11-25 22:35:02 +01:00
|
|
|
%patch12
|
2018-05-03 16:25:09 +02:00
|
|
|
%patch101 -p1
|
|
|
|
%patch102 -p1
|
2007-01-16 00:23:30 +01:00
|
|
|
|
|
|
|
%build
|
2013-03-02 14:05:31 +01:00
|
|
|
# Fix optimization level
|
2011-12-25 12:14:29 +01:00
|
|
|
sed -i s,-O20,-O3,g configure.ac
|
|
|
|
|
2011-08-29 21:15:13 +02:00
|
|
|
autoreconf -fiv
|
2015-03-08 20:57:07 +01:00
|
|
|
%configure \
|
|
|
|
--disable-examples \
|
|
|
|
--disable-static
|
2010-01-07 20:26:01 +01:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:23:30 +01:00
|
|
|
|
|
|
|
%install
|
2018-03-16 23:13:48 +01:00
|
|
|
make DESTDIR=%{buildroot} install
|
2018-03-17 22:35:56 +01:00
|
|
|
# docs are built in a separate spec file
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/*
|
2007-04-17 00:38:46 +02:00
|
|
|
# remove unneeded files
|
2015-03-08 20:57:07 +01:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2010-12-08 10:12:03 +01:00
|
|
|
|
|
|
|
%check
|
2015-03-08 20:57:07 +01:00
|
|
|
make %{?_smp_mflags} check
|
2007-01-16 00:23:30 +01:00
|
|
|
|
2010-12-10 16:35:11 +01:00
|
|
|
%post -n libvorbis0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libvorbis0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libvorbisenc2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libvorbisenc2 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%post -n libvorbisfile3 -p /sbin/ldconfig
|
2007-01-16 00:23:30 +01:00
|
|
|
|
2010-12-10 16:35:11 +01:00
|
|
|
%postun -n libvorbisfile3 -p /sbin/ldconfig
|
2007-01-16 00:23:30 +01:00
|
|
|
|
2010-12-10 16:35:11 +01:00
|
|
|
%files -n libvorbis0
|
2010-12-08 10:12:03 +01:00
|
|
|
%defattr(0644,root,root,0755)
|
2010-12-10 16:35:11 +01:00
|
|
|
%{_libdir}/libvorbis.so.0*
|
|
|
|
|
|
|
|
%files -n libvorbisenc2
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_libdir}/libvorbisenc.so.2*
|
|
|
|
|
|
|
|
%files -n libvorbisfile3
|
|
|
|
%defattr(0644,root,root,0755)
|
|
|
|
%{_libdir}/libvorbisfile.so.3*
|
2007-01-16 00:23:30 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2018-03-16 23:13:48 +01:00
|
|
|
%doc AUTHORS
|
|
|
|
%license COPYING
|
2007-01-16 00:23:30 +01:00
|
|
|
%{_datadir}/aclocal/*.m4
|
|
|
|
%{_includedir}/vorbis
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
2007-04-17 00:38:46 +02:00
|
|
|
%changelog
|