Репозиторий Sisyphus
Последнее обновление: 17 октября 2019 | Пакетов: 17500 | Посещений: 15287855
en ru br
Репозитории ALT
S:1.3.2-alt2
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
%def_with xmms

%set_verify_elf_method textrel=relaxed

Name: flac
Version: 1.3.2
Release: alt1

Summary: Free Lossless Audio Codec
License: GPLv2+
Group: Sound
Url: https://xiph.org/flac/download.html
Source: %name-%version.tar
Patch: %name-%version-%release.patch

Requires: lib%name%soversion = %version-%release

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

%ifarch %ix86 x86_64
#BuildRequires: nasm
%endif

# Automatically added by buildreq on Fri Mar 25 2011

BuildRequires: docbook-utils doxygen gcc-c++ libogg-devel
%{?_with_xmms:BuildRequires: libxmms-devel}

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

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

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

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

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

%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.

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

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

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

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

%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.

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

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

%prep
%setup
%patch -p1

%build
touch config.rpath
%autoreconf
%configure \
%{?!_with_bootstrap:--enable-exhaustive-tests} \
%{subst_enable static} \
%{?!_with_xmms:--disable-xmms-plugin}
%make_build

%install
%makeinstall %{?_with_xmms:xmmsinputplugindir=%buildroot%xmms_inputdir}
install -pm644 COPYING.Xiph AUTHORS README %buildroot%flacdocs/

%check
%make_build -k check

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

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

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

%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

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

# TODO: 1.3.2+


%changelog

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin