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