5 %bcond_without dist_kernel # allow non-distribution kernel
6 %bcond_without kernel # don't build kernel modules
7 %bcond_without userspace # don't build userspace tools
8 %bcond_with verbose # verbose build (V=1)
11 # kernel modules won't build on sparc32, no I2C in kernel
16 %undefine with_dist_kernel
18 %if "%{_alt_kernel}" != "%{nil}"
19 %undefine with_userspace
21 %if %{without userspace}
22 # nothing to be placed to debuginfo package
23 %define _enable_debug_packages 0
28 Summary: DXR3 and H+ driver
29 Summary(pl.UTF-8): Sterowniki dla DXR3 i H+
30 Name: %{pname}%{_alt_kernel}
34 Group: Applications/System
35 Source0: http://downloads.sourceforge.net/dxr3/%{pname}-%{version}.tar.gz
36 # Source0-md5: 2ef10f5159508a31a877e7e6d18c6896
37 Source1: %{pname}.init
38 Source2: %{pname}.sysconf
39 Patch0: %{pname}-make.patch
40 URL: http://dxr3.sourceforge.net/
42 BuildRequires: autoconf >= 2.50
43 BuildRequires: automake
44 BuildRequires: gtk+2-devel >= 1:2.0.0
45 BuildRequires: pkgconfig
48 %{?with_dist_kernel:BuildRequires: kernel%{_alt_kernel}-module-build >= 3:2.6.14}
49 BuildRequires: rpmbuild(macros) >= 1.379
51 Requires(post,preun): /sbin/chkconfig
54 Obsoletes: em8300-libs
55 %if %{without userspace}
58 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
61 em8300 is a Linux driver for Creative DXR3 and Sigma Designs
62 Hollywood+ cards. Both cards are hardware MPEG1, MPEG2, AC3 decoders.
63 Additionaly Xine and MPlayer with help of this driver allow you to
64 play all the video formats that they recognise through the tv-out of
67 %description -l pl.UTF-8
68 em8300 pozwala na uruchomienie pod Linuksem kart Creative DXR3 i Sigma
69 Designs Hollywood+. Obie karty, o prawie identycznej konstrukcji są
70 sprzętowymi dekoderami MPEG1, MPEG2 i AC3. Programy Xine i MPlayer
71 pozwalają przy użyciu tego sterownika na odtwarzanie przez wyjście
72 telewizyjne tych kart nie tylko w/w formatów, ale także wszystkich
73 formatów video, które te programy rozpoznają.
76 Summary: Header file to communicate with em8300 Linux kernel modules
77 Summary(pl.UTF-8): Plik nagłówkowy do komunikacji z modułami jądra Linuksa em8300
78 Group: Development/Libraries
79 Obsoletes: em8300-static
82 Header file to communicate with em8300 Linux kernel modules.
84 %description devel -l pl.UTF-8
85 Plik nagłówkowy do komunikacji z modułami jądra Linuksa em8300.
88 Summary: Utility programs for em8300 using GTK+
89 Summary(pl.UTF-8): Programy użytkowe em8300 używające bibliteki GTK+
90 Group: X11/Applications
91 Requires: %{pname} = %{version}-%{release}
94 Utility programs for em8300 using GTK+ toolkit.
96 %description gtk -l pl.UTF-8
97 Programy użytkowe em8300 używające biblioteki GTK+.
99 %package -n kernel%{_alt_kernel}-video-em8300
100 Summary: em8300 Linux kernel modules
101 Summary(pl.UTF-8): Moduły jądra Linuksa em8300
102 Release: %{rel}@%{_kernel_ver_str}
104 Requires(post,postun): /sbin/depmod
105 %if %{with dist_kernel}
106 %requires_releq_kernel_up
107 Requires(postun): %releq_kernel_up
109 Obsoletes: kernel%{_alt_kernel}-smp-video-em8300
111 %description -n kernel%{_alt_kernel}-video-em8300
112 em8300 Linux kernel modules.
114 %description -n kernel%{_alt_kernel}-video-em8300 -l pl.UTF-8
115 Moduły jądra Linuksa em8300.
118 %setup -q -n %{pname}-%{version}
122 %if %{with userspace}
123 %{__aclocal} -I autotools
132 %build_kernel_modules -C modules -m em8300,adv717x,bt865 <<'EOF'
133 cp ../include/linux/em8300.h o/include/linux/em8300.h
138 rm -rf $RPM_BUILD_ROOT
140 %if %{with userspace}
142 DESTDIR=$RPM_BUILD_ROOT
144 install -D %{SOURCE1} $RPM_BUILD_ROOT/etc/rc.d/init.d/%{pname}
145 install -D %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/%{pname}
149 %install_kernel_modules -m modules/{em8300,adv717x,bt865} -d kernel/drivers/video
153 rm -rf $RPM_BUILD_ROOT
156 /sbin/chkconfig --add %{pname}
157 %service %{pname} restart
160 if [ "$1" = "0" ]; then
162 /sbin/chkconfig --del %{pname}
165 %post -n kernel%{_alt_kernel}-video-em8300
166 %depmod %{_kernel_ver}
168 %postun -n kernel%{_alt_kernel}-video-em8300
169 %depmod %{_kernel_ver}
171 %if %{with userspace}
173 %defattr(644,root,root,755)
174 %doc AUTHORS ChangeLog README modules/README*
175 %attr(755,root,root) %{_bindir}/em8300setup
176 /lib/firmware/em8300.bin
177 %dir %{_datadir}/em8300
178 %{_datadir}/em8300/em8300.pm
179 %attr(755,root,root) %{_datadir}/em8300/*.pl
180 %{_mandir}/man1/em8300setup.1*
181 %attr(754,root,root) /etc/rc.d/init.d/%{pname}
182 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/%{pname}
183 # subpackage? (is it usable without alsa?)
184 %{_datadir}/alsa/cards/EM8300.conf
187 %defattr(644,root,root,755)
188 %{_includedir}/linux/em8300.h
191 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_bindir}/autocal
193 %attr(755,root,root) %{_bindir}/dhc
194 %attr(755,root,root) %{_bindir}/dxr3view
198 %files -n kernel%{_alt_kernel}-video-em8300
199 %defattr(644,root,root,755)
200 /lib/modules/%{_kernel_ver}/kernel/drivers/video/*.ko*