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