SPECS: dshowserver.spec - reverted from 1.8 to 1.7

w.kier w.kier at pld-linux.org
Mon Mar 9 20:24:06 CET 2009


Author: w.kier                       Date: Mon Mar  9 19:24:06 2009 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- reverted from 1.8 to 1.7

---- Files affected:
SPECS:
   dshowserver.spec (1.8 -> 1.9) 

---- Diffs:

================================================================
Index: SPECS/dshowserver.spec
diff -u SPECS/dshowserver.spec:1.8 SPECS/dshowserver.spec:1.9
--- SPECS/dshowserver.spec:1.8	Mon Mar  9 19:41:46 2009
+++ SPECS/dshowserver.spec	Mon Mar  9 20:24:01 2009
@@ -1,106 +1,144 @@
 # $Revision$, $Date$
-
 # Conditional build:
 %bcond_with	static	# static package for use with x86_64 systems
+#
 
-%define		pname		dshowserver
-%define 	_snap		svn
-%define		_rel		82
-
-Summary:	Win32 CoreAVC H.264 codec helper.
+%define		svn			82
+%define		rel			0.1
+Summary:	Win32 CoreAVC H.264 codec helper
 Summary(pl.UTF-8):	Serwer windowsowego kodeka CoreAVC H.264.
-Name:		%{pname}%{?with_static:-static}
-Version:	%{_snap}%{_rel}
-Release:	0.1
+Name:		dshowserver
+Version:	0.1
+Release:	0.%{svn}.%{rel}
 License:	GPL
-Group:		X11/Multimedia
-Source0:	%{pname}-%{version}.tar.bz2
+Group:		X11/Applications/Multimedia
+Source0:	%{name}-0.svn%{svn}.tar.bz2
 # Source0-md5:	648492583080c4359040358453670452
-Patch0:		%{pname}-codecspath.patch
-URL:		http://code.google.com/		
-BuildRequires:	glibc-static
+Patch0:		%{name}-codecspath.patch
+Patch1:		%{name}-optflags.patch
+URL:		http://code.google.com/p/coreavc-for-linux/
+%ifarch %{x8664}
+BuildRequires:	gcc-multilib
+%{?with_static:BuildRequires:     glibc-static(i686)}
+%else
+%{?with_static:BuildRequires:     glibc-static}
+%endif
+BuildRequires:	rpmbuild(macros) >= 1.453
+BuildRequires:	sed >= 4.0
+ExclusiveArch:	%{ix86} %{x8664}
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		x8664_flags	-m32
+%define		specflags_x86_64 %{x8664_flags}
+%define		specflags_amd64	%{x8664_flags}
+%define		specflags_ia32e	%{x8664_flags}
 
 %description
-CoreAVC is a proprietary Windows codec for H.264 video decoding. 
-It is much faster than any currently available open-source codecs. 
-Being multi-threaded, and able to play PAFF streams, 
-it can handle HD H.264/AVC streams that no freely available codecs can. 
-CoreAVC is reasonably priced, but it is Windows only. 
-Dshowserver serves CoreAVC for mythtv, mplayer and xine.
-Dshowserver can work under 32 or 64 bits linux system.
-For 64 bits use static binary compiled in 32 bits environement.
+CoreAVC is a proprietary Windows codec for H.264 video decoding. It is
+much faster than any currently available open-source codecs. Being
+multi-threaded, and able to play PAFF streams, it can handle HD
+H.264/AVC streams that no freely available codecs can. CoreAVC is
+reasonably priced, but it is Windows only. Dshowserver serves CoreAVC
+for mythtv, mplayer and xine. Dshowserver can work under 32 or 64 bits
+linux system. For 64 bits use static binary compiled in 32 bits
+environement.
 
 %description -l pl.UTF-8
-CoreAVC to komercyjny kodek H.264 dla systemu Windows. Jest znacznie szybszy
-od dowolnego wolnego kodeka. Obsługujac wielowatkowosc moze odtwarzac
-strumienie zakodowane z uzyciem interlacingu PAFF.
-Odtwarza strumienie HD H.264/AVC.
-Kosztuje rozsadnie, ale dostepny jest tylko dla Windows.
-Dhowserevr implementuje obsluge tego kodeka przez mythtv, mplayer i xine.
-Dshowserver moze byc uzyty w architekturach x86 i x86_64.
-Jezeli twoj system jest 64 bitowy. Uzyj statycznych binariow 
+CoreAVC to komercyjny kodek H.264 dla systemu Windows. Jest znacznie
+szybszy od dowolnego wolnego kodeka. Obsługujac wielowatkowosc moze
+odtwarzac strumienie zakodowane z uzyciem interlacingu PAFF. Odtwarza
+strumienie HD H.264/AVC. Kosztuje rozsadnie, ale dostepny jest tylko
+dla Windows. Dhowserevr implementuje obsluge tego kodeka przez mythtv,
+mplayer i xine. Dshowserver moze byc uzyty w architekturach x86 i
+x86_64. Jezeli twoj system jest 64 bitowy. Uzyj statycznych binariow
 zbudowanych w 32 bitowym srodowisku.
 
-
-%package -n registercodec%{?with_static:-static}
-Summary:        Utility to register win32 CoreAVC H.264 codec.
-Summary(pl.UTF-8):      Narzedzie do rejestracji windowsowego kodeka CoreAVC H.264.
-Group:          X11/Multimedia
-
-%description -n registercodec%{?with_static:-static}
-Utility to register win32 CoreAVC H.264 codec for usage with mythtv/mplayer/xine.
-
-%description -l pl.UTF-8 -n registercodec%{?with_static:-static}
-Narzedzie do przeprowadzenia rejestracji komercyjnego  kodeka CoreAVC H.264.
+%package -n registercodec
+Summary:	Utility to register win32 CoreAVC H.264 codec
+Summary(pl.UTF-8):	Narzedzie do rejestracji windowsowego kodeka CoreAVC H.264.
+Group:		X11/Applications/Multimedia
+
+%description -n registercodec
+Utility to register win32 CoreAVC H.264 codec for usage with
+mythtv/mplayer/xine.
+
+%description -n registercodec -l pl.UTF-8
+Narzedzie do przeprowadzenia rejestracji komercyjnego kodeka CoreAVC
+H.264.
 
 %prep
-cd %{_builddir}
-rm -rf %{pname}-%{version}
-tar jxvf %{SOURCE0}
-cd %{pname}-%{version}
-
+%setup -q -n %{name}-svn%{svn}
 %patch0 -p1
+%patch1 -p1
+
+%if "%{cc_version}" < "3.4"
+# CC version is arbitary (just to be > 3.3)
+%{__sed} -i -e 's/-Wno-pointer-sign//;s/-Wdeclaration-after-statement//' {loader,dshowserver}/Makefile
+%endif
 
 %build
-cd %{pname}-%{version}
-make -C dshowserver %{?with_static:STATIC=1} 
+cat << 'EOF' > config.mak
+override CC = %{__cc}
+override OPTFLAGS = %{rpmcflags}
+override LDFLAGS = %{rpmldflags}
+
+%{?with_static:STATIC = 1}
+
+AR = ar
+RANLIB = ranlib
+OBJDIR = ../objs
+EOF
+
+%{__make} -C dshowserver
 
 %install
 rm -rf $RPM_BUILD_ROOT
-cd %{pname}-%{version}
-
-install -d $RPM_BUILD_ROOT%{_bindir}
-install -d $RPM_BUILD_ROOT%{_mandir}/man1
-
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
 install dshowserver/dshowserver $RPM_BUILD_ROOT%{_bindir}/dshowserver
 install dshowserver/registercodec $RPM_BUILD_ROOT%{_bindir}/registercodec
-
-install man/* $RPM_BUILD_ROOT%{_mandir}/man1
+cp -a man/* $RPM_BUILD_ROOT%{_mandir}/man1
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-
-%postun
-
 %files
+%defattr(644,root,root,755)
 %attr(755,root,video) %{_bindir}/dshowserver
-%attr(644,root,root) %{_mandir}/man1/ds*
+%{_mandir}/man1/ds*
 
-%files -n registercodec%{?with_static:-static}
+%files -n registercodec
+%defattr(644,root,root,755)
 %attr(755,root,video) %{_bindir}/registercodec
-%attr(644,root,root) %{_mandir}/man1/re*
+%{_mandir}/man1/re*
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
-Except wk
-
 $Log$
-Revision 1.8  2009/03/09 18:41:46  w.kier
-- reverted to 1.38
+Revision 1.9  2009/03/09 19:24:01  w.kier
+- reverted from 1.8 to 1.7
+
+Revision 1.7  2008/11/03 12:20:07  sparky
+- build 32bit binary in x8664 (using multilib)
+- forcing static on x8664 is pointless
+- use config.mak file instead of command line
+
+Revision 1.6  2008/11/03 09:50:18  glen
+- don't use svn rev as version
+- macros cleanup, possible gcc 3.3 buildfixes
+
+Revision 1.5  2008/11/03 08:50:06  grzegorz
+- some cleanups
+
+Revision 1.4  2008/11/03 08:25:23  glen
+- alpha and numeric comparision is inconsistent with different rpm versions
+
+Revision 1.3  2008/11/03 08:24:10  glen
+- grzegorz - you should pldize external specs, not just add them
+
+Revision 1.2  2008/11/03 07:54:56  grzegorz
+- update from WK
 
-Revision 0.1  2008/10/12 20:20:41  wk
-- initial release
+Revision 1.1  2008/10/23 13:36:46  grzegorz
+- initial spec by Wieslaw Kierbedz
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/dshowserver.spec?r1=1.8&r2=1.9&f=u



More information about the pld-cvs-commit mailing list