1 Summary: dxr3 and h+ driver
2 Summary(pl): sterowniki dla dxr3 i h+
8 Source0: http://dxr3.sourceforge.net/download/%{name}-%{version}.tar.gz
10 Source2: %{name}.sysconf
11 URL: http://dxr3.sourceforge.net/
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: libtool
15 BuildRequires: gtk+-devel
16 Requires(post,postun): /sbin/ldconfig
17 Requires(post,postun): /sbin/depmod
18 Requires(post,preun): /sbin/chkconfig
20 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 %define _xbindir %{_prefix}/X11R6/bin
25 em8300 is a Linux driver for Creative DXR3 and Sigma Designs
26 Hollywood+ cards. Both cards are hardware MPEG1, MPEG2, AC3 decoders.
27 Additionaly Xine and MPlayer with help of this driver allow you to
28 play all the video formats that they recognise through the tv-out of
32 em8300 pozwala na uruchomienie pod Linuksem kart Creative DXR3 i Sigma
33 Designs Hollywood+. Obie karty, o prawie identycznej konstrukcji s±
34 sprzêtowymi dekoderami MPEG1, MPEG2 i AC3. Programy Xine i MPlayer
35 pozwalaj± przy u¿yciu tego sterownika na odtwarzanie przez wyj¶cie
36 telewizyjne tych kart nie tylko w/w formatów, ale tak¿e wszystkich
37 formatów video, które te programy rozpoznaj±.
40 Summary: Files required to develop programs using em8300
41 Summary(pl): Pliki potrzebne do tworzenia programów korzystaj±cych z em8300
43 Requires: %{name} = %{version}
46 Header files and additional scripts useful for developers of em8300
49 %description devel -l pl
50 Pliki nag³ówkowe i skrypty przydatne dla autorów aplikacji
51 korzystaj±cych z em8300.
54 Summary: Utility programs for em8300 using gtk+
55 Summary(pl): Programy u¿ytkowe em8300 u¿ywaj±ce bibliteki gtk+
57 Requires: %{name} = %{version}
60 Utility programs for em8300 using gtk+ toolkit.
62 %description gtk -l pl
63 Programy u¿ytkowe em8300 u¿ywaj±ce biblioteki gtk+.
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT
79 %{__make} install DESTDIR=$RPM_BUILD_ROOT
81 %{__make} install-newkern prefix=$RPM_BUILD_ROOT
82 find $RPM_BUILD_ROOT/lib/modules -name "*.o" -print | sed s,$RPM_BUILD_ROOT,, >../mods.lst
83 mv INSTALL INSTALL.modules
85 install -D em8300.uc $RPM_BUILD_ROOT/%{_datadir}/misc/em8300.uc
88 install -d ./%{_xbindir}
89 mv ./%{_bindir}/* ./%{_xbindir}
91 cd $RPM_BUILD_ROOT%{_datadir}
92 install -m 755 em8300/microcode_upload.pl ../bin/em8300_microcode_upload
93 install -D %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/rc.d/init.d/%{name}
94 install -D %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/sysconfig/%{name}
97 rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}
106 /sbin/chkconfig --add %{name}
107 if [ -f /var/lock/subsys/%{name} ]; then
108 /etc/rc.d/init.d/%{name} restart 1>&2
110 echo "Run \"/etc/rc.d/init.d/%{name} start\" to load %{name} modules."
114 if [ "$1" = "0" ]; then
115 if [ -f /var/lock/subsys/%{name} ]; then
116 /etc/rc.d/init.d/%{name} stop 1>&2
118 /sbin/chkconfig --del %{name}
122 %defattr(644,root,root,755)
123 %doc AUTHORS ChangeLog COPYING README
124 %doc modules/{README*,INSTALL*,devices.sh,devfs_symlinks}
125 %attr(755,root,root) %{_bindir}/*
126 %attr(755,root,root) %{_datadir}/misc/*
127 %attr(755,root,root) %{_libdir}/lib*.so.*
128 %attr(755,root,root) %{_sysconfdir}/rc.d/init.d/%{name}
129 %attr(755,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/sysconfig/%{name}
132 %defattr(644,root,root,755)
133 %{_includedir}/libdxr3
134 %{_includedir}/linux/*
135 %attr(755,root,root) %{_libdir}/lib*.so
136 %attr(755,root,root) %{_libdir}/lib*.la
137 %attr(755,root,root) %dir %{_datadir}/em8300
138 %attr(755,root,root) %{_datadir}/em8300/*
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_xbindir}/*