]>
Commit | Line | Data |
---|---|---|
1 | Summary: LIVE555 for streaming media | |
2 | Summary(pl.UTF-8): LIVE555 do strumieni multimedialnych | |
3 | Name: live | |
4 | Version: 2009.07.09 | |
5 | Release: 3.2 | |
6 | Epoch: 2 | |
7 | License: LGPL v2.1+ | |
8 | Group: Development/Libraries | |
9 | Source0: http://www.live555.com/liveMedia/public/%{name}.%{version}.tar.gz | |
10 | # Source0-md5: 8085b7f75e55c91f15e96f375c80b9fb | |
11 | Source1: http://www.live555.com/liveMedia/public/changelog.txt | |
12 | # Source1-md5: 9f962afca5e55ae76b84ad8cb365d805 | |
13 | Source2: %{name}-shared.config | |
14 | URL: http://www.live555.com/liveMedia/ | |
15 | BuildRequires: libstdc++-devel | |
16 | BuildRequires: sed >= 4.0 | |
17 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
18 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
19 | ||
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 | |
25 | ||
26 | %description | |
27 | LIVE555 for streaming media. | |
28 | ||
29 | %description -l pl.UTF-8 | |
30 | LIVE555 do strumieni multimedialnych. | |
31 | ||
32 | %package libs | |
33 | Summary: Shared LIVE555 libraries for streaming media | |
34 | Group: Development/Libraries | |
35 | ||
36 | %description libs | |
37 | Shared LIVE555 libraries for streaming media. | |
38 | ||
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 | |
43 | Requires: %{name}-libs = %{epoch}:%{version}-%{release} | |
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 | |
55 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
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 | |
68 | ||
69 | %build | |
70 | cd %{name}-static | |
71 | ./genMakefiles linux | |
72 | sed -i -e 's#$(TESTPROGS_APP)##g' Makefile Makefile.tail | |
73 | %{__make} \ | |
74 | C_COMPILER="%{__cc}" \ | |
75 | CPLUSPLUS_COMPILER="%{__cxx}" \ | |
76 | COMPILE_OPTS="\$(INCLUDES) -I. %{rpmcflags} -DSOCKLEN_T=socklen_t -fPIC" | |
77 | ||
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}" \ | |
84 | LIB_SUFFIX="so.%{LIVE_ABI_VERSION}" \ | |
85 | COMPILE_OPTS="\$(INCLUDES) -I. %{rpmcflags} -DSOCKLEN_T=socklen_t" | |
86 | ||
87 | %install | |
88 | rm -rf $RPM_BUILD_ROOT | |
89 | install -d $RPM_BUILD_ROOT{%{_libdir},%{_includedir}/liveMedia,%{_bindir}} | |
90 | ||
91 | cd %{name}-static | |
92 | for i in liveMedia groupsock UsageEnvironment BasicUsageEnvironment; do | |
93 | install $i/lib$i.a $RPM_BUILD_ROOT%{_libdir} | |
94 | done | |
95 | ||
96 | cd ../%{name}-shared | |
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} | |
106 | ||
107 | cd .. | |
108 | install %{SOURCE1} ChangeLog.txt | |
109 | ||
110 | %clean | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %post libs -p /sbin/ldconfig | |
114 | %postun libs -p /sbin/ldconfig | |
115 | ||
116 | %files | |
117 | %defattr(644,root,root,755) | |
118 | %attr(755,root,root) %{_bindir}/live555MediaServer | |
119 | ||
120 | %files libs | |
121 | %defattr(644,root,root,755) | |
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* | |
126 | ||
127 | %files devel | |
128 | %defattr(644,root,root,755) | |
129 | %doc ChangeLog.txt | |
130 | %{_includedir}/liveMedia | |
131 | ||
132 | %files static | |
133 | %defattr(644,root,root,755) | |
134 | %{_libdir}/libBasicUsageEnvironment.a | |
135 | %{_libdir}/libUsageEnvironment.a | |
136 | %{_libdir}/libgroupsock.a | |
137 | %{_libdir}/libliveMedia.a |