Patch1: %{name}-x86_64.patch
Patch2: optflags.patch
Patch3: compile.patch
+Patch4: gcc43.patch
URL: http://dss.macosforge.org/
BuildRequires: libstdc++-devel
BuildRequires: rpm-perlprov >= 4.1-13
Obsoletes: dstreamsrv
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+#define specflags -Werror -Wno-write-strings
+
%description
Darwin Streaming Server lets you stream digital video on the Internet
using industry-standard Internet protocols RTP and RTSP.
%patch1 -p1
%patch2 -p1
%patch3 -p1
+#%patch4 -p1
cp -p %{SOURCE3} .
# patch streamingadminserver.pl
#define DEFAULTPATHS_MOVIES_DIR "/var/lib/%{name}/movies/"
EOF
+#%undos -f cpp
+#find -name '*.cpp' | xargs sed -i -re 's/char\s*\*\s*(\w+)\s*= "/const char* \1 = "/g'
+
%build
export ARCH="%{_target_cpu}"
export CC="%{__cc}"
--- /dev/null
+--- DarwinStreamingSrvr6.0.3-Source/CommonUtilitiesLib/StringFormatter.h~ 2008-05-06 02:28:59.000000000 +0300
++++ DarwinStreamingSrvr6.0.3-Source/CommonUtilitiesLib/StringFormatter.h 2010-08-09 16:45:23.066298834 +0300
+@@ -71,8 +71,8 @@
+ //Object does no bounds checking on the buffer. That is your responsibility!
+ //Put truncates to the buffer size
+ void Put(const SInt32 num);
+- void Put(char* buffer, UInt32 bufferSize);
+- void Put(char* str) { Put(str, strlen(str)); }
++ void Put(const char* buffer, UInt32 bufferSize);
++ void Put(const char* str) { Put(str, strlen(str)); }
+ void Put(const StrPtrLen &str) { Put(str.Ptr, str.Len); }
+ void PutSpace() { PutChar(' '); }
+ void PutEOL() { Put(sEOL, sEOLLen); }