2 %bcond_with static # static package for use with x86_64 systems
7 Summary: Win32 CoreAVC H.264 codec helper
8 Summary(pl.UTF-8): Serwer windowsowego kodeka CoreAVC H.264.
11 Release: 0.%{svn}.%{rel}
13 Group: X11/Applications/Multimedia
14 Source0: %{name}-0.svn%{svn}.tar.bz2
15 # Source0-md5: 9fa17ea92a3d78c34f251a4c56bbd750
16 Patch0: %{name}-codecspath.patch
17 Patch1: %{name}-optflags.patch
18 URL: http://code.google.com/p/coreavc-for-linux/
20 BuildRequires: gcc-multilib
21 %{?with_static:BuildRequires: glibc-static(i686)}
23 %{?with_static:BuildRequires: glibc-static}
25 BuildRequires: rpmbuild(macros) >= 1.453
26 BuildRequires: sed >= 4.0
27 ExclusiveArch: %{ix86}
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
30 %define x8664_flags -m32
31 %define specflags_x86_64 %{x8664_flags}
32 %define specflags_amd64 %{x8664_flags}
33 %define specflags_ia32e %{x8664_flags}
36 CoreAVC is a proprietary Windows codec for H.264 video decoding. It is
37 much faster than any currently available open-source codecs. Being
38 multi-threaded, and able to play PAFF streams, it can handle HD
39 H.264/AVC streams that no freely available codecs can. CoreAVC is
40 reasonably priced, but it is Windows only. Dshowserver serves CoreAVC
41 for mythtv, mplayer and xine. Dshowserver can work under 32 or 64 bits
42 linux system. For 64 bits use static binary compiled in 32 bits
45 %description -l pl.UTF-8
46 CoreAVC to komercyjny kodek H.264 dla systemu Windows. Jest znacznie
47 szybszy od dowolnego wolnego kodeka. Obsługujac wielowatkowosc moze
48 odtwarzac strumienie zakodowane z uzyciem interlacingu PAFF. Odtwarza
49 strumienie HD H.264/AVC. Kosztuje rozsadnie, ale dostepny jest tylko
50 dla Windows. Dhowserevr implementuje obsluge tego kodeka przez mythtv,
51 mplayer i xine. Dshowserver moze byc uzyty w architekturach x86 i
52 x86_64. Jezeli twoj system jest 64 bitowy. Uzyj statycznych binariow
53 zbudowanych w 32 bitowym srodowisku.
55 %package -n registercodec
56 Summary: Utility to register win32 CoreAVC H.264 codec
57 Summary(pl.UTF-8): Narzedzie do rejestracji windowsowego kodeka CoreAVC H.264.
58 Group: X11/Applications/Multimedia
60 %description -n registercodec
61 Utility to register win32 CoreAVC H.264 codec for usage with
64 %description -n registercodec -l pl.UTF-8
65 Narzedzie do przeprowadzenia rejestracji komercyjnego kodeka CoreAVC
69 %setup -q -n %{name}-svn%{svn}
73 %if "%{cc_version}" < "3.4"
74 # CC version is arbitary (just to be > 3.3)
75 %{__sed} -i -e 's/-Wno-pointer-sign//;s/-Wdeclaration-after-statement//' {loader,dshowserver}/Makefile
79 cat << 'EOF' > config.mak
81 override OPTFLAGS = %{rpmcflags}
82 override LDFLAGS = %{rpmldflags}
84 %{?with_static:STATIC = 1}
91 %{__make} -C dshowserver
94 rm -rf $RPM_BUILD_ROOT
95 install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
96 install dshowserver/dshowserver $RPM_BUILD_ROOT%{_bindir}/dshowserver
97 install dshowserver/registercodec $RPM_BUILD_ROOT%{_bindir}/registercodec
98 cp -a man/* $RPM_BUILD_ROOT%{_mandir}/man1
101 rm -rf $RPM_BUILD_ROOT
104 %defattr(644,root,root,755)
105 %attr(755,root,video) %{_bindir}/dshowserver
108 %files -n registercodec
109 %defattr(644,root,root,755)
110 %attr(755,root,video) %{_bindir}/registercodec