]> git.pld-linux.org Git - packages/dss.git/blame - dss.spec
- move adminhtml to datadir, partial merge from dstreamserv.spec
[packages/dss.git] / dss.spec
CommitLineData
1d56511d
ER
1# TODO
2# - merge dstreamserv.spec
2d53a2fb
ER
3Summary: Darwin Streaming Server
4Name: dss
5Version: 6.0.3
44d6eb04 6Release: 0.6
2d53a2fb 7License: Apple Public Source License
44d6eb04 8Group: Networking/Daemons
2d53a2fb
ER
9Source0: http://dss.macosforge.org/downloads/DarwinStreamingSrvr%{version}-Source.tar
10# Source0-md5: ca676691db8417d05121699c0ca3d549
720b962c
ER
11Patch0: %{name}.patch
12Patch1: %{name}-x86_64.patch
c08547c4
ER
13Patch2: optflags.patch
14Patch3: compile.patch
1a100897 15Source1: %{name}.init
2d53a2fb 16URL: http://dss.macosforge.org/
1a100897
ER
17BuildRequires: rpmbuild(macros) >= 1.228
18Requires(post,preun): /sbin/chkconfig
1d56511d
ER
19Requires(postun): /usr/sbin/groupdel
20Requires(postun): /usr/sbin/userdel
21Requires(pre): /bin/id
22Requires(pre): /usr/bin/getgid
23Requires(pre): /usr/sbin/groupadd
24Requires(pre): /usr/sbin/useradd
1a100897 25Requires: rc-scripts
1d56511d
ER
26Provides: group(qtss)
27Provides: user(qtss)
44d6eb04
ER
28Obsoletes: DSS
29Obsoletes: dstreamserv
30Obsoletes: dstreamsrv
2d53a2fb
ER
31BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
32
33%description
34Darwin Streaming Server lets you stream digital video on the Internet
35using industry-standard Internet protocols RTP and RTSP.
36
37Using Darwin Streaming Server you can serve stored files (video on
38demand) or reflect live broadcasts to thousands of QuickTime 4 or
39later users. With its combination of industry-standard streaming
40protocols and cutting-edge compression technologies, QuickTime
41delivers perfectly synchronized audio and video streams ideal for
42Internet video and live events.
43
44d6eb04
ER
44%description -l pl.UTF-8
45Serwer strumieni pozwala wysyłać strumienie danych QuickTime do
46klientów w Internecie przy użyciu protokołów RTP i RTSP.
47
2d53a2fb
ER
48%package Proxy
49Summary: Apple's Darwin Streaming Proxy
50Group: Daemons
51
52%description Proxy
53The Darwin Streaming Proxy is an application specific proxy which
54would normally be run in a border zone or perimeter network. It is
55used to give client machines within a protected network access to
56streaming servers outside that network, in the case when the firewall
57blocks RTSP connections or RTP/UDP data flow. The firewall perimeter
58network 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
71Summary: Apple's Darwin Streaming Server Movie inspection utilities
44d6eb04 72Group: 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
110Example: "./QTTrackInfo -T stco /movies/mystery.mov 3" dumps the chunk
111offset sample table in track 3.
112
113- StreamingLoadTool
114
1d56511d
ER
115%package samples
116Summary: Darwin Streaming Server - samples
117Summary(pl.UTF-8): Przykłady do Darwin Streaming Servera
118Group: Networking/Daemons
44d6eb04 119Obsoletes: dstreamserv-samples
1d56511d
ER
120
121%description samples
122Sample files for Streaming Server.
2d53a2fb 123
1d56511d
ER
124%description samples -l pl.UTF-8
125Przykł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
158cat > 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
167EOF
168
169%build
170export RPM_OPT_FLAGS="%{rpmcflags}"
171export ARCH="%{_target_cpu}"
172export CC="%{__cc}"
173export CXX="%{__cxx}"
174
175jobs=$(echo %{_smp_mflags} | cut -dj -f2)
176./Buildit ${jobs:+--jobs=$jobs}
177
178%install
179rm -rf $RPM_BUILD_ROOT
9c8bf5ea 180install -d $RPM_BUILD_ROOT{/etc/rc.d/init.d,/var/lib/%{name}}
2d53a2fb
ER
181./DSS_MakeRoot \
182 $RPM_BUILD_ROOT
183
1a100897
ER
184install -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!
188qtpasswd="\
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
195mv $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/relayconfig.xml{-Sample,}
196rm $RPM_BUILD_ROOT%{_sysconfdir}/%{name}/streamingserver.xml-sample
197
198rm $RPM_BUILD_ROOT/var/lib/%{name}/3rdPartyAcknowledgements.rtf
199rm $RPM_BUILD_ROOT/var/lib/%{name}/readme.txt
200
2d53a2fb
ER
201%clean
202rm -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
213if [ "$1" = "0" ]; then
214 %service -q %{name} stop
215 /sbin/chkconfig --del %{name}
216fi
217
1d56511d
ER
218%postun
219if [ "$1" = "0" ]; then
220 %userremove qtss
221 %groupremove qtss
222fi
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/*
This page took 0.137924 seconds and 4 git commands to generate.