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