]>
Commit | Line | Data |
---|---|---|
1 | # TODO | |
2 | # - err, get rid of name mungling and create real -static package or some other subpackages | |
3 | # - static bcond and BR mismatches | |
4 | # - missing source0 (due lack of md5) | |
5 | ||
6 | # Conditional build: | |
7 | %bcond_with static # static package for use with x86_64 systems | |
8 | ||
9 | %define snap svn | |
10 | %define extraver 82 | |
11 | %define pname dshowserver | |
12 | Summary: Win32 CoreAVC H.264 codec helper | |
13 | Summary(pl.UTF-8): Serwer windowsowego kodeka CoreAVC H.264. | |
14 | Name: %{pname}%{?with_static:-static} | |
15 | Version: 0.%{snap}%{extraver} | |
16 | Release: 0.1 | |
17 | License: GPL | |
18 | Group: X11/Applications/Multimedia | |
19 | Source0: %{pname}-%{version}.tar.bz2 | |
20 | # Source0-md5: | |
21 | Patch0: %{pname}-codecspath.patch | |
22 | URL: http://code.google.com/ | |
23 | # XXX actual without static bcond too?? | |
24 | BuildRequires: glibc-static | |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
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. | |
36 | ||
37 | %description -l pl.UTF-8 | |
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 | |
45 | zbudowanych w 32 bitowym srodowisku. | |
46 | ||
47 | ||
48 | %package -n registercodec%{?with_static:-static} | |
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 | |
52 | ||
53 | %description -n registercodec%{?with_static:-static} | |
54 | Utility to register win32 CoreAVC H.264 codec for usage with | |
55 | mythtv/mplayer/xine. | |
56 | ||
57 | %description -n registercodec%{?with_static:-static} -l pl.UTF-8 | |
58 | Narzedzie do przeprowadzenia rejestracji komercyjnego kodeka CoreAVC | |
59 | H.264. | |
60 | ||
61 | %prep | |
62 | %setup -q -n %{pname}-%{version} | |
63 | %patch0 -p1 | |
64 | ||
65 | %build | |
66 | %{__make} -C dshowserver %{?with_static:STATIC=1} | |
67 | ||
68 | %install | |
69 | rm -rf $RPM_BUILD_ROOT | |
70 | install -d $RPM_BUILD_ROOT%{_bindir} | |
71 | install -d $RPM_BUILD_ROOT%{_mandir}/man1 | |
72 | install dshowserver/dshowserver $RPM_BUILD_ROOT%{_bindir}/dshowserver | |
73 | install dshowserver/registercodec $RPM_BUILD_ROOT%{_bindir}/registercodec | |
74 | ||
75 | cp -a man/* $RPM_BUILD_ROOT%{_mandir}/man1 | |
76 | ||
77 | %clean | |
78 | rm -rf $RPM_BUILD_ROOT | |
79 | ||
80 | %files | |
81 | %defattr(644,root,root,755) | |
82 | %attr(755,root,video) %{_bindir}/dshowserver | |
83 | %{_mandir}/man1/ds* | |
84 | ||
85 | %files -n registercodec%{?with_static:-static} | |
86 | %defattr(644,root,root,755) | |
87 | %attr(755,root,video) %{_bindir}/registercodec | |
88 | %{_mandir}/man1/re* |