]> git.pld-linux.org Git - SPECS.git/blob - libshout.spec
SPECS updated Sun 1 Aug 15:50:02 CEST 2021
[SPECS.git] / libshout.spec
1 #
2 # Conditional build:
3 %bcond_without  static_libs     # don't build static libraries
4 #
5 Summary:        libshout - icecast source streaming library
6 Summary(pl.UTF-8):      Biblioteka źródeł strumieni icecast
7 Name:           libshout
8 Version:        2.4.5
9 Release:        1
10 License:        LGPL v2+
11 Group:          Libraries
12 Source0:        https://downloads.xiph.org/releases/libshout/%{name}-%{version}.tar.gz
13 # Source0-md5:  f77083cf790386297d86536b76a88b1c
14 URL:            http://www.icecast.org/
15 BuildRequires:  autoconf >= 2.54
16 BuildRequires:  automake
17 BuildRequires:  libtool
18 BuildRequires:  libogg-devel
19 BuildRequires:  libtheora-devel
20 BuildRequires:  libvorbis-devel
21 BuildRequires:  openssl-devel
22 BuildRequires:  pkgconfig
23 BuildRequires:  speex-devel
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %description
27 Libshout is a library for communicating with and sending data to an
28 icecast server. It handles the socket connection, the timing of the
29 data, and prevents most bad data from getting to the icecast server.
30
31 %description -l pl.UTF-8
32 libshout to biblioteka do komunikowania się z i wysyłania danych do
33 serwera icecast. Obsługuje połączenia, czasy danych i zapobiega
34 dotarciu większości złych danych do serwera icecast.
35
36 %package devel
37 Summary:        Icecast source streaming library development package
38 Summary(pl.UTF-8):      Pakiet dla programistów używających libshout
39 Group:          Development/Libraries
40 Requires:       %{name} = %{version}-%{release}
41 Requires:       libogg-devel
42 Requires:       libtheora-devel
43 Requires:       libvorbis-devel
44 Requires:       speex-devel
45
46 %description devel
47 The libshout-devel package contains the header files needed for
48 developing applications that send data to an icecast server. Install
49 libshout-devel if you want to develop applications using libshout.
50
51 %description devel -l pl.UTF-8
52 Ten pakiet zawiera pliki nagłówkowe potrzebne do tworzenia aplikacji
53 wysyłających dane do serwera icecast.
54
55 %package static
56 Summary:        Icecast source streaming static library
57 Summary(pl.UTF-8):      Statyczna biblioteka libshout
58 Group:          Development/Libraries
59 Requires:       %{name}-devel = %{version}-%{release}
60
61 %description static
62 Icecast source streaming static library.
63
64 %description static -l pl.UTF-8
65 Statyczna biblioteka libshout - źródeł strumieni icecast.
66
67 %prep
68 %setup -q
69
70 %build
71 %{__libtoolize}
72 %{__aclocal} -I m4
73 %{__autoconf}
74 %{__autoheader}
75 %{__automake}
76 %configure \
77         %{!?with_static_libs:--disable-static}
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82 install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
83
84 %{__make} install \
85         DESTDIR=$RPM_BUILD_ROOT
86
87 # obsoleted by pkg-config
88 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libshout.la
89 # ckport support is not maintained in PLD
90 %{__rm} -r $RPM_BUILD_ROOT%{_libdir}/ckport
91
92 cp -rf examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %post   -p /sbin/ldconfig
98 %postun -p /sbin/ldconfig
99
100 %files
101 %defattr(644,root,root,755)
102 %doc NEWS README
103 %attr(755,root,root) %{_bindir}/shout
104 %attr(755,root,root) %{_libdir}/libshout.so.*.*.*
105 %attr(755,root,root) %ghost %{_libdir}/libshout.so.3
106 %{_mandir}/man1/shout.1*
107
108 %files devel
109 %defattr(644,root,root,755)
110 %doc doc/libshout.xml
111 %attr(755,root,root) %{_libdir}/libshout.so
112 %{_includedir}/shout
113 %{_pkgconfigdir}/shout.pc
114 %{_aclocaldir}/shout.m4
115 %{_examplesdir}/%{name}-%{version}
116
117 %if %{with static_libs}
118 %files static
119 %defattr(644,root,root,755)
120 %{_libdir}/libshout.a
121 %endif
This page took 0.497473 seconds and 3 git commands to generate.