Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37701808
en ru br
ALT Linux repos
S:2.4.6-alt2
5.0: 2.2.2-alt1
4.1: 2.2.2-alt1
4.0: 2.2.2-alt1
3.0: 2.1-alt1.1

Group :: System/Libraries
RPM: libshout2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%def_without static
%define shortname libshout

Name: libshout2
Version: 2.2.2
Release: alt1

Summary: libshout - icecast source streaming library
Group: System/Libraries
License: LGPL
Url: http://www.icecast.org
Packager: Pavlov Konstantin <thresh at altlinux.ru>

Source: %shortname-%version.tar.gz

%if_with static
BuildRequires: glibc-devel-static
%endif
BuildRequires: libogg-devel libvorbis-devel libtheora-devel libspeex-devel

%description
Libshout is a library for communicating with and sending data to an
icecast server. It handles the socket connection, the timing of the
data, and prevents most bad data from getting to the icecast server.

%package devel
Summary: icecast2 source streaming library development package
Group: Development/C
Requires: %name = %version-%release

%description devel
The libshout2-devel package contains the header files needed for developing
applications that send data to an icecast2 server. Install libshout2-devel if
you want to develop applications using libshout2.

%package devel-static
Summary: icecast2 static library
Group: Development/C
Requires: %name-devel = %version-%release

%description devel-static
This package contains static version of libshout2 library. Install
libshout2-devel-static if you want to develop applications statically linked
with libshout2.

%prep
%setup -q -n %shortname-%version

%build
%__autoreconf
%configure \
--includedir=/usr/include/shout2 \
--oldincludedir=/usr/include/shout2

%make_build

%install
%make_install DESTDIR=%buildroot install

# remove non-packaged files

rm -f %buildroot%_libdir/*.la
%if_without static
rm -f %buildroot%_libdir/*.a
%endif

mv %buildroot%_datadir/doc/libshout %buildroot%_datadir/doc/%name-%version

%post -p %post_ldconfig
%postun -p %postun_ldconfig

%files
%_libdir/*.so.*
%doc %_datadir/doc/*

%files devel
%_includedir/*
%_libdir/*.so
%_libdir/pkgconfig/*
%_datadir/aclocal/*

%if_with static
%files 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