3 %bcond_without tests # do not perform "make test"
5 %include /usr/lib/rpm/macros.perl
6 Summary: Shout - Perl glue for libshout streaming source library
7 Summary(pl.UTF-8): Shout - perlowy interfejs do biblioteki strumieni libshout
12 Group: Development/Languages/Perl
13 Source0: http://downloads.xiph.org/releases/libshout/Shout-%{version}.tar.gz
14 # Source0-md5: 7171eb8f9e60d6c5cc6c469ba0f32dc9
15 URL: http://icecast.org/
16 BuildRequires: libshout-devel >= 2.1
17 BuildRequires: perl-devel >= 1:5.8.0
18 BuildRequires: pkgconfig
19 BuildRequires: rpm-perlprov >= 4.1-13
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 This module is an object-oriented interface to libshout, an Ogg Vorbis
24 and MP3 streaming library that allows applications to easily
25 communicate and broadcast to an Icecast streaming media server. It
26 handles the socket connections, metadata communication, and data
27 streaming for the calling application, and lets developers focus on
28 feature sets instead of implementation details.
30 %description -l pl.UTF-8
31 Ten moduł jest zorientowanym obiektowo interfejsem do libshout -
32 biblioteki strumieni Ogg Vorbis i MP3 umożliwiającej aplikacjom łatwe
33 komunikowanie się i rozgłaszanie do serwera strumieni multimedialnych
34 Icecast. Obsługuje połączenia przez gniazda, komunikację z metadanymi,
35 strumienie danych dla aplikacji wywołującej oraz pozwala programistom
36 skupić się na możliwościach zamiast szczegółach implementacji.
39 %setup -q -n Shout-%{version}
42 %{__perl} Makefile.PL \
47 OPTIMIZE="%{rpmcflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
49 %{?with_tests:%{__make} test}
52 rm -rf $RPM_BUILD_ROOT
55 DESTDIR=$RPM_BUILD_ROOT
57 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
58 install example*.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
61 rm -rf $RPM_BUILD_ROOT
64 %defattr(644,root,root,755)
66 %{perl_vendorarch}/Shout.pm
67 %dir %{perl_vendorarch}/auto/Shout
68 %{perl_vendorarch}/auto/Shout/autosplit.ix
69 %attr(755,root,root) %{perl_vendorarch}/auto/Shout/Shout.so
70 %{_examplesdir}/%{name}-%{version}
71 %{_mandir}/man3/Shout.3*