]>
Commit | Line | Data |
---|---|---|
fe23064d JB |
1 | Summary: LIVE555 streaming media server |
2 | Summary(pl.UTF-8): LIVE555 - serwer strumieni multimedialnych | |
fff7b9fc | 3 | Name: live |
fe23064d JB |
4 | Version: 2011.03.14 |
5 | Release: 1 | |
357826c0 | 6 | Epoch: 2 |
0eb9cb7c JB |
7 | License: LGPL v2.1+ |
8 | Group: Development/Libraries | |
767bfffd | 9 | Source0: http://www.live555.com/liveMedia/public/%{name}.%{version}.tar.gz |
fe23064d | 10 | # Source0-md5: ff65b2c598e970b4b6c8219a1811de00 |
57b898d4 | 11 | Source1: http://www.live555.com/liveMedia/public/changelog.txt |
fe23064d | 12 | # Source1-md5: 2a04b97d2dddb97ca9ab05e4777c13a0 |
e8f768dc | 13 | Source2: %{name}-shared.config |
fe23064d | 14 | Patch0: %{name}-link.patch |
767bfffd | 15 | URL: http://www.live555.com/liveMedia/ |
be100c98 | 16 | BuildRequires: libstdc++-devel |
17 | BuildRequires: sed >= 4.0 | |
9dd1fc5d | 18 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
fff7b9fc | 19 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
20 | ||
1f653ac8 PG |
21 | %define _livedir %{_libdir}/liveMedia |
22 | %define specflags -fno-strict-aliasing | |
23 | # Should be changed on every ABI change | |
24 | # Alexis Ballier <aballier@gentoo.org>: | |
25 | %define LIVE_ABI_VERSION 1 | |
45ee8107 | 26 | |
fff7b9fc | 27 | %description |
fe23064d | 28 | LIVE555 streaming media server. |
c855b1af | 29 | |
9f4ccf7a | 30 | %description -l pl.UTF-8 |
fe23064d | 31 | LIVE555 - serwer strumieni multimedialnych. |
fff7b9fc | 32 | |
1f653ac8 | 33 | %package libs |
011ec5da | 34 | Summary: Shared LIVE555 libraries for streaming media |
fe23064d JB |
35 | Summary(pl.UTF-8): Biblioteki współdzielone LIVE555 do strumieni multimedialnych |
36 | Group: Libraries | |
1f653ac8 PG |
37 | |
38 | %description libs | |
9dd1fc5d | 39 | Shared LIVE555 libraries for streaming media. |
1f653ac8 | 40 | |
fe23064d JB |
41 | %description libs -l pl.UTF-8 |
42 | Biblioteki współdzielone LIVE555 do strumieni multimedialnych. | |
43 | ||
e8f768dc | 44 | %package devel |
011ec5da ER |
45 | Summary: Header files for developing programs using LIVE555 |
46 | Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki LIVE555 | |
47 | Group: Development/Libraries | |
48 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
fe23064d | 49 | Requires: libstdc++-devel |
011ec5da | 50 | Obsoletes: live < 2:2009.07.09-2.5 |
e8f768dc PG |
51 | |
52 | %description devel | |
53 | Header files for developing programs using LIVE555. | |
54 | ||
55 | %description devel -l pl.UTF-8 | |
56 | Pliki nagłówkowe do biblioteki LIVE555 | |
57 | ||
58 | %package static | |
fe23064d JB |
59 | Summary: Static LIVE555 libraries for streaming media |
60 | Summary(pl.UTF-8): Biblioteki statyczne LIVE555 do strumieni multimedialnych | |
011ec5da ER |
61 | Group: Development/Libraries |
62 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
e8f768dc PG |
63 | |
64 | %description static | |
fe23064d | 65 | Static LIVE555 libraries for streaming media. |
e8f768dc PG |
66 | |
67 | %description static -l pl.UTF-8 | |
fe23064d | 68 | Biblioteki statyczne LIVE555 do strumieni multimedialnych. |
e8f768dc | 69 | |
011ec5da | 70 | %prep |
e8f768dc | 71 | %setup -q -c -n %{name} |
fe23064d | 72 | %patch0 -p0 |
e8f768dc PG |
73 | install %{SOURCE2} %{name}/config.linux-shared |
74 | cp -pPR %{name} %{name}-shared | |
75 | mv %{name} %{name}-static | |
fe23064d | 76 | cp -af %{SOURCE1} ChangeLog.txt |
22b1675a | 77 | |
fff7b9fc | 78 | %build |
e8f768dc | 79 | cd %{name}-static |
fff7b9fc | 80 | ./genMakefiles linux |
547015fd | 81 | sed -i -e 's#$(TESTPROGS_APP)##g' Makefile Makefile.tail |
22b1675a JB |
82 | %{__make} \ |
83 | C_COMPILER="%{__cc}" \ | |
84 | CPLUSPLUS_COMPILER="%{__cxx}" \ | |
2deb76aa | 85 | COMPILE_OPTS="\$(INCLUDES) -I. %{rpmcppflags} %{rpmcflags} -DSOCKLEN_T=socklen_t -fPIC" |
fff7b9fc | 86 | |
e8f768dc PG |
87 | cd ../%{name}-shared |
88 | ./genMakefiles linux-shared | |
89 | sed -i -e 's#$(TESTPROGS_APP)##g' Makefile Makefile.tail | |
90 | %{__make} \ | |
fe23064d JB |
91 | CC="%{__cc}" \ |
92 | CXX="%{__cxx}" \ | |
1f653ac8 | 93 | LIB_SUFFIX="so.%{LIVE_ABI_VERSION}" \ |
2deb76aa | 94 | COMPILE_OPTS="\$(INCLUDES) -I. %{rpmcppflags} %{rpmcflags} -DSOCKLEN_T=socklen_t" |
e8f768dc | 95 | |
fff7b9fc | 96 | %install |
97 | rm -rf $RPM_BUILD_ROOT | |
9dd1fc5d | 98 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/liveMedia,%{_bindir}} |
c855b1af | 99 | |
9dd1fc5d | 100 | for i in liveMedia groupsock UsageEnvironment BasicUsageEnvironment; do |
fe23064d JB |
101 | install -p %{name}-static/$i/lib$i.a $RPM_BUILD_ROOT%{_libdir} |
102 | install -p %{name}-shared/$i/lib$i.so.%{LIVE_ABI_VERSION} $RPM_BUILD_ROOT%{_libdir} | |
9dd1fc5d | 103 | ln -s lib$i.so.%{LIVE_ABI_VERSION} $RPM_BUILD_ROOT%{_libdir}/lib$i.so |
fe23064d | 104 | install -p %{name}-shared/$i/include/* $RPM_BUILD_ROOT%{_includedir}/liveMedia |
9dd1fc5d PG |
105 | done |
106 | ||
107 | # We provide shared version: | |
fe23064d | 108 | install -p %{name}-shared/mediaServer/live555MediaServer $RPM_BUILD_ROOT%{_bindir} |
57b898d4 | 109 | |
fff7b9fc | 110 | %clean |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
fe23064d JB |
113 | %post libs -p /sbin/ldconfig |
114 | %postun libs -p /sbin/ldconfig | |
e8f768dc | 115 | |
fff7b9fc | 116 | %files |
117 | %defattr(644,root,root,755) | |
9dd1fc5d | 118 | %attr(755,root,root) %{_bindir}/live555MediaServer |
1f653ac8 PG |
119 | |
120 | %files libs | |
121 | %defattr(644,root,root,755) | |
2deb76aa AM |
122 | %attr(755,root,root) %{_libdir}/libBasicUsageEnvironment.so.* |
123 | %attr(755,root,root) %{_libdir}/libUsageEnvironment.so.* | |
124 | %attr(755,root,root) %{_libdir}/libgroupsock.so.* | |
125 | %attr(755,root,root) %{_libdir}/libliveMedia.so.* | |
e8f768dc PG |
126 | |
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
57b898d4 | 129 | %doc ChangeLog.txt |
2deb76aa AM |
130 | %attr(755,root,root) %{_libdir}/libBasicUsageEnvironment.so |
131 | %attr(755,root,root) %{_libdir}/libUsageEnvironment.so | |
132 | %attr(755,root,root) %{_libdir}/libgroupsock.so | |
133 | %attr(755,root,root) %{_libdir}/libliveMedia.so | |
fe23064d | 134 | %{_includedir}/liveMedia |
e8f768dc PG |
135 | |
136 | %files static | |
137 | %defattr(644,root,root,755) | |
9dd1fc5d PG |
138 | %{_libdir}/libBasicUsageEnvironment.a |
139 | %{_libdir}/libUsageEnvironment.a | |
140 | %{_libdir}/libgroupsock.a | |
141 | %{_libdir}/libliveMedia.a |