2007-01-15 23:12:29 +00:00
|
|
|
#
|
2011-08-06 17:17:28 +00:00
|
|
|
# spec file for package flac
|
2007-01-15 23:12:29 +00:00
|
|
|
#
|
2023-03-14 16:06:54 +00:00
|
|
|
# Copyright (c) 2023 SUSE LLC
|
2007-01-15 23:12:29 +00:00
|
|
|
#
|
2008-11-02 14:40:09 +00:00
|
|
|
# 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.
|
|
|
|
|
2019-01-18 10:54:01 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2007-01-15 23:12:29 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2022-09-12 13:19:16 +00:00
|
|
|
%define sover 12
|
|
|
|
%define sover_plus 10
|
|
|
|
|
2007-01-15 23:12:29 +00:00
|
|
|
Name: flac
|
2022-11-30 12:50:22 +00:00
|
|
|
Version: 1.4.2
|
2013-07-01 03:55:08 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Free Lossless Audio Codec
|
2018-04-27 14:03:02 +00:00
|
|
|
License: BSD-3-Clause AND GPL-2.0-or-later AND GFDL-1.2-only
|
2013-07-01 03:55:08 +00:00
|
|
|
Group: Productivity/Multimedia/Sound/Utilities
|
2019-01-18 10:54:01 +00:00
|
|
|
URL: https://xiph.org/flac/
|
2022-09-12 13:19:16 +00:00
|
|
|
#Git-Web: https://github.com/xiph/flac
|
|
|
|
#Git-Clone: https://github.com/xiph/flac.git
|
2019-09-02 20:02:42 +00:00
|
|
|
#Changelog: https://xiph.org/flac/changelog.html
|
|
|
|
Source: https://downloads.xiph.org/releases/flac/%{name}-%{version}.tar.xz
|
2013-07-01 03:55:08 +00:00
|
|
|
Source2: baselibs.conf
|
2022-09-12 13:19:16 +00:00
|
|
|
|
2013-07-01 03:55:08 +00:00
|
|
|
BuildRequires: autoconf >= 2.60
|
|
|
|
BuildRequires: automake >= 1.11
|
2022-09-12 13:19:16 +00:00
|
|
|
BuildRequires: c++_compiler
|
|
|
|
BuildRequires: c_compiler
|
2011-10-02 15:38:07 +00:00
|
|
|
BuildRequires: libtool
|
2016-09-10 15:59:28 +00:00
|
|
|
BuildRequires: pkgconfig
|
2012-12-09 13:37:52 +00:00
|
|
|
BuildRequires: xz
|
2016-09-10 15:59:28 +00:00
|
|
|
BuildRequires: pkgconfig(ogg)
|
2019-01-18 10:54:01 +00:00
|
|
|
Obsoletes: %{name}-doc
|
2023-03-14 16:06:54 +00:00
|
|
|
%{?suse_build_hwcaps_libs}
|
2007-01-15 23:12:29 +00:00
|
|
|
|
|
|
|
%description
|
2019-01-23 13:23:34 +00:00
|
|
|
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.
|
2007-01-15 23:12:29 +00:00
|
|
|
|
2022-09-12 13:19:16 +00:00
|
|
|
%package -n libFLAC%{sover}
|
2012-01-24 16:35:22 +00:00
|
|
|
Summary: Free Lossless Audio Codec Library
|
2007-04-12 16:26:08 +00:00
|
|
|
Group: System/Libraries
|
2012-12-09 13:37:52 +00:00
|
|
|
Obsoletes: libflac < %{version}
|
2007-06-08 15:34:36 +00:00
|
|
|
Provides: libflac = %{version}
|
2007-04-12 16:26:08 +00:00
|
|
|
|
2022-09-12 13:19:16 +00:00
|
|
|
%description -n libFLAC%{sover}
|
2019-01-23 13:23:34 +00:00
|
|
|
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.
|
2007-04-12 16:26:08 +00:00
|
|
|
|
2022-09-12 13:19:16 +00:00
|
|
|
%package -n libFLAC++%{sover_plus}
|
2012-01-24 16:35:22 +00:00
|
|
|
Summary: Free Lossless Audio Codec Library
|
2007-06-07 11:13:45 +00:00
|
|
|
Group: System/Libraries
|
|
|
|
|
2022-09-12 13:19:16 +00:00
|
|
|
%description -n libFLAC++%{sover_plus}
|
2019-01-23 13:23:34 +00:00
|
|
|
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.
|
2007-06-07 11:13:45 +00:00
|
|
|
|
2007-01-15 23:12:29 +00:00
|
|
|
%package devel
|
2012-01-24 16:35:22 +00:00
|
|
|
Summary: FLAC Library Development Package
|
2007-01-15 23:12:29 +00:00
|
|
|
Group: Development/Libraries/C and C++
|
2012-01-24 16:35:22 +00:00
|
|
|
Requires: glibc-devel
|
2022-09-12 13:19:16 +00:00
|
|
|
Requires: libFLAC%{sover} = %{version}
|
|
|
|
Requires: libFLAC++%{sover_plus} = %{version}
|
2012-01-24 16:35:22 +00:00
|
|
|
Requires: libstdc++-devel
|
2007-01-15 23:12:29 +00:00
|
|
|
|
|
|
|
%description devel
|
2022-09-12 13:19:16 +00:00
|
|
|
This package contains the files needed to compile programs that use
|
|
|
|
the FLAC library.
|
2007-01-15 23:12:29 +00:00
|
|
|
|
|
|
|
%prep
|
2019-09-02 20:02:42 +00:00
|
|
|
%autosetup -p1
|
2013-07-01 03:55:08 +00:00
|
|
|
|
2007-01-15 23:12:29 +00:00
|
|
|
%build
|
2016-09-10 15:59:28 +00:00
|
|
|
autoreconf -fvi
|
2015-03-20 23:12:32 +00:00
|
|
|
%configure \
|
2016-09-10 15:59:28 +00:00
|
|
|
--disable-silent-rules \
|
2015-03-20 23:12:32 +00:00
|
|
|
--disable-thorough-tests \
|
2007-12-17 11:44:25 +00:00
|
|
|
--disable-static \
|
2022-11-30 12:50:22 +00:00
|
|
|
--disable-rpath
|
2022-09-12 13:19:16 +00:00
|
|
|
%make_build
|
2007-01-15 23:12:29 +00:00
|
|
|
|
|
|
|
%install
|
2019-09-02 20:02:42 +00:00
|
|
|
%make_install docdir="%{_docdir}/%{name}"
|
2015-03-20 23:12:32 +00:00
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
2019-01-18 10:54:01 +00:00
|
|
|
# wrongy installed docs
|
|
|
|
rm -rf %{buildroot}%{_datadir}/doc/%{name}-%{version}/
|
2010-12-08 18:44:09 +00:00
|
|
|
|
2012-12-09 13:37:52 +00:00
|
|
|
%check
|
2013-07-01 03:55:08 +00:00
|
|
|
make check %{?_smp_mflags}
|
2012-12-09 13:37:52 +00:00
|
|
|
|
2022-09-12 13:19:16 +00:00
|
|
|
%ldconfig_scriptlets -n libFLAC%{sover}
|
|
|
|
%ldconfig_scriptlets -n libFLAC++%{sover_plus}
|
2007-01-15 23:12:29 +00:00
|
|
|
|
|
|
|
%files
|
2022-09-12 13:19:16 +00:00
|
|
|
%doc README.md
|
2007-01-15 23:12:29 +00:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
|
2022-09-12 13:19:16 +00:00
|
|
|
%files -n libFLAC%{sover}
|
2019-01-18 10:54:01 +00:00
|
|
|
%license COPYING*
|
2022-09-12 13:19:16 +00:00
|
|
|
%{_libdir}/libFLAC.so.%{sover}*
|
2007-06-07 11:13:45 +00:00
|
|
|
|
2022-09-12 13:19:16 +00:00
|
|
|
%files -n libFLAC++%{sover_plus}
|
2019-01-18 10:54:01 +00:00
|
|
|
%license COPYING*
|
2022-09-12 13:19:16 +00:00
|
|
|
%{_libdir}/libFLAC++.so.%{sover_plus}*
|
2007-04-12 16:26:08 +00:00
|
|
|
|
2007-01-15 23:12:29 +00:00
|
|
|
%files devel
|
|
|
|
%{_libdir}/lib*.so
|
|
|
|
%{_includedir}/*
|
2007-04-12 16:26:08 +00:00
|
|
|
%{_libdir}/pkgconfig/*.pc
|
2007-01-15 23:12:29 +00:00
|
|
|
%{_datadir}/aclocal/*.m4
|
2019-09-02 20:02:42 +00:00
|
|
|
%{_docdir}/%{name}/
|
2022-09-12 13:19:16 +00:00
|
|
|
%exclude %{_docdir}/%{name}/README.md
|
2007-12-17 11:44:25 +00:00
|
|
|
|
2007-04-12 16:26:08 +00:00
|
|
|
%changelog
|