]>
Commit | Line | Data |
---|---|---|
1d56511d ER |
1 | # TODO |
2 | # - merge dstreamserv.spec | |
2d53a2fb ER |
3 | Summary: Darwin Streaming Server |
4 | Name: dss | |
5 | Version: 6.0.3 | |
44d6eb04 | 6 | Release: 0.6 |
2d53a2fb | 7 | License: Apple Public Source License |
44d6eb04 | 8 | Group: Networking/Daemons |
2d53a2fb ER |
9 | Source0: http://dss.macosforge.org/downloads/DarwinStreamingSrvr%{version}-Source.tar |
10 | # Source0-md5: ca676691db8417d05121699c0ca3d549 | |
720b962c ER |
11 | Patch0: %{name}.patch |
12 | Patch1: %{name}-x86_64.patch | |
c08547c4 ER |
13 | Patch2: optflags.patch |
14 | Patch3: compile.patch | |
1a100897 | 15 | Source1: %{name}.init |
2d53a2fb | 16 | URL: http://dss.macosforge.org/ |
1a100897 ER |
17 | BuildRequires: rpmbuild(macros) >= 1.228 |
18 | Requires(post,preun): /sbin/chkconfig | |
1d56511d ER |
19 | Requires(postun): /usr/sbin/groupdel |
20 | Requires(postun): /usr/sbin/userdel | |
21 | Requires(pre): /bin/id | |
22 | Requires(pre): /usr/bin/getgid | |
23 | Requires(pre): /usr/sbin/groupadd | |
24 | Requires(pre): /usr/sbin/useradd | |
1a100897 | 25 | Requires: rc-scripts |
1d56511d ER |
26 | Provides: group(qtss) |
27 | Provides: user(qtss) | |
44d6eb04 ER |
28 | Obsoletes: DSS |
29 | Obsoletes: dstreamserv | |
30 | Obsoletes: dstreamsrv | |
2d53a2fb ER |
31 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
32 | ||
33 | %description | |
34 | Darwin Streaming Server lets you stream digital video on the Internet | |
35 | using industry-standard Internet protocols RTP and RTSP. | |
36 | ||
37 | Using Darwin Streaming Server you can serve stored files (video on | |
38 | demand) or reflect live broadcasts to thousands of QuickTime 4 or | |
39 | later users. With its combination of industry-standard streaming | |
40 | protocols and cutting-edge compression technologies, QuickTime | |
41 | delivers perfectly synchronized audio and video streams ideal for | |
42 | Internet video and live events. | |
43 | ||
44d6eb04 ER |
44 | %description -l pl.UTF-8 |
45 | Serwer strumieni pozwala wysyłać strumienie danych QuickTime do | |
46 | klientów w Internecie przy użyciu protokołów RTP i RTSP. | |
47 | ||
2d53a2fb ER |
48 | %package Proxy |
49 | Summary: Apple's Darwin Streaming Proxy | |
50 | Group: Daemons | |
51 | ||
52 | %description Proxy | |
53 | The Darwin Streaming Proxy is an application specific proxy which | |
54 | would normally be run in a border zone or perimeter network. It is | |
55 | used to give client machines within a protected network access to | |
56 | streaming servers outside that network, in the case when the firewall | |
57 | blocks RTSP connections or RTP/UDP data flow. The firewall perimeter | |
58 | network is usually configured to allow: | |
59 | ||
60 | - RTSP connections from within the network, as long as the destination | |
61 | is the proxy | |
62 | ||
63 | - RTSP connections to outside the network, as long as the source is | |
64 | the proxy | |
65 | ||
66 | - RTP datagrams to and from the proxy to the inner network | |
67 | ||
68 | - RTP datagrams to and from the proxy to the outside | |
69 | ||
70 | %package Utils | |
71 | Summary: Apple's Darwin Streaming Server Movie inspection utilities | |
44d6eb04 | 72 | Group: Applications |
2d53a2fb ER |
73 | |
74 | %description Utils | |
75 | - QTBroadcaster Requires a target ip address, a source movie, one or | |
76 | more source hint track ids in movie, and an initial port. Every packet | |
77 | referenced by the hint track(s) is broadcasted to the specified ip | |
78 | address. | |
79 | ||
80 | - QTFileInfo Requires a movie name. Displays each track id, name, | |
81 | create date, and mod date. If the track is a hint track, additional | |
82 | information is displayed: the total rtp bytes and packets, the average | |
83 | bit rate and packet size, and the total header percentage of the | |
84 | stream. | |
85 | ||
86 | - QTFileTest Requires a movie name. Parses the Movie Header Atom and | |
87 | displays a trace of the output. | |
88 | ||
89 | - QTRTPFileTest Requires a movie and a hint track id in the movie. | |
90 | Displays the RTP header (TransmitTime, Cookie, SeqNum, and TimeStamp) | |
91 | for each packet. | |
92 | ||
93 | - QTRTPGen Requires a movie and a hint track id. Displays the number | |
94 | of packets in each hint track sample and writes the RTP packets to | |
95 | file "track.cache" | |
96 | ||
97 | - QTSampleLister Requires a movie and a track id. Displays track media | |
98 | sample number, media time, Data offset, and sample size for each | |
99 | sample in the track. | |
100 | ||
101 | - QTSDPGen Requires a list of 1 or more movies. Displays the SDP | |
102 | information for all of the hinted tracks in each movie. Use -f to save | |
103 | the SDP information to the file [movie].sdp in the same directory as | |
104 | the source movie. | |
105 | ||
106 | - QTTrackInfo Requires a movie, sample table atom type, and track id. | |
107 | Displays the information in the sample table atom of the specified | |
108 | track. Supports "stco", "stsc", "stsz", "stts" as the atom type. | |
109 | ||
110 | Example: "./QTTrackInfo -T stco /movies/mystery.mov 3" dumps the chunk | |
111 | offset sample table in track 3. | |
112 | ||
113 | - StreamingLoadTool | |
114 | ||
1d56511d ER |
115 | %package samples |
116 | Summary: Darwin Streaming Server - samples | |
117 | Summary(pl.UTF-8): Przykłady do Darwin Streaming Servera | |
118 | Group: Networking/Daemons | |
44d6eb04 | 119 | Obsoletes: dstreamserv-samples |
1d56511d ER |
120 | |
121 | %description samples | |
122 | Sample files for Streaming Server. | |
2d53a2fb | 123 | |
1d56511d ER |
124 | %description samples -l pl.UTF-8 |
125 | Przykładowe pliki do Darwin Streaming Servera. | |
2d53a2fb ER |
126 | |
127 | %prep | |
128 | %setup -q -n DarwinStreamingSrvr%{version}-Source | |
720b962c ER |
129 | %patch0 -p1 |
130 | %patch1 -p1 | |
c08547c4 ER |
131 | %patch2 -p1 |
132 | %patch3 -p1 | |
2d53a2fb ER |
133 | |
134 | # patch streamingadminserver.pl | |
7922b313 ER |
135 | %{__sed} -i.bak -e ' |
136 | s|/''usr/local/movies|%{_localstatedir}/lib/%{name}/movies|g | |
137 | s|/''usr/local/sbin/StreamingServerModules|%{_libdir}/%{name}/|g | |
138 | s|/''usr/local/|%{_prefix}/|g | |
1a100897 | 139 | s|/''etc/streaming|%{_sysconfdir}/%{name}|g |
44d6eb04 | 140 | s|/var/streaming/AdminHtml|%{_datadir}/%{name}/AdminHtml|g |
9c8bf5ea | 141 | s|/var/streaming/logs|%{_localstatedir}/log/%{name}|g |
7922b313 ER |
142 | s|/var/streaming/|%{_localstatedir}/lib/%{name}/|g |
143 | ' DSS_MakeRoot streamingserver.xml-POSIX \ | |
144 | WebAdmin/src/streamingadminserver.pl \ | |
145 | WebAdmin/WebAdminHtml/adminprotocol-lib.pl | |
2d53a2fb ER |
146 | |
147 | # patch manpages | |
7922b313 ER |
148 | %{__sed} -i -e ' |
149 | s|/Library/QuickTimeStreaming/Config/|%{_sysconfdir}/%{name}/|g | |
150 | s|/Library/QuickTimeStreaming/Modules|%{_libdir}/%{name}|g | |
151 | s|/Library/QuickTimeStreaming/Movies|%{_localstatedir}/lib/%{name}/movies|g | |
152 | s|/Library/QuickTimeStreaming/Playlists|%{_localstatedir}/lib/%{name}/playlists|g | |
153 | s|/Library/QuickTimeStreaming/Logs|%{_localstatedir}/log/%{name}|g | |
154 | s|/Library/QuickTimeStreaming/Docs|%{_docdir}/%{name}-%{version}|g | |
155 | s|QuickTimeStreamingServer|DarwinStreamingServer|g | |
156 | ' Documentation/man/qtss/* | |
157 | ||
158 | cat > defaultPaths.h << 'EOF' | |
2d53a2fb | 159 | #define DEFAULTPATHS_DIRECTORY_SEPARATOR "/" |
7922b313 ER |
160 | #define DEFAULTPATHS_ROOT_DIR "%{_localstatedir}/lib/%{name}/" |
161 | #define DEFAULTPATHS_ETC_DIR "%{_sysconfdir}/%{name}/" | |
2d53a2fb | 162 | #define DEFAULTPATHS_ETC_DIR_OLD "%{_sysconfdir}/" |
7922b313 ER |
163 | #define DEFAULTPATHS_SSM_DIR "%{_libdir}/%{name}/" |
164 | #define DEFAULTPATHS_LOG_DIR "%{_localstatedir}/log/%{name}/" | |
2d53a2fb | 165 | #define DEFAULTPATHS_PID_DIR "%{_localstatedir}/run/" |
7922b313 | 166 | #define DEFAULTPATHS_MOVIES_DIR "%{_localstatedir}/lib/%{name}/movies/" |
2d53a2fb ER |
167 | EOF |
168 | ||
169 | %build | |
170 | export RPM_OPT_FLAGS="%{rpmcflags}" | |
171 | export ARCH="%{_target_cpu}" | |
172 | export CC="%{__cc}" | |
173 | export CXX="%{__cxx}" | |
174 | ||
175 | jobs=$(echo %{_smp_mflags} | cut -dj -f2) | |
176 | ./Buildit ${jobs:+--jobs=$jobs} | |
177 | ||
178 | %install | |
179 | rm -rf $RPM_BUILD_ROOT | |
9c8bf5ea | 180 | install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/lib/%{name}} |
2d53a2fb ER |
181 | ./DSS_MakeRoot \ |
182 | $RPM_BUILD_ROOT | |
183 | ||
1a100897 ER |
184 | install -p %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name} |
185 | ||
7922b313 ER |
186 | # Create our default admin user and remove Apple's |
187 | # Default login is root/pld -- please change it! | |
188 | qtpasswd="\ | |
189 | $RPM_BUILD_ROOT%{_bindir}/qtpasswd \ | |
190 | -f $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/qtusers | |
191 | -g $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/qtgroups" | |
192 | $qtpasswd root -p pld -A admin | |
193 | $qtpasswd -F -d 'aGFja21l' | |
194 | ||
195 | mv $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/relayconfig.xml{-Sample,} | |
196 | rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/streamingserver.xml-sample | |
197 | ||
198 | rm $RPM_BUILD_ROOT/var/lib/%{name}/3rdPartyAcknowledgements.rtf | |
199 | rm $RPM_BUILD_ROOT/var/lib/%{name}/readme.txt | |
200 | ||
2d53a2fb ER |
201 | %clean |
202 | rm -rf $RPM_BUILD_ROOT | |
203 | ||
1d56511d ER |
204 | %pre |
205 | %groupadd -f -g 148 qtss | |
206 | %useradd -g qtss -d /tmp -u 148 -s /bin/false qtss | |
207 | ||
1a100897 ER |
208 | %post |
209 | /sbin/chkconfig --add %{name} | |
210 | %service %{name} restart | |
211 | ||
212 | %preun | |
213 | if [ "$1" = "0" ]; then | |
214 | %service -q %{name} stop | |
215 | /sbin/chkconfig --del %{name} | |
216 | fi | |
217 | ||
1d56511d ER |
218 | %postun |
219 | if [ "$1" = "0" ]; then | |
220 | %userremove qtss | |
221 | %groupremove qtss | |
222 | fi | |
223 | ||
2d53a2fb ER |
224 | %files |
225 | %defattr(644,root,root,755) | |
226 | %doc APPLE_LICENSE ReleaseNotes.txt | |
7922b313 ER |
227 | %doc Documentation/3rdPartyAcknowledgements.rtf |
228 | %doc Documentation/AboutQTFileTools.html | |
229 | %doc Documentation/AboutTheSource.html | |
230 | %doc Documentation/admin-protocol-README.txt | |
231 | %doc Documentation/CachingProxyProtocol-README.txt | |
232 | %doc Documentation/DevNotes.html | |
233 | %doc Documentation/draft-serenyi-avt-rtp-meta-00.txt | |
234 | %doc Documentation/DSS_QT_Logo_License.pdf | |
235 | %doc Documentation/License.rtf | |
236 | %doc Documentation/QTSSAPIDocs.pdf | |
237 | %doc Documentation/ReadMe.rtf | |
238 | %doc Documentation/readme.txt | |
239 | %doc Documentation/ReliableRTP_WhitePaper.rtf | |
240 | %doc Documentation/RTSP_Over_HTTP.pdf | |
241 | ||
242 | %dir %{_sysconfdir}/%{name} | |
243 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/qtgroups | |
244 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/qtusers | |
245 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/relayconfig.xml | |
246 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/streamingloadtool.conf | |
247 | %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/streamingserver.xml | |
248 | ||
1a100897 | 249 | %attr(754,root,root) /etc/rc.d/init.d/dss |
7922b313 ER |
250 | %attr(755,root,root) %{_bindir}/MP3Broadcaster |
251 | %attr(755,root,root) %{_bindir}/PlaylistBroadcaster | |
252 | %attr(755,root,root) %{_bindir}/StreamingLoadTool | |
253 | %attr(755,root,root) %{_bindir}/createuserstreamingdir | |
254 | %attr(755,root,root) %{_bindir}/qtpasswd | |
255 | ||
256 | %attr(755,root,root) %{_sbindir}/DarwinStreamingServer | |
257 | %attr(755,root,root) %{_sbindir}/streamingadminserver.pl | |
258 | ||
259 | %dir %{_libdir}/%{name} | |
260 | %attr(755,root,root) %{_libdir}/%{name}/QTSSHomeDirectoryModule | |
261 | %attr(755,root,root) %{_libdir}/%{name}/QTSSRefMovieModule | |
262 | ||
263 | %dir /var/lib/%{name} | |
1d56511d | 264 | %dir /var/lib/%{name}/movies |
7922b313 | 265 | |
44d6eb04 ER |
266 | # admin server (subpackage?) |
267 | %dir %{_datadir}/%{name} | |
268 | %dir %{_datadir}/%{name}/AdminHtml | |
269 | %{_datadir}/%{name}/AdminHtml/html_en | |
270 | %{_datadir}/%{name}/AdminHtml/images | |
271 | %{_datadir}/%{name}/AdminHtml/includes | |
272 | %{_datadir}/%{name}/AdminHtml/*.html | |
273 | %{_datadir}/%{name}/AdminHtml/*.pl | |
274 | %attr(755,root,root) %{_datadir}/%{name}/AdminHtml/*.cgi | |
1d56511d ER |
275 | |
276 | %files samples | |
277 | %defattr(644,root,root,755) | |
278 | /var/lib/%{name}/movies/* |