21f867
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
21f867
21f867
Summary:	The Vorbis General Audio Compression Codec
21f867
Name:		libvorbis
21f867
Version:	1.3.3
21f867
Release:	8%{?dist}.1
21f867
Epoch:		1
21f867
Group:		System Environment/Libraries
21f867
License:	BSD
21f867
URL:		http://www.xiph.org/
21f867
Source:		http://downloads.xiph.org/releases/vorbis/%{name}-%{version}.tar.xz
21f867
BuildRequires:	libogg-devel >= 2:1.1
21f867
Patch2:		libvorbis-1.2.3-add-needed.patch
21f867
Patch3:         0001-CVE-2018-5146-Prevent-out-of-bounds-write-in-codeboo.patch
21f867
21f867
%description
21f867
Ogg Vorbis is a fully open, non-proprietary, patent- and royalty-free,
21f867
general-purpose compressed audio format for audio and music at fixed
21f867
and variable bitrates.
21f867
21f867
The libvorbis package contains runtime libraries for use in programs
21f867
that support Ogg Vorbis.
21f867
21f867
%package devel
21f867
Summary: Development tools for Vorbis applications
21f867
Group: Development/Libraries
21f867
Requires:	libogg-devel >= 2:1.1
21f867
Requires:	%{name} = %{epoch}:%{version}-%{release}
21f867
Obsoletes:	vorbis-devel
21f867
21f867
%description devel
21f867
The libvorbis-devel package contains the header files and documentation
21f867
needed to develop applications with Ogg Vorbis.
21f867
21f867
%package devel-docs
21f867
Summary: Documentation for developing Vorbis applications
21f867
Group: Development/Libraries
21f867
Requires: %{name}-devel = %{epoch}:%{version}-%{release}
21f867
BuildArch: noarch
21f867
21f867
%description devel-docs
21f867
Documentation for developing applications with libvorbis.
21f867
21f867
%prep
21f867
21f867
%setup -q
21f867
%patch2 -p1
21f867
%patch3 -p1
21f867
sed -i "s|-O20|$RPM_OPT_FLAGS|" configure
21f867
sed -i "s/-ffast-math//" configure
21f867
sed -i "s/-mcpu=750//" configure
21f867
21f867
%build
21f867
%configure --with-ogg-libraries=%{_libdir} --disable-static
21f867
make
21f867
21f867
%install
21f867
rm -rf $RPM_BUILD_ROOT
21f867
make DESTDIR=$RPM_BUILD_ROOT install docdir=%{_pkgdocdir}
21f867
install -pm 644 -t $RPM_BUILD_ROOT%{_pkgdocdir} AUTHORS COPYING README
21f867
# remove unpackaged files from the buildroot
21f867
rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
21f867
21f867
%check
21f867
make check
21f867
21f867
%files
21f867
%defattr(-,root,root)
21f867
%doc %dir %{_pkgdocdir}
21f867
%doc %{_pkgdocdir}/COPYING
21f867
%{_libdir}/libvorbis.so.*
21f867
%{_libdir}/libvorbisfile.so.*
21f867
%{_libdir}/libvorbisenc.so.*
21f867
21f867
%files devel
21f867
%defattr(-,root,root)
21f867
%{_includedir}/vorbis
21f867
%{_libdir}/libvorbis.so
21f867
%{_libdir}/libvorbisfile.so
21f867
%{_libdir}/libvorbisenc.so
21f867
%{_libdir}/pkgconfig/*.pc
21f867
%{_datadir}/aclocal/vorbis.m4
21f867
21f867
%files devel-docs
21f867
%defattr(-,root,root)
21f867
%{_pkgdocdir}/*
21f867
%exclude %{_pkgdocdir}/COPYING
21f867
%exclude %{_pkgdocdir}/doxygen-build.stamp
21f867
21f867
%clean 
21f867
rm -rf $RPM_BUILD_ROOT
21f867
21f867
%post -p /sbin/ldconfig
21f867
21f867
%postun -p /sbin/ldconfig
21f867
21f867
%changelog
21f867
* Tue Mar 20 2018 Adam Jackson <ajax@redhat.com> - 1.3.3-8.1
21f867
- Backport fix for CVE-2018-5146
21f867
21f867
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1:1.3.3-8
21f867
- Mass rebuild 2014-01-24
21f867
21f867
* Wed Jan 15 2014 Adam Jackson <ajax@redhat.com> 1.3.3-7
21f867
- Nuke -mcpu=750 from cflags for PPC, that plus -mcpu=power7 confuses gcc.
21f867
21f867
* Thu Aug  8 2013 Ville Skyttä <ville.skytta@iki.fi> - 1:1.3.3-6
21f867
- Install docs to %%{_pkgdocdir} where available (#993967).
21f867
21f867
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.3.3-5
21f867
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
21f867
21f867
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.3.3-4
21f867
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
21f867
21f867
* Sat Jul 21 2012 Ville Skyttä <ville.skytta@iki.fi> - 1:1.3.3-3
21f867
- Run test suite during build.
21f867
- Fix doc file permissions and duplicate doc dir ownership.
21f867
- rpmlint warning fixes.
21f867
21f867
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.3.3-2
21f867
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
21f867
21f867
* Mon Feb 13 2012 Adam Jackson <ajax@redhat.com> 1.3.3-1
21f867
- libvorbis 1.3.3 (#787635)
21f867
21f867
* Wed Jan 04 2012 Jindrich Novy <jnovy@redhat.com> 1.3.2-2
21f867
- ship documentation only in -doc subpackage and only license
21f867
  in -devel (#540634) - thanks to Edward Sheldrake
21f867
- -devel-doc subpackage requires -devel
21f867
21f867
* Wed Feb 09 2011 Adam Jackson <ajax@redhat.com> 1.3.2-1
21f867
- libvorbis 1.3.2
21f867
21f867
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.3.1-3
21f867
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
21f867
21f867
* Thu Jul 08 2010 Adam Jackson <ajax@redhat.com> 1.3.1-2
21f867
- Include COPYING in base package too.
21f867
21f867
* Mon Mar 29 2010 Adam Jackson <ajax@redhat.com> 1.3.1-1
21f867
- libvorbis 1.3.1.  Fixes surround.
21f867
21f867
* Tue Feb 09 2010 Adam Jackson <ajax@redhat.com> 1.2.3-5
21f867
- libvorbis-1.2.3-add-needed.patch: Fix FTBFS from --no-add-needed
21f867
21f867
* Mon Nov 23 2009 Adam Jackson <ajax@redhat.com> 1.2.3-4
21f867
- Fix doc subpackage build (#540634)
21f867
21f867
* Mon Nov  2 2009 Jindrich Novy <jnovy@redhat.com> 1.2.3-3
21f867
- backport patches to fix CVE-2009-3379 (#531765) from upstream
21f867
21f867
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.2.3-2
21f867
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
21f867
21f867
* Mon Jul 13 2009 Adam Jackson <ajax@redhat.com> 1.2.3-1
21f867
- libvorbis 1.2.3
21f867
21f867
* Wed Jul 08 2009 Adam Jackson <ajax@redhat.com> 1.2.2-2
21f867
- libvorbis-1.2.2-svn16228.patch: Backport a fix from pre-1.2.3 to hopefully
21f867
  fix small sound file playback. (#505610)
21f867
21f867
* Thu Jul 02 2009 Adam Jackson <ajax@redhat.com> 1.2.2-1
21f867
- libvorbis 1.2.2
21f867
21f867
* Wed Jun 03 2009 Adam Jackson <ajax@redhat.com> 1.2.2-0.1.rc1
21f867
- libvorbis 1.2.2rc1
21f867
21f867
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.2.0-7
21f867
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
21f867
21f867
* Thu Feb 12 2009 Caolán McNamara <caolanm@redhat.com> -1:1.2.0-6
21f867
- rebuild to get provides pkgconfig(vorbisenc)
21f867
21f867
* Sun Sep  7 2008 Hans de Goede <hdegoede@redhat.com> -1:1.2.0-5
21f867
- Fix patch fuzz build failure
21f867
21f867
* Wed May 14 2008 Jindrich Novy <jnovy@redhat.com> - 1:1.2.0-4
21f867
- fix CVE-2008-1420, CVE-2008-1419, CVE-2008-1423 (#446344)
21f867
21f867
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1:1.2.0-3
21f867
- Autorebuild for GCC 4.3
21f867
21f867
* Sun Oct 21 2007 Hans de Goede <j.w.r.degoede@hhs.nl> - 1:1.2.0-2
21f867
- Don't include Makefile's in %%doc, avoiding a multilib conflict (bz 342481)
21f867
21f867
* Mon Oct 15 2007 Behdad Esfahbod <besfahbo@redhat.com> - 1:1.2.0-1
21f867
- Update to 1.2.0
21f867
- Resolves: #250115
21f867
21f867
* Thu Aug 23 2007 Adam Jackson <ajax@redhat.com> - 1:1.1.2-4
21f867
- Rebuild for build ID
21f867
21f867
* Mon Jun 25 2007 Matthias Clasen <mclasen@redhat.com> - 1:1.1.2-3
21f867
- Fix typos in %%description (#245471)
21f867
21f867
* Thu Feb  8 2007 Matthias Clasen <mclasen@redhat.com> - 1:1.1.2-2
21f867
- Package review cleanups
21f867
- Don't ship static libraries
21f867
21f867
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:1.1.2-1.2.1
21f867
- rebuild
21f867
21f867
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1:1.1.2-1.2
21f867
- bump again for double-long bug on ppc(64)
21f867
21f867
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1:1.1.2-1.1
21f867
- rebuilt for new gcc4.1 snapshot and glibc changes
21f867
21f867
* Wed Jan 18 2006 John (J5) Palmieri <johnp@redhat.com> 1:1.1.2-1
21f867
- Update to 1.1.2
21f867
21f867
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
21f867
- rebuilt
21f867
21f867
* Wed Mar 02 2005 John (J5) Palmieri <johnp@redhat.com> 1:1.1.1-1
21f867
- Update to 1.1.1
21f867
21f867
* Wed Mar 02 2005 John (J5) Palmieri <johnp@redhat.com> 1:1.1.0-2
21f867
- rebuild with gcc 4.0
21f867
21f867
* Wed Sep 29 2004 Colin Walters <walters@redhat.com> 1:1.1.0-1
21f867
- Update to 1.1.0
21f867
- Remove upstreamed patch libvorbis-underquoted.patch
21f867
21f867
* Wed Sep 29 2004 Warren Togami <wtogami@redhat.com> 1:1.0.1-5
21f867
- link to .pdf spec rather than ship redundant copy
21f867
- spec cleanups
21f867
21f867
* Thu Jul 15 2004 Tim Waugh <twaugh@redhat.com> 1:1.0.1-4
21f867
- Fixed warnings in shipped m4 file.
21f867
21f867
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
21f867
- rebuilt
21f867
21f867
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
21f867
- rebuilt
21f867
21f867
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
21f867
- rebuilt
21f867
21f867
* Thu Dec 11 2003 Bill Nottingham <notting@redhat.com> 1:1.0.1-1
21f867
- update to 1.0.1
21f867
21f867
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
21f867
- rebuilt
21f867
21f867
* Mon Feb 24 2003 Elliot Lee <sopwith@redhat.com>
21f867
- rebuilt
21f867
21f867
* Fri Feb 21 2003 Elliot lee <sopwith@redhat.com> 1:1.0-6
21f867
- Fix #81026 by updating libvorbis-1.0-m4.patch
21f867
21f867
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
21f867
- rebuilt
21f867
21f867
* Wed Dec 11 2002 Bill Nottingham <notting@redhat.com> 1:1.0-4
21f867
- add epochs to dependencies, to avoid 1.0rc3 >= 1.0 miscomparisons
21f867
  (#79374)
21f867
- fix vorbis.m4
21f867
21f867
* Fri Nov 29 2002 Tim Powers <timp@redhat.com> 1:1.0-2
21f867
- remove unpackaged files from the buildroot
21f867
- tell configure where ogg libs are
21f867
- lib64'ize
21f867
21f867
* Fri Jul 18 2002 Bill Nottingham <notting@redhat.com>
21f867
- one-dot-oh
21f867
- libtool strikes again (#66110)
21f867
21f867
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
21f867
- automated rebuild
21f867
21f867
* Thu May 23 2002 Tim Powers <timp@redhat.com>
21f867
- automated rebuild
21f867
21f867
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
21f867
- automated rebuild
21f867
21f867
* Tue Jan  1 2002 Bill Nottingham <notting@redhat.com>
21f867
- update to 1.0rc3
21f867
21f867
* Thu Aug 16 2001 Bill Nottingham <notting@redhat.com>
21f867
- fix bug in floor backend (<michael@stroucken.org>)
21f867
21f867
* Mon Aug 13 2001 Bill Nottingham <notting@redhat.com>
21f867
- update to 1.0rc2
21f867
21f867
* Fri Jul 20 2001 Bill Nottingham <notting@redhat.com>
21f867
- split out from the main vorbis package
21f867
21f867
* Tue Jul 10 2001 Bill Nottingham <notting@redhat.com>
21f867
- own %%{_libdir}/ao
21f867
- I love libtool
21f867
21f867
* Tue Jun 26 2001 Florian La Roche <Florian.LaRoche@redhat.de>
21f867
- add links from library major version numbers in rpms
21f867
21f867
* Tue Jun 19 2001 Bill Nottingham <notting@redhat.com>
21f867
- update to rc1
21f867
21f867
* Fri May  4 2001 Oliver Paukstadt <oliver.paukstadt@millenux.com>
21f867
- fixed perl line in spec file to set optims correctly
21f867
21f867
* Tue Mar 20 2001 Bill Nottingham <notting@redhat.com>
21f867
- fix alpha/ia64, again
21f867
- use optflags, not -O20 -ffast-math (especially on alpha...)
21f867
21f867
* Mon Feb 26 2001 Bill Nottingham <notting@redhat.com>
21f867
- fix license tag
21f867
21f867
* Mon Feb 26 2001 Bill Nottingham <notting@redhat.com>
21f867
- beta4
21f867
21f867
* Fri Feb  9 2001 Bill Nottingham <notting@redhat.com>
21f867
- fix alpha/ia64
21f867
21f867
* Thu Feb  8 2001 Bill Nottingham <notting@redhat.com>
21f867
- update CVS in prep for beta4
21f867
21f867
* Wed Feb 07 2001 Philipp Knirsch <pknirsch@redhat.de>
21f867
- Fixed bugzilla bug #25391. ogg123 now usses the OSS driver by default if
21f867
  none was specified.
21f867
21f867
* Tue Jan  9 2001 Bill Nottingham <notting@redhat.com>
21f867
- update CVS, grab aRts backend for libao
21f867
21f867
* Thu Dec 27 2000 Bill Nottingham <notting@redhat.com>
21f867
- update CVS
21f867
21f867
* Fri Dec 01 2000 Bill Nottingham <notting@redhat.com>
21f867
- rebuild because of broken fileutils
21f867
21f867
* Mon Nov 13 2000 Bill Nottingham <notting@redhat.com>
21f867
- hack up specfile some, merge some packages
21f867
21f867
* Sat Oct 21 2000 Jack Moffitt <jack@icecast.org>
21f867
- initial spec file created