Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37046592
en ru br
ALT Linux repos
S:0.7.4-alt9
5.0: 0.7.4-alt5
4.1: 0.7.4-alt5
4.0: 0.7.4-alt5
3.0: 0.7.4-alt3

Other repositories
Upstream:snapshot

Group :: Sound
RPM: a52dec

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define _name liba52

%def_disable static

Name: a52dec
Version: 0.7.4
Release: alt8

Summary: Library for decoding ATSC A/52 streams
Group: Sound
License: GPL
Url: http://%_name.sourceforge.net

Source: %url/files/%name-%version.tar.gz
Patch: a52dec-0.7.4-alt-DSO.patch
Requires: %_name = %version-%release

%if_enabled static
BuildRequires: glibc-devel-static
%endif

%description
liba52 is a free library for decoding ATSC A/52 streams. It is released
under the terms of the GPL license. The A/52 standard is used in a
variety of applications, including digital television and DVD. It is
also known as AC-3.

a52dec is a test program for liba52. It decodes ATSC A/52 streams, and
also includes a demultiplexer for mpeg-1 and mpeg-2 program streams.

%package -n %_name
Summary: %_name shared libraries
Group: System/Libraries

%description -n %_name
This package contains shared version of %_name.

%package -n %_name-devel
Summary: %_name header files and development libraries
Group: Development/C
Requires: %_name = %version-%release

%description -n %_name-devel
Header files and development libraries for %_name.

%if_enabled static
%package -n %_name-devel-static
Summary: %_name static libraries
Group: Development/C
Requires: %_name-devel = %version-%release

%description -n %_name-devel-static
Static version of %_name libraries.
%endif

%prep
%setup
%patch -p2

%build
%add_optflags %optflags_shared

%autoreconf
%configure \
--enable-shared \
%{subst_enable static}

%make_build

%install
%makeinstall

# remove non-packaged files

rm -f %buildroot%_libdir/*.la

%files
%_bindir/*
%_man1dir/*
%doc README ChangeLog AUTHORS HISTORY TODO

%files -n %_name
%_libdir/*.so.*

%files -n %_name-devel
%_includedir/*
%_libdir/*.so
%doc doc/%_name.txt

%if_enabled static
%files -n %_name-devel-static
%_libdir/*.a
%endif

%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin