]>
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 |
22ca2a6f JB |
11 | Version: 2022.02.07 |
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 |
22ca2a6f | 17 | # Source0-md5: f13a692cda8b83fe182f54c6f5ff1786 |
57b898d4 | 18 | Source1: http://www.live555.com/liveMedia/public/changelog.txt |
22ca2a6f | 19 | # Source1-md5: 08e9c518857afa362eb853b4353e4400 |
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 |
fa75e603 | 25 | BuildRequires: openssl-devel |
be100c98 | 26 | BuildRequires: sed >= 4.0 |
9dd1fc5d | 27 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} |
fff7b9fc | 28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
1f653ac8 | 30 | %define specflags -fno-strict-aliasing |
a2d10620 JB |
31 | # circular symbol dependencies with libBasicUsageEnvironment |
32 | %define skip_post_check_so .*%{_libdir}/libUsageEnvironment\.so.* | |
45ee8107 | 33 | |
fff7b9fc | 34 | %description |
fe23064d | 35 | LIVE555 streaming media server. |
c855b1af | 36 | |
9f4ccf7a | 37 | %description -l pl.UTF-8 |
fe23064d | 38 | LIVE555 - serwer strumieni multimedialnych. |
fff7b9fc | 39 | |
1f653ac8 | 40 | %package libs |
011ec5da | 41 | Summary: Shared LIVE555 libraries for streaming media |
fe23064d JB |
42 | Summary(pl.UTF-8): Biblioteki współdzielone LIVE555 do strumieni multimedialnych |
43 | Group: Libraries | |
1f653ac8 PG |
44 | |
45 | %description libs | |
9dd1fc5d | 46 | Shared LIVE555 libraries for streaming media. |
1f653ac8 | 47 | |
fe23064d JB |
48 | %description libs -l pl.UTF-8 |
49 | Biblioteki współdzielone LIVE555 do strumieni multimedialnych. | |
50 | ||
e8f768dc | 51 | %package devel |
011ec5da ER |
52 | Summary: Header files for developing programs using LIVE555 |
53 | Summary(pl.UTF-8): Pliki nagłówkowe do biblioteki LIVE555 | |
54 | Group: Development/Libraries | |
55 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
fe23064d | 56 | Requires: libstdc++-devel |
011ec5da | 57 | Obsoletes: live < 2:2009.07.09-2.5 |
e8f768dc PG |
58 | |
59 | %description devel | |
60 | Header files for developing programs using LIVE555. | |
61 | ||
62 | %description devel -l pl.UTF-8 | |
63 | Pliki nagłówkowe do biblioteki LIVE555 | |
64 | ||
65 | %package static | |
fe23064d JB |
66 | Summary: Static LIVE555 libraries for streaming media |
67 | Summary(pl.UTF-8): Biblioteki statyczne LIVE555 do strumieni multimedialnych | |
011ec5da ER |
68 | Group: Development/Libraries |
69 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
e8f768dc PG |
70 | |
71 | %description static | |
fe23064d | 72 | Static LIVE555 libraries for streaming media. |
e8f768dc PG |
73 | |
74 | %description static -l pl.UTF-8 | |
fe23064d | 75 | Biblioteki statyczne LIVE555 do strumieni multimedialnych. |
e8f768dc | 76 | |
011ec5da | 77 | %prep |
32fd5524 | 78 | %setup -q -c |
4e0e02bd | 79 | %patch0 -p1 |
30dc04f0 | 80 | %patch1 -p1 |
32fd5524 JB |
81 | |
82 | # disable building test programs | |
83 | %{__sed} -i -e '/cd \$(TESTPROGS_DIR)/d' live/Makefile.tail | |
84 | ||
85 | # out-of-source builds not supported, so clone sources for shared and static build | |
86 | %if %{with static_libs} | |
87 | cp -pPR live live-static | |
88 | %endif | |
89 | %{__mv} live live-shared | |
90 | ||
fe23064d | 91 | cp -af %{SOURCE1} ChangeLog.txt |
22b1675a | 92 | |
fff7b9fc | 93 | %build |
32fd5524 JB |
94 | %if %{with static_libs} |
95 | cd live-static | |
fff7b9fc | 96 | ./genMakefiles linux |
22b1675a JB |
97 | %{__make} \ |
98 | C_COMPILER="%{__cc}" \ | |
99 | CPLUSPLUS_COMPILER="%{__cxx}" \ | |
32fd5524 JB |
100 | CPPFLAGS="%{rpmcppflags}" \ |
101 | CFLAGS="%{rpmcflags} -fPIC" \ | |
102 | CXXFLAGS="%{rpmcxxflags} -fPIC" | |
103 | cd .. | |
104 | %endif | |
fff7b9fc | 105 | |
32fd5524 JB |
106 | cd live-shared |
107 | ./genMakefiles linux-with-shared-libraries | |
e8f768dc | 108 | %{__make} \ |
b8c94401 JB |
109 | C_COMPILER="%{__cc}" \ |
110 | CPLUSPLUS_COMPILER="%{__cxx}" \ | |
32fd5524 JB |
111 | CPPFLAGS="%{rpmcppflags}" \ |
112 | CFLAGS="%{rpmcflags}" \ | |
113 | CXXFLAGS="%{rpmcxxflags}" \ | |
114 | LIBRARY_LINK="%{__cxx} -o" | |
e8f768dc | 115 | |
fff7b9fc | 116 | %install |
117 | rm -rf $RPM_BUILD_ROOT | |
c855b1af | 118 | |
32fd5524 JB |
119 | %if %{with static_libs} |
120 | # static first so that binaries will be overwritten by shared version | |
121 | %{__make} -C live-static install \ | |
122 | PREFIX=%{_prefix} \ | |
30dc04f0 AM |
123 | LIBDIR=%{_libdir} \ |
124 | DESTDIR=$RPM_BUILD_ROOT | |
32fd5524 JB |
125 | %endif |
126 | ||
127 | %{__make} -C live-shared install \ | |
128 | PREFIX=%{_prefix} \ | |
129 | LIBDIR=%{_libdir} \ | |
130 | DESTDIR=$RPM_BUILD_ROOT | |
131 | ||
fff7b9fc | 132 | %clean |
133 | rm -rf $RPM_BUILD_ROOT | |
134 | ||
fe23064d JB |
135 | %post libs -p /sbin/ldconfig |
136 | %postun libs -p /sbin/ldconfig | |
e8f768dc | 137 | |
fff7b9fc | 138 | %files |
139 | %defattr(644,root,root,755) | |
fa75e603 | 140 | %attr(755,root,root) %{_bindir}/live555HLSProxy |
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.*.*.* | |
51445b36 | 151 | %attr(755,root,root) %ghost %{_libdir}/libgroupsock.so.30 |
32fd5524 | 152 | %attr(755,root,root) %{_libdir}/libliveMedia.so.*.*.* |
22ca2a6f | 153 | %attr(755,root,root) %ghost %{_libdir}/libliveMedia.so.106 |
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 |