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
|
|
|
#
|
2013-02-28 22:44:03 +00:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
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.
|
|
|
|
|
2007-01-15 23:12:29 +00:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: flac
|
2012-01-24 16:35:22 +00:00
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: libogg-devel
|
2011-10-02 15:38:07 +00:00
|
|
|
BuildRequires: libtool
|
2012-12-09 13:37:52 +00:00
|
|
|
BuildRequires: openssl-devel
|
2012-01-24 16:35:22 +00:00
|
|
|
BuildRequires: pkg-config
|
2012-12-09 13:37:52 +00:00
|
|
|
BuildRequires: xz
|
2011-08-06 15:02:38 +00:00
|
|
|
%ifarch %{ix86}
|
|
|
|
BuildRequires: nasm
|
|
|
|
%endif
|
2008-11-02 14:40:09 +00:00
|
|
|
# bug437293
|
|
|
|
%ifarch ppc64
|
|
|
|
Obsoletes: flac-64bit
|
|
|
|
%endif
|
2013-05-27 20:16:09 +00:00
|
|
|
Version: 1.2.99_git201305252226
|
2012-03-14 21:52:45 +00:00
|
|
|
Release: 0
|
2012-01-24 16:35:22 +00:00
|
|
|
#
|
|
|
|
Summary: Free Lossless Audio Codec
|
2013-04-22 14:38:42 +00:00
|
|
|
License: BSD-3-Clause and GPL-2.0+ and GFDL-1.2
|
2007-04-12 16:26:08 +00:00
|
|
|
Group: Productivity/Multimedia/Sound/Utilities
|
2012-03-14 21:52:45 +00:00
|
|
|
Url: http://flac.sourceforge.net/
|
2012-12-09 13:37:52 +00:00
|
|
|
Source: %{name}-%{version}.tar.xz
|
2009-12-29 23:17:01 +00:00
|
|
|
Source2: baselibs.conf
|
2012-12-09 13:37:52 +00:00
|
|
|
Patch1: flac-ocloexec.patch
|
2013-05-27 20:16:09 +00:00
|
|
|
Patch2: 0001-Allow-use-of-openSSL.patch
|
2012-12-18 12:07:06 +00:00
|
|
|
Patch3: flac-fix-pkgconfig.patch
|
2013-05-27 20:16:09 +00:00
|
|
|
Patch5: 0001-getopt_long-not-broken-here.patch
|
2007-01-15 23:12:29 +00:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
FLAC is an open source lossless audio codec developed by Josh Coalson.
|
|
|
|
|
2007-06-07 11:13:45 +00:00
|
|
|
%package -n libFLAC8
|
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
|
|
|
|
2007-06-07 11:13:45 +00:00
|
|
|
%description -n libFLAC8
|
2007-04-12 16:26:08 +00:00
|
|
|
This package contains the library for FLAC (Free Lossless Audio Codec)
|
|
|
|
developed by Josh Coalson.
|
|
|
|
|
2007-06-07 11:13:45 +00:00
|
|
|
%package -n libFLAC++6
|
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
|
|
|
|
|
|
|
|
%description -n libFLAC++6
|
|
|
|
This package contains the C++ library for FLAC (Free Lossless Audio
|
|
|
|
Codec) developed by Josh Coalson.
|
|
|
|
|
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
|
|
|
|
Requires: libFLAC++6 = %{version}
|
|
|
|
Requires: libFLAC8 = %{version}
|
|
|
|
Requires: libstdc++-devel
|
2007-01-15 23:12:29 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package contains the files needed to compile programs that use the
|
|
|
|
FLAC library.
|
|
|
|
|
|
|
|
%prep
|
2007-12-17 11:44:25 +00:00
|
|
|
%setup -q
|
2013-05-27 20:16:09 +00:00
|
|
|
%patch1 -p1
|
2012-12-09 13:37:52 +00:00
|
|
|
%patch2 -p1
|
2012-12-18 12:07:06 +00:00
|
|
|
%patch3 -p1
|
2013-05-27 20:16:09 +00:00
|
|
|
%patch5 -p1
|
2007-01-15 23:12:29 +00:00
|
|
|
%build
|
2012-12-09 13:37:52 +00:00
|
|
|
touch config.rpath
|
2007-01-15 23:12:29 +00:00
|
|
|
autoreconf --force --install
|
2012-01-27 18:52:26 +00:00
|
|
|
%define warn_flags -O3 -W -Wall -Wstrict-prototypes -Wformat-security
|
2012-01-24 16:35:22 +00:00
|
|
|
export CFLAGS="%{optflags} %{warn_flags}"
|
2007-07-26 23:26:00 +00:00
|
|
|
export CXXFLAGS="$CFLAGS"
|
2012-12-09 13:37:52 +00:00
|
|
|
%configure --disable-thorough-tests \
|
|
|
|
--disable-xmms-plugin \
|
2007-12-17 11:44:25 +00:00
|
|
|
--disable-static \
|
|
|
|
--disable-rpath \
|
2011-09-28 06:43:29 +00:00
|
|
|
--with-pic \
|
2012-12-09 13:37:52 +00:00
|
|
|
--enable-sse
|
2011-09-28 06:43:29 +00:00
|
|
|
|
2012-12-09 13:37:52 +00:00
|
|
|
make %{?_smp_mflags} V=1
|
2007-01-15 23:12:29 +00:00
|
|
|
|
|
|
|
%install
|
2012-01-24 16:35:22 +00:00
|
|
|
%make_install
|
2007-01-15 23:12:29 +00:00
|
|
|
# documents
|
2012-01-24 16:35:22 +00:00
|
|
|
mkdir -p %{buildroot}%{_docdir}
|
2013-05-27 20:16:09 +00:00
|
|
|
mv %{buildroot}%{_datadir}/doc/%{name}-1.3.0pre4 %{buildroot}%{_docdir}/%{name}
|
2012-01-24 16:35:22 +00:00
|
|
|
cp -a AUTHORS README COPYING.* %{buildroot}%{_docdir}/%{name}
|
2010-12-08 18:44:09 +00:00
|
|
|
|
2012-12-09 13:37:52 +00:00
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
2011-11-20 08:40:13 +00:00
|
|
|
%post -n libFLAC8 -p /sbin/ldconfig
|
2007-06-07 11:13:45 +00:00
|
|
|
|
2011-11-20 08:40:13 +00:00
|
|
|
%postun -n libFLAC8 -p /sbin/ldconfig
|
2007-01-15 23:12:29 +00:00
|
|
|
|
2011-11-20 08:40:13 +00:00
|
|
|
%post -n libFLAC++6 -p /sbin/ldconfig
|
2007-06-07 11:13:45 +00:00
|
|
|
|
2011-11-20 08:40:13 +00:00
|
|
|
%postun -n libFLAC++6 -p /sbin/ldconfig
|
2007-01-15 23:12:29 +00:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%doc %{_docdir}/%{name}
|
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man*/*
|
|
|
|
|
2007-06-07 11:13:45 +00:00
|
|
|
%files -n libFLAC8
|
|
|
|
%defattr(-, root, root)
|
2007-12-17 11:44:25 +00:00
|
|
|
%{_libdir}/libFLAC.so.8*
|
2007-06-07 11:13:45 +00:00
|
|
|
|
|
|
|
%files -n libFLAC++6
|
2007-04-12 16:26:08 +00:00
|
|
|
%defattr(-, root, root)
|
2007-12-17 11:44:25 +00:00
|
|
|
%{_libdir}/libFLAC++.so.6*
|
2007-04-12 16:26:08 +00:00
|
|
|
|
2007-01-15 23:12:29 +00:00
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root)
|
|
|
|
%{_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
|
2007-12-17 11:44:25 +00:00
|
|
|
%exclude %{_libdir}/lib*.la
|
|
|
|
|
2007-04-12 16:26:08 +00:00
|
|
|
%changelog
|