Files
flac/flac.spec
Takashi Iwai 0b711fb729 Accepting request 1094833 from home:alarrosa:branches:multimedia:libs
- Update to version 1.4.3:
  + General
    * All PowerPC-specific code has been removed, as it turned out
      those improvements didn't actually improve anything
    * Large improvements in encoder speed for all presets. The
      largest change is for the fastest presets and for 24-bit and
      32-bit inputs.
    * Small improvement in decoder speed for BMI2-capable CPUs
    * Various documentation fixes and cleanups
    * Various fixes
    * Fix building on Universal Windows Platform
  + flac
    * A lot of small fixes for bugs found by fuzzing
    * Various improvements to the --keep-foreign-metadata and
      --keep-foreign-metadata-if-present options on decoding
      + The output format (WAV/AIFF/RF64 etc.) is now automatically
        selected based on what kind of foreign metadata is stored
      + Decoded file is checked afterwards, to see whether stored
        foreign format data agrees with FLAC audio properties
      + AIFF-C sowt data can now be restored
    * Add --force-legacy-wave-format option, to decode to WAV with
      WAVEFORMATPCM where WAVE_FORMAT_EXTENSIBLE would be more
      appropriate
    * Add --force-aiff-c-none-format and --force-aiff-c-sowt-format
      to decode to AIFF-C
    * The storage of WAVEFORMATEXTENSIBLE_CHANNEL_MASK is no longer
      restricted to known channel orderings
    * Throw an error when WAV or AIFF files are over 4GiB in length
      and the --ignore-chunk-sizes option is not set
    * Warn on testing files when ID3v2 tags are found

OBS-URL: https://build.opensuse.org/request/show/1094833
OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/flac?expand=0&rev=71
2023-06-26 13:31:29 +00:00

136 lines
3.9 KiB
RPMSpec

#
# spec file for package flac
#
# Copyright (c) 2023 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#
%define sover 12
%define sover_plus 10
Name: flac
Version: 1.4.3
Release: 0
Summary: Free Lossless Audio Codec
License: BSD-3-Clause AND GPL-2.0-or-later AND GFDL-1.2-only
Group: Productivity/Multimedia/Sound/Utilities
URL: https://xiph.org/flac/
#Git-Web: https://github.com/xiph/flac
#Git-Clone: https://github.com/xiph/flac.git
#Changelog: https://xiph.org/flac/changelog.html
Source: https://github.com/xiph/flac/releases/download/%{version}/%{name}-%{version}.tar.xz
Source2: baselibs.conf
BuildRequires: autoconf >= 2.60
BuildRequires: automake >= 1.11
BuildRequires: c++_compiler
BuildRequires: c_compiler
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: xz
BuildRequires: pkgconfig(ogg)
Obsoletes: %{name}-doc
%{?suse_build_hwcaps_libs}
%description
FLAC is an audio coding format for lossless compression of digital
audio, and is also the name of the reference software package that
includes a codec implementation. Digital audio compressed by FLAC's
algorithm can typically be reduced to between 50 and 70 percent of
its original size, and decompresses to an identical copy of the
original audio data.
%package -n libFLAC%{sover}
Summary: Free Lossless Audio Codec Library
Group: System/Libraries
Obsoletes: libflac < %{version}
Provides: libflac = %{version}
%description -n libFLAC%{sover}
FLAC is an audio coding format for lossless compression of digital
audio, and is also the name of the reference software package that
includes a codec implementation.
This package contains the C API library for FLAC.
%package -n libFLAC++%{sover_plus}
Summary: Free Lossless Audio Codec Library
Group: System/Libraries
%description -n libFLAC++%{sover_plus}
FLAC is an audio coding format for lossless compression of digital
audio, and is also the name of the reference software package that
includes a codec implementation.
This package contains the C++ API library for FLAC.
%package devel
Summary: FLAC Library Development Package
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libFLAC%{sover} = %{version}
Requires: libFLAC++%{sover_plus} = %{version}
Requires: libstdc++-devel
%description devel
This package contains the files needed to compile programs that use
the FLAC library.
%prep
%autosetup -p1
%build
autoreconf -fvi
%configure \
--disable-silent-rules \
--disable-thorough-tests \
--disable-static \
--disable-rpath
%make_build
%install
%make_install docdir="%{_docdir}/%{name}"
find %{buildroot} -type f -name "*.la" -delete -print
# wrongy installed docs
rm -rf %{buildroot}%{_datadir}/doc/%{name}-%{version}/
%check
make check %{?_smp_mflags}
%ldconfig_scriptlets -n libFLAC%{sover}
%ldconfig_scriptlets -n libFLAC++%{sover_plus}
%files
%doc README.md
%{_bindir}/*
%{_mandir}/man*/*
%files -n libFLAC%{sover}
%license COPYING*
%{_libdir}/libFLAC.so.%{sover}*
%files -n libFLAC++%{sover_plus}
%license COPYING*
%{_libdir}/libFLAC++.so.%{sover_plus}*
%files devel
%{_libdir}/lib*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_datadir}/aclocal/*.m4
%{_docdir}/%{name}/
%exclude %{_docdir}/%{name}/README.md
%changelog