]>
Commit | Line | Data |
---|---|---|
6e34d7a6 ER |
1 | # TODO |
2 | # - err, get rid of name mungling and create real -static package or some other subpackages | |
3 | # - static bcond and BR mismatches | |
cc357d43 | 4 | # - missing source0 (due lack of md5) |
989e7023 GS |
5 | |
6 | # Conditional build: | |
7 | %bcond_with static # static package for use with x86_64 systems | |
8 | ||
6e34d7a6 ER |
9 | %define snap svn |
10 | %define extraver 82 | |
989e7023 | 11 | %define pname dshowserver |
6e34d7a6 | 12 | Summary: Win32 CoreAVC H.264 codec helper |
989e7023 GS |
13 | Summary(pl.UTF-8): Serwer windowsowego kodeka CoreAVC H.264. |
14 | Name: %{pname}%{?with_static:-static} | |
cc357d43 | 15 | Version: 0.%{snap}%{extraver} |
989e7023 GS |
16 | Release: 0.1 |
17 | License: GPL | |
6e34d7a6 | 18 | Group: X11/Applications/Multimedia |
989e7023 GS |
19 | Source0: %{pname}-%{version}.tar.bz2 |
20 | # Source0-md5: | |
21 | Patch0: %{pname}-codecspath.patch | |
6e34d7a6 | 22 | URL: http://code.google.com/ |
cc357d43 | 23 | # XXX actual without static bcond too?? |
989e7023 | 24 | BuildRequires: glibc-static |
6e34d7a6 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
989e7023 GS |
26 | |
27 | %description | |
6e34d7a6 ER |
28 | CoreAVC is a proprietary Windows codec for H.264 video decoding. It is |
29 | much faster than any currently available open-source codecs. Being | |
30 | multi-threaded, and able to play PAFF streams, it can handle HD | |
31 | H.264/AVC streams that no freely available codecs can. CoreAVC is | |
32 | reasonably priced, but it is Windows only. Dshowserver serves CoreAVC | |
33 | for mythtv, mplayer and xine. Dshowserver can work under 32 or 64 bits | |
34 | linux system. For 64 bits use static binary compiled in 32 bits | |
35 | environement. | |
989e7023 GS |
36 | |
37 | %description -l pl.UTF-8 | |
6e34d7a6 ER |
38 | CoreAVC to komercyjny kodek H.264 dla systemu Windows. Jest znacznie |
39 | szybszy od dowolnego wolnego kodeka. Obsługujac wielowatkowosc moze | |
40 | odtwarzac strumienie zakodowane z uzyciem interlacingu PAFF. Odtwarza | |
41 | strumienie HD H.264/AVC. Kosztuje rozsadnie, ale dostepny jest tylko | |
42 | dla Windows. Dhowserevr implementuje obsluge tego kodeka przez mythtv, | |
43 | mplayer i xine. Dshowserver moze byc uzyty w architekturach x86 i | |
44 | x86_64. Jezeli twoj system jest 64 bitowy. Uzyj statycznych binariow | |
989e7023 GS |
45 | zbudowanych w 32 bitowym srodowisku. |
46 | ||
47 | ||
a865f5f9 | 48 | %package -n registercodec%{?with_static:-static} |
6e34d7a6 ER |
49 | Summary: Utility to register win32 CoreAVC H.264 codec |
50 | Summary(pl.UTF-8): Narzedzie do rejestracji windowsowego kodeka CoreAVC H.264. | |
51 | Group: X11/Applications/Multimedia | |
989e7023 | 52 | |
a865f5f9 | 53 | %description -n registercodec%{?with_static:-static} |
6e34d7a6 ER |
54 | Utility to register win32 CoreAVC H.264 codec for usage with |
55 | mythtv/mplayer/xine. | |
989e7023 | 56 | |
6e34d7a6 ER |
57 | %description -n registercodec%{?with_static:-static} -l pl.UTF-8 |
58 | Narzedzie do przeprowadzenia rejestracji komercyjnego kodeka CoreAVC | |
59 | H.264. | |
989e7023 | 60 | |
989e7023 | 61 | %prep |
6e34d7a6 | 62 | %setup -q -n %{pname}-%{version} |
989e7023 GS |
63 | %patch0 -p1 |
64 | ||
65 | %build | |
6e34d7a6 | 66 | %{__make} -C dshowserver %{?with_static:STATIC=1} |
989e7023 GS |
67 | |
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
989e7023 GS |
70 | install -d $RPM_BUILD_ROOT%{_bindir} |
71 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 | |
989e7023 | 72 | install dshowserver/dshowserver $RPM_BUILD_ROOT%{_bindir}/dshowserver |
a865f5f9 | 73 | install dshowserver/registercodec $RPM_BUILD_ROOT%{_bindir}/registercodec |
989e7023 | 74 | |
6e34d7a6 | 75 | cp -a man/* $RPM_BUILD_ROOT%{_mandir}/man1 |
989e7023 GS |
76 | |
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
989e7023 | 80 | %files |
6e34d7a6 | 81 | %defattr(644,root,root,755) |
989e7023 | 82 | %attr(755,root,video) %{_bindir}/dshowserver |
6e34d7a6 | 83 | %{_mandir}/man1/ds* |
989e7023 | 84 | |
a865f5f9 | 85 | %files -n registercodec%{?with_static:-static} |
6e34d7a6 | 86 | %defattr(644,root,root,755) |
989e7023 | 87 | %attr(755,root,video) %{_bindir}/registercodec |
6e34d7a6 | 88 | %{_mandir}/man1/re* |