|
|
|
|
@ -23,6 +23,10 @@
|
|
|
|
|
## SUCH DAMAGE. |
|
|
|
|
## |
|
|
|
|
|
|
|
|
|
# package versions |
|
|
|
|
%define V_opkg 4.1.3 |
|
|
|
|
%define V_dss 4_1_3 |
|
|
|
|
|
|
|
|
|
# package information |
|
|
|
|
Name: dss |
|
|
|
|
Summary: Darwin Streaming Server |
|
|
|
|
@ -32,17 +36,18 @@ Packager: The OpenPKG Project
|
|
|
|
|
Distribution: OpenPKG [JUNK] |
|
|
|
|
Group: Video |
|
|
|
|
License: APSL |
|
|
|
|
Version: 4_1_3 |
|
|
|
|
Release: 20030410 |
|
|
|
|
Version: %{V_opkg} |
|
|
|
|
Release: 20030411 |
|
|
|
|
|
|
|
|
|
# list of sources |
|
|
|
|
Source0: http://www.opensource.apple.com/projects/streaming/source/DSS-%{version}.src.tar.gz |
|
|
|
|
Source0: http://www.opensource.apple.com/projects/streaming/source/DSS-%{V_dss}.src.tar.gz |
|
|
|
|
Source1: rc.dss |
|
|
|
|
%NoSource 0 |
|
|
|
|
|
|
|
|
|
# build information |
|
|
|
|
Prefix: %{l_prefix} |
|
|
|
|
BuildRoot: %{l_buildroot} |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20030103, perl |
|
|
|
|
BuildPreReq: OpenPKG, openpkg >= 20030103, make, gcc, perl |
|
|
|
|
PreReq: OpenPKG, openpkg >= 20030103, perl |
|
|
|
|
AutoReq: no |
|
|
|
|
AutoReqProv: no |
|
|
|
|
@ -54,7 +59,18 @@ AutoReqProv: no
|
|
|
|
|
the same code as Apple's QuickTime Streaming Server. |
|
|
|
|
|
|
|
|
|
%prep |
|
|
|
|
%setup -q -n DSS-%{version}.src |
|
|
|
|
%setup -q -n DSS-%{V_dss}.src |
|
|
|
|
%{l_shtool} subst \ |
|
|
|
|
-e 's;/etc/streaming/;%{l_prefix}/etc/dss/;' \ |
|
|
|
|
-e 's;/etc/\(streamingserver.conf\);%{l_prefix}/etc/dss/\1;' \ |
|
|
|
|
APIModules/QTSSAccessModule/QTSSAccessModule.cpp \ |
|
|
|
|
APIModules/QTSSDemoAuthorizationModule.bproj/QTSSDemoModule.cpp \ |
|
|
|
|
APIModules/QTSSReflectorModule/QTSSRelayModule.cpp \ |
|
|
|
|
MP3Broadcaster/MP3Broadcaster.cpp \ |
|
|
|
|
Server.tproj/main.cpp \ |
|
|
|
|
StreamingProxy.tproj/proxy_unix.c \ |
|
|
|
|
WebAdmin/src/streamingadminserver.pl \ |
|
|
|
|
WebAdmin/streamingadminserver_Darwin.conf |
|
|
|
|
|
|
|
|
|
%build |
|
|
|
|
# standard opkg build vars |
|
|
|
|
@ -63,7 +79,7 @@ AutoReqProv: no
|
|
|
|
|
CFLAGS="%{l_cflags -O}" \ |
|
|
|
|
CXXFLAGS="%{l_cxxflags -O}" \ |
|
|
|
|
CPPFLAGS="%{l_cppflags}" \ |
|
|
|
|
LDFLAGS="%{l_ldflags}" \ |
|
|
|
|
LDFLAGS="%{l_ldflags}" |
|
|
|
|
|
|
|
|
|
# special darwin build vars |
|
|
|
|
CPLUS=g++ |
|
|
|
|
@ -187,8 +203,11 @@ AutoReqProv: no
|
|
|
|
|
|
|
|
|
|
%install |
|
|
|
|
rm -rf $RPM_BUILD_ROOT |
|
|
|
|
# %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
|
|
|
|
# strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
|
|
|
|
%{l_shtool} install -c -m 755 \ |
|
|
|
|
-e 's;@l_prefix@;%{l_prefix};g' \ |
|
|
|
|
-e 's;@l_susr@;%{l_susr};g' \ |
|
|
|
|
%{SOURCE rc.dss} \ |
|
|
|
|
$RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ |
|
|
|
|
%{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
|
|
|
|
%{l_files_std} \ |
|
|
|
|
'%config %{l_prefix}/etc/dss/*' |
|
|
|
|
|