From 2b7f20975ef7fc53611fedc32143ab6bcfcc5fbf965906c1f5650851d63b5604 Mon Sep 17 00:00:00 2001 From: OBS User buildservice-autocommit Date: Thu, 18 Mar 2010 15:06:01 +0000 Subject: [PATCH 1/5] Updating link to change in openSUSE:Factory/libvorbis revision 18.0 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libvorbis?expand=0&rev=cf7b664853b3bf3c50ae14d1211b7ec0 --- ready | 0 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 ready diff --git a/ready b/ready deleted file mode 100644 index 473a0f4..0000000 From 9de32d4bab2b6a3a35335090688a9fb581314478932f675588d72db66c6431b5 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 26 May 2010 13:35:28 +0000 Subject: [PATCH 2/5] fix CVE-2009-3379 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libvorbis?expand=0&rev=11 --- libvorbis-r16326-CVE-2009-3379.diff | 15 +++++++++++++++ libvorbis-r16597-CVE-2009-3379.diff | 14 ++++++++++++++ libvorbis.changes | 6 ++++++ libvorbis.spec | 4 ++++ 4 files changed, 39 insertions(+) create mode 100644 libvorbis-r16326-CVE-2009-3379.diff create mode 100644 libvorbis-r16597-CVE-2009-3379.diff diff --git a/libvorbis-r16326-CVE-2009-3379.diff b/libvorbis-r16326-CVE-2009-3379.diff new file mode 100644 index 0000000..553a281 --- /dev/null +++ b/libvorbis-r16326-CVE-2009-3379.diff @@ -0,0 +1,15 @@ +--- + lib/backends.h | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/lib/backends.h ++++ b/lib/backends.h +@@ -111,7 +111,7 @@ + int partitions; /* possible codebooks for a partition */ + int groupbook; /* huffbook for partitioning */ + int secondstages[64]; /* expanded out to pointers in lookup */ +- int booklist[256]; /* list of second stage books */ ++ int booklist[512]; /* list of second stage books */ + + const float classmetric1[64]; + const float classmetric2[64]; diff --git a/libvorbis-r16597-CVE-2009-3379.diff b/libvorbis-r16597-CVE-2009-3379.diff new file mode 100644 index 0000000..9812403 --- /dev/null +++ b/libvorbis-r16597-CVE-2009-3379.diff @@ -0,0 +1,14 @@ +--- + lib/codebook.c | 1 + + 1 file changed, 1 insertion(+) + +--- a/lib/codebook.c ++++ b/lib/codebook.c +@@ -198,6 +198,7 @@ + for(i=0;ientries;){ + long num=oggpack_read(opb,_ilog(s->entries-i)); + if(num==-1)goto _eofout; ++ if(length>32)goto _errout; + for(j=0;jentries;j++,i++) + s->lengthlist[i]=length; + length++; diff --git a/libvorbis.changes b/libvorbis.changes index f89bac5..4c135cc 100644 --- a/libvorbis.changes +++ b/libvorbis.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed May 26 15:03:32 CEST 2010 - tiwai@suse.de + +- VUL-0: libvorbis: memory corruption while parsing ogg files + (bnc#608192, CVE-2009-3379) + ------------------------------------------------------------------- Wed Dec 16 10:17:40 CET 2009 - jengelh@medozas.de diff --git a/libvorbis.spec b/libvorbis.spec index ca2c5cc..0d6667f 100644 --- a/libvorbis.spec +++ b/libvorbis.spec @@ -40,6 +40,8 @@ Patch3: libvorbis-automake-fix.diff # Patch5: libvorbis-%{version}-aotuv-b5.7.diff Patch9: libvorbis-doc-fixes.diff Patch10: libvorbis-pkgconfig.patch +Patch11: libvorbis-r16326-CVE-2009-3379.diff +Patch12: libvorbis-r16597-CVE-2009-3379.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -106,6 +108,8 @@ Authors: # %patch5 -p1 %patch9 %patch10 +%patch11 -p1 +%patch12 -p1 if [ "%_lib" == "lib64" ]; then %patch1 fi From 8c5daa5e36e304e2fc381b3da9d89463f1d19286213d98b9d37339895a916421 Mon Sep 17 00:00:00 2001 From: Takashi Iwai Date: Wed, 26 May 2010 14:12:18 +0000 Subject: [PATCH 3/5] add comment OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libvorbis?expand=0&rev=12 --- libvorbis.spec | 1 + 1 file changed, 1 insertion(+) diff --git a/libvorbis.spec b/libvorbis.spec index 0d6667f..f917d93 100644 --- a/libvorbis.spec +++ b/libvorbis.spec @@ -40,6 +40,7 @@ Patch3: libvorbis-automake-fix.diff # Patch5: libvorbis-%{version}-aotuv-b5.7.diff Patch9: libvorbis-doc-fixes.diff Patch10: libvorbis-pkgconfig.patch +# bnc608192 Patch11: libvorbis-r16326-CVE-2009-3379.diff Patch12: libvorbis-r16597-CVE-2009-3379.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build From 7f12fb2715f19dea5bc84c397b158292fabb8ba7651b02fbd1bd08e86a20d05c Mon Sep 17 00:00:00 2001 From: OBS User autobuild Date: Fri, 28 May 2010 16:14:00 +0000 Subject: [PATCH 4/5] Accepting request 40696 from multimedia:libs checked in (request 40696) OBS-URL: https://build.opensuse.org/request/show/40696 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libvorbis?expand=0&rev=13 --- libvorbis-r16326-CVE-2009-3379.diff | 15 --------------- libvorbis-r16597-CVE-2009-3379.diff | 14 -------------- libvorbis.changes | 6 ------ libvorbis.spec | 5 ----- 4 files changed, 40 deletions(-) delete mode 100644 libvorbis-r16326-CVE-2009-3379.diff delete mode 100644 libvorbis-r16597-CVE-2009-3379.diff diff --git a/libvorbis-r16326-CVE-2009-3379.diff b/libvorbis-r16326-CVE-2009-3379.diff deleted file mode 100644 index 553a281..0000000 --- a/libvorbis-r16326-CVE-2009-3379.diff +++ /dev/null @@ -1,15 +0,0 @@ ---- - lib/backends.h | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - ---- a/lib/backends.h -+++ b/lib/backends.h -@@ -111,7 +111,7 @@ - int partitions; /* possible codebooks for a partition */ - int groupbook; /* huffbook for partitioning */ - int secondstages[64]; /* expanded out to pointers in lookup */ -- int booklist[256]; /* list of second stage books */ -+ int booklist[512]; /* list of second stage books */ - - const float classmetric1[64]; - const float classmetric2[64]; diff --git a/libvorbis-r16597-CVE-2009-3379.diff b/libvorbis-r16597-CVE-2009-3379.diff deleted file mode 100644 index 9812403..0000000 --- a/libvorbis-r16597-CVE-2009-3379.diff +++ /dev/null @@ -1,14 +0,0 @@ ---- - lib/codebook.c | 1 + - 1 file changed, 1 insertion(+) - ---- a/lib/codebook.c -+++ b/lib/codebook.c -@@ -198,6 +198,7 @@ - for(i=0;ientries;){ - long num=oggpack_read(opb,_ilog(s->entries-i)); - if(num==-1)goto _eofout; -+ if(length>32)goto _errout; - for(j=0;jentries;j++,i++) - s->lengthlist[i]=length; - length++; diff --git a/libvorbis.changes b/libvorbis.changes index 4c135cc..f89bac5 100644 --- a/libvorbis.changes +++ b/libvorbis.changes @@ -1,9 +1,3 @@ -------------------------------------------------------------------- -Wed May 26 15:03:32 CEST 2010 - tiwai@suse.de - -- VUL-0: libvorbis: memory corruption while parsing ogg files - (bnc#608192, CVE-2009-3379) - ------------------------------------------------------------------- Wed Dec 16 10:17:40 CET 2009 - jengelh@medozas.de diff --git a/libvorbis.spec b/libvorbis.spec index f917d93..ca2c5cc 100644 --- a/libvorbis.spec +++ b/libvorbis.spec @@ -40,9 +40,6 @@ Patch3: libvorbis-automake-fix.diff # Patch5: libvorbis-%{version}-aotuv-b5.7.diff Patch9: libvorbis-doc-fixes.diff Patch10: libvorbis-pkgconfig.patch -# bnc608192 -Patch11: libvorbis-r16326-CVE-2009-3379.diff -Patch12: libvorbis-r16597-CVE-2009-3379.diff BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -109,8 +106,6 @@ Authors: # %patch5 -p1 %patch9 %patch10 -%patch11 -p1 -%patch12 -p1 if [ "%_lib" == "lib64" ]; then %patch1 fi From 8289cf4b450efde1a1d285a558f8d02dbf2ab07de1614f39744bd4fdca4a77c7 Mon Sep 17 00:00:00 2001 From: Dave Plater Date: Wed, 8 Dec 2010 09:12:03 +0000 Subject: [PATCH 5/5] Accepting request 55087 from home:RedDwarf:branches:multimedia:libs Added you as maintainer for ogg and vorbis. Thanks for the help we need an extra hand. OBS-URL: https://build.opensuse.org/request/show/55087 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libvorbis?expand=0&rev=14 --- _service | 14 ++ _service:download_url:libvorbis-1.3.2.tar.bz2 | 3 + _service:set_version:libvorbis.spec | 148 ++++++++++++++++++ libvorbis-1.2.3.tar.bz2 | 3 - libvorbis-automake-fix.diff | 26 --- libvorbis-doc-fixes.diff | 17 -- libvorbis.changes | 53 +++++++ libvorbis.spec | 94 ++++++----- 8 files changed, 263 insertions(+), 95 deletions(-) create mode 100644 _service create mode 100644 _service:download_url:libvorbis-1.3.2.tar.bz2 create mode 100644 _service:set_version:libvorbis.spec delete mode 100644 libvorbis-1.2.3.tar.bz2 delete mode 100644 libvorbis-automake-fix.diff delete mode 100644 libvorbis-doc-fixes.diff diff --git a/_service b/_service new file mode 100644 index 0000000..9d4f720 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + + http + downloads.xiph.org + /releases/vorbis/libvorbis-1.3.2.tar.bz2 + + + _service:download_url:libvorbis-1.3.2.tar.bz2 + sha256 + 9f04b60ba89edbe860dc0a5902171e4ac35cff8ba19252aa23ed029994823395 + + + diff --git a/_service:download_url:libvorbis-1.3.2.tar.bz2 b/_service:download_url:libvorbis-1.3.2.tar.bz2 new file mode 100644 index 0000000..cb59c3d --- /dev/null +++ b/_service:download_url:libvorbis-1.3.2.tar.bz2 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:9f04b60ba89edbe860dc0a5902171e4ac35cff8ba19252aa23ed029994823395 +size 1230364 diff --git a/_service:set_version:libvorbis.spec b/_service:set_version:libvorbis.spec new file mode 100644 index 0000000..0916642 --- /dev/null +++ b/_service:set_version:libvorbis.spec @@ -0,0 +1,148 @@ +# +# spec file for package libvorbis (Version 1.3.2) +# +# Copyright (c) 2010 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 +# 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. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + +%define _SO_nr 0 + +Name: libvorbis +Version: 1.3.2 +Release: 0 +License: BSD3c(or similar) +Summary: The Vorbis General Audio Compression Codec +Url: http://www.vorbis.com/ +Group: System/Libraries +# bug437293 (SLES10 -> SLES11 upgrade path) +%ifarch ppc64 +Obsoletes: libvorbis-64bit +%endif +# +Source: %{name}-%{version}.tar.bz2 +Source2: baselibs.conf +Patch1: libvorbis-lib64.dif +Patch2: libvorbis-m4.dif +# URL http://www.geocities.jp/aoyoume/aotuv/ +# Patch5: libvorbis-%{version}-aotuv-b5.7.diff +# PATCH-FIX-UPSTREAM libvorbis-pkgconfig.patch https://trac.xiph.org/ticket/1759 reddwarf@opensuse.org -- Use Requires/Libs.private to avoid overlinking +Patch10: libvorbis-pkgconfig.patch +BuildRequires: libogg-devel +BuildRequires: pkgconfig +BuildRoot: %{_tmppath}/%{name}-%{version}-build + +%description +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 libvorbis%{_SO_nr} +Summary: The Vorbis General Audio Compression Codec +Group: System/Libraries +# bug437293 (SLES10 -> SLES11 upgrade path) +%ifarch ppc64 +Obsoletes: libvorbis-64bit +%endif +# +# libvorbis was last used in openSUSE 11.3 +Provides: %{name} = %{version} +Obsoletes: %{name} <= 1.2.3 + +%description -n libvorbis%{_SO_nr} +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 devel +License: BSD3c(or similar) +Summary: Include Files and Libraries mandatory for Ogg Vorbis Development +Group: Development/Libraries/C and C++ +Requires: %{name} = %{version} +Requires: glibc-devel, +Requires: libogg-devel +# bug437293 (SLES10 -> SLES11 upgrade path) +%ifarch ppc64 +Obsoletes: libvorbis-devel-64bit +%endif +# + +%description devel +This package contains all necessary include files and libraries needed +to compile and develop applications that use libvorbis. + +%package doc +License: BSD3c(or similar) +Summary: Documentation of Ogg/Vorbis library +Group: Documentation/Other +%if 0%{?suse_version} >= 1120 +BuildArch: noarch +%endif + +%description doc +This package contains documents for Ogg/Vorbis library, including the +API reference. + +%prep +%setup -q +%patch2 +# %patch5 -p1 +%patch10 +if [ "%{_lib}" == "lib64" ]; then +%patch1 +fi + +%build +%configure --disable-static +make %{?_smp_mflags} + +%install +%makeinstall +mkdir -p %{buildroot}%{_docdir}/%{name} +mv %{buildroot}%{_datadir}/doc/libvorbis-* %{buildroot}%{_docdir}/%{name} +install -c -m 0644 doc/Vorbis_I_spec.* %{buildroot}%{_docdir}/%{name} +# remove unneeded files +rm -f %{buildroot}%{_libdir}/*.la + +%check +%__make check + +%post -n libvorbis%{_SO_nr} -p /sbin/ldconfig + +%postun -n libvorbis%{_SO_nr} -p /sbin/ldconfig + +%clean +[ %{buildroot} != "/" ] && rm -rf %{buildroot} + +%files -n libvorbis%{_SO_nr} +%defattr(0644,root,root,0755) +%doc COPYING AUTHORS README *.txt +%{_libdir}/lib*.so.* + +%files devel +%defattr(-,root,root) +%{_datadir}/aclocal/*.m4 +%{_includedir}/vorbis +%{_libdir}/lib*.so +%{_libdir}/pkgconfig/*.pc + +%files doc +%defattr(-,root,root) +%doc %{_docdir}/%{name} + +%changelog diff --git a/libvorbis-1.2.3.tar.bz2 b/libvorbis-1.2.3.tar.bz2 deleted file mode 100644 index 1657749..0000000 --- a/libvorbis-1.2.3.tar.bz2 +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:b6b7f1c433c8da424060ec0f136a0fd1ece8fb839848ee6b7188e0f359507fdf -size 1199269 diff --git a/libvorbis-automake-fix.diff b/libvorbis-automake-fix.diff deleted file mode 100644 index fdfdb3e..0000000 --- a/libvorbis-automake-fix.diff +++ /dev/null @@ -1,26 +0,0 @@ ---- - Makefile.am | 2 ++ - doc/Makefile.am | 1 - - 2 files changed, 2 insertions(+), 1 deletion(-) - ---- Makefile.am.orig -+++ Makefile.am -@@ -2,6 +2,8 @@ - - AUTOMAKE_OPTIONS = 1.6 foreign dist-zip dist-bzip2 - -+ACLOCAL_AMFLAGS = -I m4 -+ - SUBDIRS = m4 include vq lib examples test doc - - m4datadir = $(datadir)/aclocal ---- doc/Makefile.am.orig -+++ doc/Makefile.am -@@ -44,7 +44,6 @@ - hufftree-under.png \ - residue-pack.png \ - residue2.png \ -- white-xifish.png \ - window1.png \ - window2.png - SPEC_PDF = xifish.pdf diff --git a/libvorbis-doc-fixes.diff b/libvorbis-doc-fixes.diff deleted file mode 100644 index da14498..0000000 --- a/libvorbis-doc-fixes.diff +++ /dev/null @@ -1,17 +0,0 @@ ---- - doc/vorbisenc/index.html | 2 ++ - 1 file changed, 2 insertions(+) - ---- doc/vorbisenc/index.html.orig -+++ doc/vorbisenc/index.html -@@ -20,8 +20,10 @@ -

- libvorbisenc api overview
- libvorbisenc api reference
-+ - -

-


diff --git a/libvorbis.changes b/libvorbis.changes index f89bac5..1b76882 100644 --- a/libvorbis.changes +++ b/libvorbis.changes @@ -1,3 +1,56 @@ +------------------------------------------------------------------- +Wed Dec 8 04:23:34 UTC 2010 - reddwarf@opensuse.org + +- updated to version 1.3.2 + * vorbis: additional proofing against invalid/malicious + streams in floor, residue, and bos/eos packet trimming + code (see SVN for details). + * vorbis: Added programming documentation tree for the + low-level calls + * vorbisfile: Correct handling of serial numbers array + element [0] on non-seekable streams + * vorbisenc: Back out an [old] AoTuV HF weighting that was + first enabled in 1.3.0; there are a few samples where I + really don't like the effect it causes. + * vorbis: return correct timestamp for granule positions + with high bit set. + * vorbisfile: the [undocumented] half-rate decode api made no + attempt to keep the pcm offset tracking consistent in seeks. + Fix and add a testing mode to seeking_example.c to torture + test seeking in halfrate mode. Also remove requirement that + halfrate mode only work with seekable files. + * vorbisfile: Fix a chaining bug in raw_seeks where seeking + out of the current link would fail due to not + reinitializing the decode machinery. + * vorbisfile: improve seeking strategy. Reduces the + necessary number of seek callbacks in an open or seek + operation by well over 2/3. +- updated to version 1.3.1 + * tweak + minor arithmetic fix in floor1 fit + * revert noise norm to conservative 1.2.3 behavior pending + more listening testing +- updated to versio 1.3.0 + * Optimized surround support for 5.1 encoding at 44.1/48kHz + * Added encoder control call to disable channel coupling + * Correct an overflow bug in very low-bitrate encoding on 32 bit + machines that caused inflated bitrates + * Numerous API hardening, leak and build fixes + * Correct bug in 22kHz compand setup that could cause a crash + * Correct bug in 16kHz codebooks that could cause unstable pure + tones at high bitrates +- run spec-cleaner +- removed libvorbis-automake-fix.diff, libvorbis-doc-fixes.diff, + libvorbis-r16326-CVE-2009-3379.diff and + libvorbis-r16597-CVE-2009-3379.diff (upstream fixed) +- follow library packaging policy +- run make check + +------------------------------------------------------------------- +Wed May 26 15:03:32 CEST 2010 - tiwai@suse.de + +- VUL-0: libvorbis: memory corruption while parsing ogg files + (bnc#608192, CVE-2009-3379) + ------------------------------------------------------------------- Wed Dec 16 10:17:40 CET 2009 - jengelh@medozas.de diff --git a/libvorbis.spec b/libvorbis.spec index ca2c5cc..31fbd33 100644 --- a/libvorbis.spec +++ b/libvorbis.spec @@ -1,5 +1,5 @@ # -# spec file for package libvorbis (Version 1.2.3) +# spec file for package libvorbis (Version 1.3.2) # # Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany. # @@ -15,18 +15,16 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # -# norootforbuild - +%define _SO_nr 0 Name: libvorbis -BuildRequires: libogg-devel pkgconfig -Summary: The Vorbis General Audio Compression Codec -Version: 1.2.3 -Release: 2 -Group: System/Libraries +Version: to_be_filled_by_service +Release: 0 License: BSD3c(or similar) +Summary: The Vorbis General Audio Compression Codec Url: http://www.vorbis.com/ -# bug437293 +Group: System/Libraries +# bug437293 (SLES10 -> SLES11 upgrade path) %ifarch ppc64 Obsoletes: libvorbis-64bit %endif @@ -35,11 +33,12 @@ Source: %{name}-%{version}.tar.bz2 Source2: baselibs.conf Patch1: libvorbis-lib64.dif Patch2: libvorbis-m4.dif -Patch3: libvorbis-automake-fix.diff # URL http://www.geocities.jp/aoyoume/aotuv/ # Patch5: libvorbis-%{version}-aotuv-b5.7.diff -Patch9: libvorbis-doc-fixes.diff +# PATCH-FIX-UPSTREAM libvorbis-pkgconfig.patch https://trac.xiph.org/ticket/1759 reddwarf@opensuse.org -- Use Requires/Libs.private to avoid overlinking Patch10: libvorbis-pkgconfig.patch +BuildRequires: libogg-devel +BuildRequires: pkgconfig BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -50,20 +49,34 @@ 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 libvorbis%{_SO_nr} +Summary: The Vorbis General Audio Compression Codec +Group: System/Libraries +# bug437293 (SLES10 -> SLES11 upgrade path) +%ifarch ppc64 +Obsoletes: libvorbis-64bit +%endif +# +# libvorbis was last used in openSUSE 11.3 +Provides: %{name} = %{version} +Obsoletes: %{name} <= 1.2.3 +%description -n libvorbis%{_SO_nr} +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. -Authors: --------- - Monty - Xiphophorus Company +The native bitstream format of Vorbis is libogg (Ogg). Alternatively, +libmatroska (matroska) can also be used. %package devel License: BSD3c(or similar) Summary: Include Files and Libraries mandatory for Ogg Vorbis Development Group: Development/Libraries/C and C++ -Requires: glibc-devel, libogg-devel Requires: %{name} = %{version} -# bug437293 +Requires: glibc-devel, +Requires: libogg-devel +# bug437293 (SLES10 -> SLES11 upgrade path) %ifarch ppc64 Obsoletes: libvorbis-devel-64bit %endif @@ -73,13 +86,6 @@ Obsoletes: libvorbis-devel-64bit This package contains all necessary include files and libraries needed to compile and develop applications that use libvorbis. - - -Authors: --------- - Monty - Xiphophorus Company - %package doc License: BSD3c(or similar) Summary: Documentation of Ogg/Vorbis library @@ -92,50 +98,40 @@ BuildArch: noarch This package contains documents for Ogg/Vorbis library, including the API reference. - - -Authors: --------- - Monty - Xiphophorus Company - %prep %setup -q %patch2 -%patch3 # %patch5 -p1 -%patch9 %patch10 -if [ "%_lib" == "lib64" ]; then +if [ "%{_lib}" == "lib64" ]; then %patch1 fi %build -autoreconf -fi -%configure \ - --with-ogg-libraries=%{_libdir} \ - --disable-static +%configure --disable-static make %{?_smp_mflags} %install %makeinstall -mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name} -mv $RPM_BUILD_ROOT%{_datadir}/doc/libvorbis-* $RPM_BUILD_ROOT%{_docdir}/%{name}/html -install -c -m 0644 doc/Vorbis_I_spec.* $RPM_BUILD_ROOT%{_docdir}/%{name}/html -cp COPYING AUTHORS README $RPM_BUILD_ROOT%{_docdir}/%{name} -cp *.txt $RPM_BUILD_ROOT%{_docdir}/%{name} +mkdir -p %{buildroot}%{_docdir}/%{name} +mv %{buildroot}%{_datadir}/doc/libvorbis-* %{buildroot}%{_docdir}/%{name} +install -c -m 0644 doc/Vorbis_I_spec.* %{buildroot}%{_docdir}/%{name} # remove unneeded files -rm -f $RPM_BUILD_ROOT%{_libdir}/*.la +rm -f %{buildroot}%{_libdir}/*.la -%post -p /sbin/ldconfig +%check +%__make check -%postun -p /sbin/ldconfig +%post -n libvorbis%{_SO_nr} -p /sbin/ldconfig + +%postun -n libvorbis%{_SO_nr} -p /sbin/ldconfig %clean -[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT +[ %{buildroot} != "/" ] && rm -rf %{buildroot} -%files -%defattr(-,root,root) +%files -n libvorbis%{_SO_nr} +%defattr(0644,root,root,0755) +%doc COPYING AUTHORS README *.txt %{_libdir}/lib*.so.* %files devel