]>
Commit | Line | Data |
---|---|---|
9ff462c7 JB |
1 | # TODO: |
2 | # - mediaServer should have init-scripts, user, etc, etc... | |
32fd5524 JB |
3 | # - package test apps (?) |
4 | # | |
5 | # Conditional build: | |
6 | %bcond_without static_libs # static libraries | |
7 | ||
fe23064d JB |
8 | Summary: LIVE555 streaming media server |
9 | Summary(pl.UTF-8): LIVE555 - serwer strumieni multimedialnych | |
fff7b9fc | 10 | Name: live |
3c352f7f | 11 | Version: 2017.07.18 |
257df1e3 | 12 | Release: 1 |
357826c0 | 13 | Epoch: 2 |
0eb9cb7c | 14 | License: LGPL v2.1+ |
daad9eff | 15 | Group: Applications/Multimedia |
767bfffd | 16 | Source0: http://www.live555.com/liveMedia/public/%{name}.%{version}.tar.gz |
3c352f7f | 17 | # Source0-md5: 890ee3a3ea7a1df5843df9f9429170d7 |
57b898d4 | 18 | Source1: http://www.live555.com/liveMedia/public/changelog.txt |
3c352f7f | 19 | # Source1-md5: eb8d093b4aacb6b91261378ee97d7a99 |
fe23064d | 20 | Patch0: %{name}-link.patch |
30dc04f0 AM |
21 | # from debian |
22 | Patch1: %{name}-pkgconfig.patch | |
767bfffd | 23 | URL: http://www.live555.com/liveMedia/ |
be100c98 | 24 | BuildRequires: libstdc++-devel |
25 | BuildRequires: sed >= 4.0 | |
9dd1fc5d | 26 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
fff7b9fc | 27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
28 | ||
1f653ac8 | 29 | %define specflags -fno-strict-aliasing |
a2d10620 JB |
30 | # circular symbol dependencies with libBasicUsageEnvironment |
31 | %define skip_post_check_so .*%{_libdir}/libUsageEnvironment\.so.* | |
45ee8107 | 32 | |
fff7b9fc | 33 | %description |
fe23064d | 34 | LIVE555 streaming media server. |
c855b1af | 35 | |
9f4ccf7a | 36 | %description -l pl.UTF-8 |
fe23064d | 37 | LIVE555 - serwer strumieni multimedialnych. |
fff7b9fc | 38 | |
1f653ac8 | 39 | %package libs |
011ec5da | 40 | Summary: Shared LIVE555 libraries for streaming media |
fe23064d JB |
41 | Summary(pl.UTF-8): Biblioteki współdzielone LIVE555 do strumieni multimedialnych |
42 | Group: Libraries | |
1f653ac8 PG |
43 | |
44 | %description libs | |
9dd1fc5d | 45 | Shared LIVE555 libraries for streaming media. |
1f653ac8 | 46 | |
fe23064d JB |
47 | %description libs -l pl.UTF-8 |
48 | Biblioteki współdzielone LIVE555 do strumieni multimedialnych. | |
49 | ||
e8f768dc | 50 | %package devel |
011ec5da ER |
51 | Summary: Header files for developing programs using LIVE555 |
52 | Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki LIVE555 | |
53 | Group: Development/Libraries | |
54 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
fe23064d | 55 | Requires: libstdc++-devel |
011ec5da | 56 | Obsoletes: live < 2:2009.07.09-2.5 |
e8f768dc PG |
57 | |
58 | %description devel | |
59 | Header files for developing programs using LIVE555. | |
60 | ||
61 | %description devel -l pl.UTF-8 | |
62 | Pliki nagłówkowe do biblioteki LIVE555 | |
63 | ||
64 | %package static | |
fe23064d JB |
65 | Summary: Static LIVE555 libraries for streaming media |
66 | Summary(pl.UTF-8): Biblioteki statyczne LIVE555 do strumieni multimedialnych | |
011ec5da ER |
67 | Group: Development/Libraries |
68 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
e8f768dc PG |
69 | |
70 | %description static | |
fe23064d | 71 | Static LIVE555 libraries for streaming media. |
e8f768dc PG |
72 | |
73 | %description static -l pl.UTF-8 | |
fe23064d | 74 | Biblioteki statyczne LIVE555 do strumieni multimedialnych. |
e8f768dc | 75 | |
011ec5da | 76 | %prep |
32fd5524 | 77 | %setup -q -c |
fe23064d | 78 | %patch0 -p0 |
30dc04f0 AM |
79 | cd live |
80 | %patch1 -p1 | |
81 | cd .. | |
32fd5524 JB |
82 | |
83 | # disable building test programs | |
84 | %{__sed} -i -e '/cd \$(TESTPROGS_DIR)/d' live/Makefile.tail | |
85 | ||
86 | # out-of-source builds not supported, so clone sources for shared and static build | |
87 | %if %{with static_libs} | |
88 | cp -pPR live live-static | |
89 | %endif | |
90 | %{__mv} live live-shared | |
91 | ||
fe23064d | 92 | cp -af %{SOURCE1} ChangeLog.txt |
22b1675a | 93 | |
fff7b9fc | 94 | %build |
32fd5524 JB |
95 | %if %{with static_libs} |
96 | cd live-static | |
fff7b9fc | 97 | ./genMakefiles linux |
22b1675a JB |
98 | %{__make} \ |
99 | C_COMPILER="%{__cc}" \ | |
100 | CPLUSPLUS_COMPILER="%{__cxx}" \ | |
32fd5524 JB |
101 | CPPFLAGS="%{rpmcppflags}" \ |
102 | CFLAGS="%{rpmcflags} -fPIC" \ | |
103 | CXXFLAGS="%{rpmcxxflags} -fPIC" | |
104 | cd .. | |
105 | %endif | |
fff7b9fc | 106 | |
32fd5524 JB |
107 | cd live-shared |
108 | ./genMakefiles linux-with-shared-libraries | |
e8f768dc | 109 | %{__make} \ |
b8c94401 JB |
110 | C_COMPILER="%{__cc}" \ |
111 | CPLUSPLUS_COMPILER="%{__cxx}" \ | |
32fd5524 JB |
112 | CPPFLAGS="%{rpmcppflags}" \ |
113 | CFLAGS="%{rpmcflags}" \ | |
114 | CXXFLAGS="%{rpmcxxflags}" \ | |
115 | LIBRARY_LINK="%{__cxx} -o" | |
e8f768dc | 116 | |
fff7b9fc | 117 | %install |
118 | rm -rf $RPM_BUILD_ROOT | |
c855b1af | 119 | |
32fd5524 JB |
120 | %if %{with static_libs} |
121 | # static first so that binaries will be overwritten by shared version | |
122 | %{__make} -C live-static install \ | |
123 | PREFIX=%{_prefix} \ | |
30dc04f0 AM |
124 | LIBDIR=%{_libdir} \ |
125 | DESTDIR=$RPM_BUILD_ROOT | |
32fd5524 JB |
126 | %endif |
127 | ||
128 | %{__make} -C live-shared install \ | |
129 | PREFIX=%{_prefix} \ | |
130 | LIBDIR=%{_libdir} \ | |
131 | DESTDIR=$RPM_BUILD_ROOT | |
132 | ||
fff7b9fc | 133 | %clean |
134 | rm -rf $RPM_BUILD_ROOT | |
135 | ||
fe23064d JB |
136 | %post libs -p /sbin/ldconfig |
137 | %postun libs -p /sbin/ldconfig | |
e8f768dc | 138 | |
fff7b9fc | 139 | %files |
140 | %defattr(644,root,root,755) | |
9dd1fc5d | 141 | %attr(755,root,root) %{_bindir}/live555MediaServer |
32fd5524 | 142 | %attr(755,root,root) %{_bindir}/live555ProxyServer |
1f653ac8 PG |
143 | |
144 | %files libs | |
145 | %defattr(644,root,root,755) | |
32fd5524 JB |
146 | %attr(755,root,root) %{_libdir}/libBasicUsageEnvironment.so.*.*.* |
147 | %attr(755,root,root) %ghost %{_libdir}/libBasicUsageEnvironment.so.1 | |
148 | %attr(755,root,root) %{_libdir}/libUsageEnvironment.so.*.*.* | |
149 | %attr(755,root,root) %ghost %{_libdir}/libUsageEnvironment.so.3 | |
150 | %attr(755,root,root) %{_libdir}/libgroupsock.so.*.*.* | |
151 | %attr(755,root,root) %ghost %{_libdir}/libgroupsock.so.8 | |
152 | %attr(755,root,root) %{_libdir}/libliveMedia.so.*.*.* | |
153 | %attr(755,root,root) %ghost %{_libdir}/libliveMedia.so.58 | |
e8f768dc PG |
154 | |
155 | %files devel | |
156 | %defattr(644,root,root,755) | |
57b898d4 | 157 | %doc ChangeLog.txt |
2deb76aa AM |
158 | %attr(755,root,root) %{_libdir}/libBasicUsageEnvironment.so |
159 | %attr(755,root,root) %{_libdir}/libUsageEnvironment.so | |
160 | %attr(755,root,root) %{_libdir}/libgroupsock.so | |
161 | %attr(755,root,root) %{_libdir}/libliveMedia.so | |
32fd5524 JB |
162 | %{_includedir}/BasicUsageEnvironment |
163 | %{_includedir}/UsageEnvironment | |
164 | %{_includedir}/groupsock | |
fe23064d | 165 | %{_includedir}/liveMedia |
30dc04f0 | 166 | %{_pkgconfigdir}/live555.pc |
e8f768dc | 167 | |
32fd5524 | 168 | %if %{with static_libs} |
e8f768dc PG |
169 | %files static |
170 | %defattr(644,root,root,755) | |
9dd1fc5d PG |
171 | %{_libdir}/libBasicUsageEnvironment.a |
172 | %{_libdir}/libUsageEnvironment.a | |
173 | %{_libdir}/libgroupsock.a | |
174 | %{_libdir}/libliveMedia.a | |
32fd5524 | 175 | %endif |