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