f7ebc0
Summary: An encoder/decoder for the Free Lossless Audio Codec
f7ebc0
Name: flac
f7ebc0
Version: 1.3.0
f7ebc0
Release: 5%{?dist}
f7ebc0
License: BSD and GPLv2+ and GFDL
f7ebc0
Group: Applications/Multimedia
f7ebc0
f7ebc0
Source0: http://downloads.xiph.org/releases/flac/flac-%{version}.tar.xz
f7ebc0
URL: http://www.xiph.org/flac/
f7ebc0
f7ebc0
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
f7ebc0
f7ebc0
BuildRequires: libogg-devel
f7ebc0
BuildRequires: automake autoconf libtool gettext-devel doxygen
f7ebc0
%ifarch %{ix86}
f7ebc0
# 2.0 supports symbol visibility
f7ebc0
BuildRequires: nasm >= 2.0
f7ebc0
%endif
f7ebc0
f7ebc0
Patch1: flac-metaflac_strcat.patch
f7ebc0
Patch2: flac-no_rice_asm.patch
f7ebc0
Patch3: flac-1.3.0-cve-2014-8962.patch
f7ebc0
Patch4: flac-1.3.0-cve-2014-9028.patch
f7ebc0
f7ebc0
%description
f7ebc0
FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC
f7ebc0
is similar to Ogg Vorbis, but lossless. The FLAC project consists of
f7ebc0
the stream format, reference encoders and decoders in library form,
f7ebc0
flac, a command-line program to encode and decode FLAC files, metaflac,
f7ebc0
a command-line metadata editor for FLAC files and input plugins for
f7ebc0
various music players.
f7ebc0
f7ebc0
This package contains the command-line tools and documentation.
f7ebc0
f7ebc0
%package libs
f7ebc0
Summary: Libraries for the Free Lossless Audio Codec
f7ebc0
Group: System Environment/Libraries
f7ebc0
Obsoletes: flac < 1.2.1-11
f7ebc0
f7ebc0
%description libs
f7ebc0
FLAC stands for Free Lossless Audio Codec. Grossly oversimplified, FLAC
f7ebc0
is similar to Ogg Vorbis, but lossless. The FLAC project consists of
f7ebc0
the stream format, reference encoders and decoders in library form,
f7ebc0
flac, a command-line program to encode and decode FLAC files, metaflac,
f7ebc0
a command-line metadata editor for FLAC files and input plugins for
f7ebc0
various music players.
f7ebc0
f7ebc0
This package contains the FLAC libraries.
f7ebc0
f7ebc0
%package devel
f7ebc0
Summary: Development libraries and header files from FLAC
f7ebc0
Group: Development/Libraries
f7ebc0
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
f7ebc0
Requires: pkgconfig
f7ebc0
f7ebc0
%description devel
f7ebc0
This package contains all the files needed to develop applications that
f7ebc0
will use the Free Lossless Audio Codec.
f7ebc0
f7ebc0
%prep
f7ebc0
%setup -q
f7ebc0
%patch1 -p1 -b .metaflac-strcat
f7ebc0
%patch2 -p1 -b .no_rice_asm
f7ebc0
%patch3 -p1 -b .cve-2014-8962
f7ebc0
%patch4 -p1 -b .cve-2014-9028
f7ebc0
f7ebc0
%build
f7ebc0
# use our libtool to avoid problems with RPATH
f7ebc0
./autogen.sh -V
f7ebc0
f7ebc0
# -funroll-loops makes encoding about 10% faster
f7ebc0
export CFLAGS="%{optflags} -funroll-loops"
f7ebc0
%configure \
f7ebc0
    --disable-xmms-plugin \
f7ebc0
    --disable-silent-rules \
f7ebc0
    --disable-thorough-tests
f7ebc0
f7ebc0
make %{?_smp_mflags}
f7ebc0
f7ebc0
%install
f7ebc0
make install DESTDIR=%{buildroot}
f7ebc0
f7ebc0
# split documentation
f7ebc0
mv %{buildroot}%{_docdir}/flac* ./flac-doc
f7ebc0
mkdir -p flac-doc-devel
f7ebc0
mv flac-doc{/html/api,-devel}
f7ebc0
rm flac-doc/FLAC.tag
f7ebc0
f7ebc0
rm %{buildroot}%{_libdir}/*.la
f7ebc0
f7ebc0
%check
f7ebc0
make -C test check FLAC__TEST_LEVEL=0 &> /dev/null
f7ebc0
f7ebc0
%post libs -p /sbin/ldconfig
f7ebc0
f7ebc0
%postun libs -p /sbin/ldconfig
f7ebc0
f7ebc0
%files
f7ebc0
%doc flac-doc/*
f7ebc0
%{_bindir}/flac
f7ebc0
%{_bindir}/metaflac
f7ebc0
%{_mandir}/man1/*
f7ebc0
f7ebc0
%files libs
f7ebc0
%doc AUTHORS COPYING* README
f7ebc0
%{_libdir}/*.so.*
f7ebc0
f7ebc0
%files devel
f7ebc0
%doc flac-doc-devel/*
f7ebc0
%{_includedir}/*
f7ebc0
%{_libdir}/*.so
f7ebc0
%{_libdir}/pkgconfig/*
f7ebc0
%{_datadir}/aclocal/*.m4
f7ebc0
f7ebc0
%changelog
f7ebc0
* Fri Mar 27 2015 Miroslav Lichvar <mlichvar@redhat.com> 1.3.0-5
f7ebc0
- fix buffer overflow when processing ID3v2 metadata (CVE-2014-8962)
f7ebc0
- fix buffer overflow with invalid blocksize (CVE-2014-9028)
f7ebc0
f7ebc0
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 1.3.0-4
f7ebc0
- Mass rebuild 2014-01-24
f7ebc0
f7ebc0
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.3.0-3
f7ebc0
- Mass rebuild 2013-12-27
f7ebc0
f7ebc0
* Mon Jun 03 2013 Miroslav Lichvar <mlichvar@redhat.com> 1.3.0-2
f7ebc0
- fix memory corruption in metaflac (#969259)
f7ebc0
- disable slower assembly code
f7ebc0
f7ebc0
* Tue May 28 2013 Miroslav Lichvar <mlichvar@redhat.com> 1.3.0-1
f7ebc0
- update to 1.3.0
f7ebc0
f7ebc0
* Tue Apr 02 2013 Miroslav Lichvar <mlichvar@redhat.com> 1.3.0-0.2.pre3
f7ebc0
- update to 1.3.0pre3
f7ebc0
f7ebc0
* Tue Mar 05 2013 Miroslav Lichvar <mlichvar@redhat.com> 1.3.0-0.1.pre1
f7ebc0
- update to 1.3.0pre1
f7ebc0
- make some dependencies arch-specific
f7ebc0
f7ebc0
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-13.20121204gita43f56
f7ebc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f7ebc0
f7ebc0
* Thu Dec 06 2012 Kalev Lember <kalevlember@gmail.com> - 1.2.1-12.20121204gita43f56
f7ebc0
- Added self-obsoletes to help multilib upgrades
f7ebc0
f7ebc0
* Tue Dec 04 2012 Miroslav Lichvar <mlichvar@redhat.com> 1.2.1-11.20121204gita43f56
f7ebc0
- update to 20121204gita43f56
f7ebc0
- create libs subpackage
f7ebc0
- split documentation to base and devel subpackages
f7ebc0
- drop defattr macros
f7ebc0
- add GFDL to License tag
f7ebc0
f7ebc0
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-10
f7ebc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
f7ebc0
f7ebc0
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-9
f7ebc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
f7ebc0
f7ebc0
* Fri Dec  9 2011 Peter Robinson <pbrobinson@fedoraproject.org> - 1.2.1-8
f7ebc0
- Rebuild to fix FTBFS
f7ebc0
f7ebc0
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-7
f7ebc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
f7ebc0
f7ebc0
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-6
f7ebc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
f7ebc0
f7ebc0
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.2.1-5
f7ebc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
f7ebc0
f7ebc0
* Mon Mar 17 2008 Miroslav Lichvar <mlichvar@redhat.com> 1.2.1-4
f7ebc0
- speed up decoding
f7ebc0
- CFLAGS cleanup
f7ebc0
f7ebc0
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.2.1-3
f7ebc0
- Autorebuild for GCC 4.3
f7ebc0
f7ebc0
* Tue Jan 29 2008 Miroslav Lichvar <mlichvar@redhat.com> 1.2.1-2
f7ebc0
- fix building with gcc-4.3 
f7ebc0
- reenable some assembly optimizations
f7ebc0
- hide private libFLAC symbols (#285961)
f7ebc0
- update license tag
f7ebc0
- add %%check
f7ebc0
- remove -maltivec from CFLAGS
f7ebc0
f7ebc0
* Mon Sep 17 2007 - Bastien Nocera <bnocera@redhat.com> - 1.2.1-1
f7ebc0
- Update to 1.2.1
f7ebc0
f7ebc0
* Wed Sep 12 2007 - Bastien Nocera <bnocera@redhat.com> - 1.2.0-3
f7ebc0
- Make a few functions hidden, to try and avoid textrels
f7ebc0
- Disable optimisations on x86 for the same reason
f7ebc0
  (#285961)
f7ebc0
f7ebc0
* Tue Sep 11 2007 - Bastien Nocera <bnocera@redhat.com> - 1.2.0-2
f7ebc0
- Update GNU stack patch to cover all the NASM sources used
f7ebc0
f7ebc0
* Mon Sep 10 2007 - Bastien Nocera <bnocera@redhat.com> - 1.2.0-1
f7ebc0
- Update for 1.20 and drop obsolete patches (#285161)
f7ebc0
f7ebc0
* Fri Aug 24 2007 Adam Jackson <ajax@redhat.com> - 1.1.4-5
f7ebc0
- Rebuild for build ID
f7ebc0
f7ebc0
* Thu Apr 12 2007 - Bastien Nocera <bnocera@redhat.com> - 1.1.4-4
f7ebc0
- The byteSwap symbol shouldn't be global, reported by Joe Orton
f7ebc0
  <jorton@redhat.com> (#215920)
f7ebc0
f7ebc0
* Wed Feb 14 2007 - Bastien Nocera <bnocera@redhat.com> - 1.1.4-3
f7ebc0
- Also include the new pkgconfig files
f7ebc0
f7ebc0
* Wed Feb 14 2007 - Bastien Nocera <bnocera@redhat.com> - 1.1.4-2
f7ebc0
- Update link-ogg patch for 1.1.4
f7ebc0
f7ebc0
* Wed Feb 14 2007 - Bastien Nocera <bnocera@redhat.com> - 1.1.4-1
f7ebc0
- Update to upstream 1.1.4
f7ebc0
f7ebc0
* Tue Feb 13 2007 - Bastien Nocera <bnocera@redhat.com> - 1.1.3-2
f7ebc0
- A few fixes from the the Fedora merge review
f7ebc0
- Remove the static library
f7ebc0
f7ebc0
* Tue Feb 13 2007 - Bastien Nocera <bnocera@redhat.com> - 1.1.3-1
f7ebc0
- Update with work from Matthias Clasen <mclasen@redhat.com> up
f7ebc0
  to upstream 1.1.3 (#229462)
f7ebc0
- Remove xmmx-flac Obsolete, as we don't ship the xmms plugin
f7ebc0
f7ebc0
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1.1.2-27
f7ebc0
- rebuild
f7ebc0
- Try building w/ glib2-devel
f7ebc0
f7ebc0
* Wed Jun  7 2006 Jeremy Katz <katzj@redhat.com> - 1.1.2-26
f7ebc0
- rebuild for -devel deps
f7ebc0
f7ebc0
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1.1.2-25.2.1
f7ebc0
- bump again for double-long bug on ppc(64)
f7ebc0
f7ebc0
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1.1.2-25.2
f7ebc0
- rebuilt for new gcc4.1 snapshot and glibc changes
f7ebc0
f7ebc0
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
f7ebc0
- rebuilt
f7ebc0
f7ebc0
* Thu Apr 21 2005 Warren Togami <wtogami@redhat.com> - 1.1.2-25
f7ebc0
- Fix buildreqs  (#154649 thias)
f7ebc0
- obsolete older xmms-flac
f7ebc0
f7ebc0
* Mon Apr  4 2005 Elliot Lee <sopwith@redhat.com> - 1.1.2-24
f7ebc0
- Removed xmms-flac subpackage
f7ebc0
f7ebc0
* Tue Mar 29 2005 John (J5) Palmieri <johnp@redhat.com> 1.1.2-2
f7ebc0
- Rebuild (flac picked up a dependancy on it's older version)
f7ebc0
f7ebc0
* Mon Mar 28 2005 John (J5) Palmieri <johnp@redhat.com> 1.1.2-1
f7ebc0
- Update to upstream version 1.1.2
f7ebc0
- Replace flac-1.1.0-libtool.patch with flac-1.1.2-libtool.patch
f7ebc0
f7ebc0
* Wed Mar 02 2005 John (J5) Palmieri <johnp@redhat.com> 1.1.0-9
f7ebc0
- rebuild for gcc 4.0
f7ebc0
f7ebc0
* Wed Feb 23 2005 Colin Walters <walters@redhat.com> 1.1.0-8
f7ebc0
- New patch flac-1.1.0-gnu-stack.patch from Ulrich Drepper to mark asm
f7ebc0
  as not requiring an executable stack
f7ebc0
f7ebc0
* Thu Jul 15 2004 Tim Waugh <twaugh@redhat.com> 1.1.0-7
f7ebc0
- Fixed warnings in shipped m4 file.
f7ebc0
f7ebc0
* Mon Jun 21 2004 Colin Walters <walters@redhat.com> 1.1.0-6
f7ebc0
- BuildRequire glib-devel for xmms plugin
f7ebc0
- BuildRequire nasm
f7ebc0
f7ebc0
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
f7ebc0
- rebuilt
f7ebc0
f7ebc0
* Sun Apr 04 2004 Warren Togami <wtogami@redhat.com> 1.1.0-4
f7ebc0
- #119551 flac-xmms -> xmms-flac to match fedora.us and freshrpms.net
f7ebc0
- Obsoletes flac-libs to upgrade smoothly from fedora.us
f7ebc0
f7ebc0
* Thu Mar 11 2004 Bill Nottingham <notting@redhat.com> 1.1.0-3
f7ebc0
- fix x86_64 linkage (#117893)
f7ebc0
f7ebc0
* Tue Mar 02 2004 Elliot Lee <sopwith@redhat.com>
f7ebc0
- rebuilt
f7ebc0
f7ebc0
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
f7ebc0
- rebuilt
f7ebc0
f7ebc0
* Wed Aug  6 2003 Bill Nottingham <notting@redhat.com> 1.1.0-1
f7ebc0
- initial build