3 # _without_dist_kernel - without distribution kernel
6 Summary: dxr3 and h+ driver
7 Summary(pl): sterowniki dla dxr3 i h+
13 Source0: http://dxr3.sourceforge.net/download/%{name}-%{version}.tar.gz
14 # Source0-md5: 306984dfd4f0f29538179cbbf391f5a8
16 Source2: %{name}.sysconf
17 Patch0: %{name}-automake.patch
18 URL: http://dxr3.sourceforge.net/
19 BuildRequires: autoconf
20 BuildRequires: automake
21 BuildRequires: libtool
22 BuildRequires: gtk+-devel >= 1.2.0
23 %{!?_without_dist_kernel:BuildRequires: kernel-headers}
24 BuildRequires: rpmbuild(macros) >= 1.118
25 Requires(post,postun): /sbin/ldconfig
26 Requires(post,preun): /sbin/chkconfig
28 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
31 em8300 is a Linux driver for Creative DXR3 and Sigma Designs
32 Hollywood+ cards. Both cards are hardware MPEG1, MPEG2, AC3 decoders.
33 Additionaly Xine and MPlayer with help of this driver allow you to
34 play all the video formats that they recognise through the tv-out of
38 em8300 pozwala na uruchomienie pod Linuksem kart Creative DXR3 i Sigma
39 Designs Hollywood+. Obie karty, o prawie identycznej konstrukcji s±
40 sprzêtowymi dekoderami MPEG1, MPEG2 i AC3. Programy Xine i MPlayer
41 pozwalaj± przy u¿yciu tego sterownika na odtwarzanie przez wyj¶cie
42 telewizyjne tych kart nie tylko w/w formatów, ale tak¿e wszystkich
43 formatów video, które te programy rozpoznaj±.
46 Summary: Files required to develop programs using em8300
47 Summary(pl): Pliki potrzebne do tworzenia programów korzystaj±cych z em8300
48 Group: Development/Libraries
49 Requires: %{name} = %{version}
52 Header files and additional scripts useful for developers of em8300
55 %description devel -l pl
56 Pliki nag³ówkowe i skrypty przydatne dla autorów aplikacji
57 korzystaj±cych z em8300.
60 Summary: Static libraries for em8300
61 Summary(pl): Statyczne biblioteki dla em8300
62 Group: Development/Libraries
63 Requires: %{name}-devel = %{version}
66 Static libraries for em8300.
68 %description static -l pl
69 Statyczne biblioteki dla em8300.
72 Summary: Utility programs for em8300 using gtk+
73 Summary(pl): Programy u¿ytkowe em8300 u¿ywaj±ce bibliteki gtk+
74 Group: X11/Applications
75 Requires: %{name} = %{version}
78 Utility programs for em8300 using gtk+ toolkit.
80 %description gtk -l pl
81 Programy u¿ytkowe em8300 u¿ywaj±ce biblioteki gtk+.
83 %package -n kernel-video-em8300
84 Summary: em8300 Linux kernel modules
85 Summary(pl): Modu³y j±dra Linuksa em8300
87 %{!?_without_dist_kernel:%requires_releq_kernel_up}
88 Requires(post,postun): /sbin/depmod
90 %description -n kernel-video-em8300
91 em8300 Linux kernel modules.
93 %description -n kernel-video-em8300 -l pl
94 Modu³y j±dra Linuksa em8300.
103 %{__aclocal} -I autotools
110 %{__make} -C modules \
111 KERNEL_LOCATION="%{_kernelsrcdir}" \
112 EM8300_DEBUG="%{rpmcflags}"
115 rm -rf $RPM_BUILD_ROOT
118 DESTDIR=$RPM_BUILD_ROOT
120 %{__make} -C modules install-newkern \
121 KERNVER=%{_kernel_ver} \
122 prefix=$RPM_BUILD_ROOT
124 mv -f modules/{INSTALL,INSTALL.modules}
126 install -D modules/em8300.uc $RPM_BUILD_ROOT%{_datadir}/misc/em8300.uc
128 install scripts/microcode_upload.pl $RPM_BUILD_ROOT%{_bindir}/em8300_microcode_upload
130 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{name}
131 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{name}
134 rm -rf $RPM_BUILD_ROOT
138 /sbin/chkconfig --add %{name}
139 if [ -f /var/lock/subsys/%{name} ]; then
140 /etc/rc.d/init.d/%{name} restart 1>&2
142 echo "Run \"/etc/rc.d/init.d/%{name} start\" to load %{name} modules."
146 if [ "$1" = "0" ]; then
147 if [ -f /var/lock/subsys/%{name} ]; then
148 /etc/rc.d/init.d/%{name} stop 1>&2
150 /sbin/chkconfig --del %{name}
153 %postun -p /sbin/ldconfig
155 %post -n kernel-video-em8300
156 %depmod %{_kernel_ver}
158 %postun -n kernel-video-em8300
159 %depmod %{_kernel_ver}
162 %defattr(644,root,root,755)
163 %doc AUTHORS ChangeLog README modules/{README*,INSTALL*,devices.sh,devfs_symlinks}
164 %attr(755,root,root) %{_bindir}/em8300_microcode_upload
165 %{_datadir}/misc/em8300.uc
166 %attr(755,root,root) %{_libdir}/lib*.so.*.*.*
167 %attr(754,root,root) /etc/rc.d/init.d/%{name}
168 %config(noreplace) %verify(not size mtime md5) /etc/sysconfig/%{name}
171 %defattr(644,root,root,755)
172 %{_includedir}/libdxr3
173 %{_includedir}/linux/*.h
174 %attr(755,root,root) %{_libdir}/lib*.so
176 %attr(755,root,root) %dir %{_datadir}/em8300
177 %attr(755,root,root) %{_datadir}/em8300/*
180 %defattr(644,root,root,755)
184 %defattr(644,root,root,755)
185 %attr(755,root,root) %{_bindir}/autocal
186 %attr(755,root,root) %{_bindir}/dhc
187 %attr(755,root,root) %{_bindir}/dxr3view
188 %attr(755,root,root) %{_bindir}/em8300setup
190 %files -n kernel-video-em8300
191 %defattr(644,root,root,755)
192 /lib/modules/%{_kernel_ver}/kernel/drivers/video/*.o*