]>
Commit | Line | Data |
---|---|---|
bdb2a94a JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without tests # do not perform "make test" | |
4 | # | |
bdb2a94a | 5 | Summary: Shout - Perl glue for libshout streaming source library |
be5f902e | 6 | Summary(pl.UTF-8): Shout - perlowy interfejs do biblioteki strumieni libshout |
bdb2a94a JB |
7 | Name: perl-Shout |
8 | Version: 2.1 | |
8c398476 | 9 | Release: 16 |
bdb2a94a JB |
10 | License: unknown |
11 | Group: Development/Languages/Perl | |
12 | Source0: http://downloads.xiph.org/releases/libshout/Shout-%{version}.tar.gz | |
13 | # Source0-md5: 7171eb8f9e60d6c5cc6c469ba0f32dc9 | |
14 | URL: http://icecast.org/ | |
15 | BuildRequires: libshout-devel >= 2.1 | |
16 | BuildRequires: perl-devel >= 1:5.8.0 | |
17 | BuildRequires: pkgconfig | |
18 | BuildRequires: rpm-perlprov >= 4.1-13 | |
19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
20 | ||
21 | %description | |
22 | This module is an object-oriented interface to libshout, an Ogg Vorbis | |
23 | and MP3 streaming library that allows applications to easily | |
24 | communicate and broadcast to an Icecast streaming media server. It | |
25 | handles the socket connections, metadata communication, and data | |
26 | streaming for the calling application, and lets developers focus on | |
27 | feature sets instead of implementation details. | |
28 | ||
30acec80 JR |
29 | %description -l pl.UTF-8 |
30 | Ten moduł jest zorientowanym obiektowo interfejsem do libshout - | |
31 | biblioteki strumieni Ogg Vorbis i MP3 umożliwiającej aplikacjom łatwe | |
32 | komunikowanie się i rozgłaszanie do serwera strumieni multimedialnych | |
33 | Icecast. Obsługuje połączenia przez gniazda, komunikację z metadanymi, | |
34 | strumienie danych dla aplikacji wywołującej oraz pozwala programistom | |
35 | skupić się na możliwościach zamiast szczegółach implementacji. | |
bdb2a94a JB |
36 | |
37 | %prep | |
38 | %setup -q -n Shout-%{version} | |
39 | ||
40 | %build | |
41 | %{__perl} Makefile.PL \ | |
42 | INSTALLDIRS=vendor | |
43 | ||
44 | %{__make} \ | |
fb621d69 | 45 | CC="%{__cc}" \ |
f9a0cb40 | 46 | OPTIMIZE="%{rpmcflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" |
bdb2a94a JB |
47 | |
48 | %{?with_tests:%{__make} test} | |
49 | ||
50 | %install | |
51 | rm -rf $RPM_BUILD_ROOT | |
52 | ||
53 | %{__make} install \ | |
54 | DESTDIR=$RPM_BUILD_ROOT | |
55 | ||
56 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
57 | install example*.pl $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
58 | ||
59 | %clean | |
60 | rm -rf $RPM_BUILD_ROOT | |
61 | ||
62 | %files | |
63 | %defattr(644,root,root,755) | |
64 | %doc Changes | |
65 | %{perl_vendorarch}/Shout.pm | |
66 | %dir %{perl_vendorarch}/auto/Shout | |
67 | %{perl_vendorarch}/auto/Shout/autosplit.ix | |
bdb2a94a JB |
68 | %attr(755,root,root) %{perl_vendorarch}/auto/Shout/Shout.so |
69 | %{_examplesdir}/%{name}-%{version} | |
70 | %{_mandir}/man3/Shout.3* |