Sisyphus
: 11 2020 | : 17700 | : 18865531
en ru br
ALT
S:1.3.3-alt1
5.1: 1.2.1-alt5
4.1: 1.2.1-alt2
4.0: 1.1.4-alt2
3.0: 1.1.2-alt2
www.altlinux.org/Changes

Upstream:1.2.1

::
: flac

             Sources      Gear   Bugs and FR  Repocop 

%define flacdocs %_docdir/%name-%version
%define soversion 8
%define cppsoversion 6

Name: flac
Version: 1.1.4
Release: alt2

Summary: Free Lossless Audio Codec
License: GPL
Group: Sound
Url: http://flac.sourceforge.net/
Packager: Pavlov Konstantin <thresh at altlinux.ru>
Source: %name-%version.tar.bz2

Requires: lib%name = %version-%release

%def_disable static
%{?_enable_static:BuildRequires: glibc-devel-static}

BuildRequires: docbook-utils doxygen gcc-c++ glib-devel gtk+-devel libogg-devel libstdc++-devel libxmms-devel nasm

%description
FLAC (%url) is an Open Source lossless audio codec.

%description -l ru_RU.CP1251
FLAC (%url) - ,
.

%package -n lib%name%soversion
Summary: FLAC shared library
Group: System/Libraries
License: BSD-like
Provides: lib%name = %version-%release

%description -n lib%name%soversion
The lib%name package contains a shared library of
functions for manipulating FLAC format audio files.

%description -n lib%name%soversion -l ru_RU.CP1251

FLAC.

%package -n lib%name-devel
Summary: Development files for FLAC
Group: Development/C
License: BSD-like
Requires: lib%name = %version-%release
Provides: liboggflac-devel = %version-%release
Obsoletes: liboggflac-devel < %version-%release
Requires: libogg-devel

%description -n lib%name-devel
This package contains development files required for packaging
FLAC-based software.

%description -n lib%name-devel -l ru_RU.CP1251
,
FLAC .

%package -n lib%name-devel-static
Summary: Static libraries for FLAC
Group: Development/C
License: BSD-like
Requires: lib%name-devel = %version-%release

%description -n lib%name-devel-static
This package contains development libraries required for packaging
statically linked FLAC-based software.

%description -n lib%name-devel-static -l ru_RU.CP1251
,
FLAC .

%package -n lib%name++%cppsoversion
Summary: Object shared library FLAC++
Group: System/Libraries
License: BSD-like
Provides: lib%name++ = %version-%release
Requires: lib%name = %version-%release

%description -n lib%name++%cppsoversion
The lib%name++%cppsoversion package contains a object wrapper library
of functions for manipulating FLAC format audio files.

%description -n lib%name++%cppsoversion -l ru_RU.CP1251

FLAC.

%package -n lib%name++-devel
Summary: Development files for FLAC++ library
Group: Development/C
License: BSD-like
Requires: lib%name++ = %version-%release
Requires: libstdc++-devel
Provides: liboggflac++-devel = %version-%release
Obsoletes: liboggflac++-devel < %version-%release

%description -n lib%name++-devel
This package contains development files required for packaging
FLAC++-based software.

%description -n lib%name++-devel -l ru_RU.CP1251
,
FLAC++ .

%package -n lib%name++-devel-static
Summary: Static libraries for FLAC++ library
Group: Development/C
License: BSD-like
Requires: lib%name++-devel = %version-%release

%description -n lib%name++-devel-static
This package contains development libraries required for packaging
statically linked FLAC++-based software.

%description -n lib%name++-devel-static -l ru_RU.CP1251
,
FLAC++ .

%package -n xmms-in-%name
Summary: Plugin for XMMS
Group: Sound
License: GPL
Provides: xmms-%name
Obsoletes: xmms-%name
Requires: lib%name = %version-%release

%description -n xmms-in-%name
Xmms plugin for playing FLAC files.

%description -n xmms-in-%name -l ru_RU.CP1251
FLAC XMMS.

%prep
%setup -q

%build
%__autoreconf
%configure --enable-exhaustive-tests %{subst_enable static}
%make

%install
%makeinstall xmmsinputplugindir=%buildroot%xmms_inputdir

install -m644 COPYING.Xiph AUTHORS README %buildroot%flacdocs

%post -n lib%name%soversion -p /sbin/ldconfig
%postun -n lib%name%soversion -p /sbin/ldconfig
%post -n lib%name++%cppsoversion -p /sbin/ldconfig
%postun -n lib%name++%cppsoversion -p /sbin/ldconfig

%files
%_bindir/*
%_mandir/man?/*
%flacdocs/html/*.html
%flacdocs/html/*.ico
%flacdocs/html/*.css
%flacdocs/html/ru
%flacdocs/html/images

%files -n lib%name%soversion
%_libdir/libFLAC.so.*
%dir %flacdocs
%dir %flacdocs/html
%flacdocs/AUTHORS
%flacdocs/README
%flacdocs/COPYING.Xiph

%files -n lib%name-devel
%_datadir/aclocal/libFLAC.m4
%_libdir/libFLAC.so
%_includedir/FLAC
%flacdocs/html/api
%flacdocs/FLAC.tag
%_pkgconfigdir/flac.pc

%if_enabled static
%files -n lib%name-devel-static
%_libdir/libFLAC.a
%endif

%files -n lib%name++%cppsoversion
%_libdir/libFLAC++.so.*

%files -n lib%name++-devel
%_datadir/aclocal/libFLAC++.m4
%_libdir/libFLAC++.so
%_includedir/FLAC++
%_pkgconfigdir/flac++.pc

%if_enabled static
%files -n lib%name++-devel-static
%_libdir/libFLAC++.a
%endif

%files -n xmms-in-%name
%_libdir/xmms/Input/*

%changelog

changelog

 
: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
: Michael Shigorin