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