]> git.pld-linux.org Git - packages/em8300.git/blob - em8300.spec
- simplified doc - STBR
[packages/em8300.git] / em8300.spec
1 Summary:        dxr3 and h+ driver
2 Summary(pl):    sterowniki dla dxr3 i h+
3 Name:           em8300
4 Version:        0.12.0
5 Release:        1
6 License:        GPL
7 Group:          Base/Kernel
8 Source0:        http://dxr3.sourceforge.net/download/%{name}-%{version}.tar.gz
9 Source1:        %{name}.init
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
19 Provides:       dxr3
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21
22 %define         _xbindir                %{_prefix}/X11R6/bin
23
24 %description
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
29 these cards.
30
31 %description -l pl
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±.
38
39 %package devel
40 Summary:        Files required to develop programs using em8300
41 Summary(pl):    Pliki potrzebne do tworzenia programów korzystaj±cych z em8300
42 Group:          Base/Kernel
43 Requires:       %{name} = %{version}
44
45 %description devel
46 Header files and additional scripts useful for developers of em8300
47 apps.
48
49 %description devel -l pl
50 Pliki nag³ówkowe i skrypty przydatne dla autorów aplikacji
51 korzystaj±cych z em8300.
52
53 %package gtk
54 Summary:        Utility programs for em8300 using gtk+
55 Summary(pl):    Programy u¿ytkowe em8300 u¿ywaj±ce bibliteki gtk+
56 Group:          Base/Kernel
57 Requires:       %{name} = %{version}
58
59 %description gtk
60 Utility programs for em8300 using gtk+ toolkit.
61
62 %description gtk -l pl
63 Programy u¿ytkowe em8300 u¿ywaj±ce biblioteki gtk+.
64
65 %prep
66 %setup -q
67
68 %build
69 sh bootstrap
70 %configure
71 %{__make}
72 cd modules
73 make
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT
78
79 %{__make} install DESTDIR=$RPM_BUILD_ROOT
80 cd modules
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
84
85 install -D em8300.uc $RPM_BUILD_ROOT/%{_datadir}/misc/em8300.uc
86
87 cd $RPM_BUILD_ROOT
88 install -d ./%{_xbindir}
89 mv ./%{_bindir}/* ./%{_xbindir}
90
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}
95
96 %clean
97 rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}
98
99 %postun
100 /sbin/ldconfig
101 /sbin/depmod -a
102
103 %post
104 /sbin/ldconfig
105 /sbin/depmod -a
106 /sbin/chkconfig --add %{name}
107 if [ -f /var/lock/subsys/%{name} ]; then
108         /etc/rc.d/init.d/%{name} restart 1>&2
109 else
110         echo "Run \"/etc/rc.d/init.d/%{name} start\" to load %{name} modules."
111 fi
112
113 %preun
114 if [ "$1" = "0" ]; then
115         if [ -f /var/lock/subsys/%{name} ]; then
116                 /etc/rc.d/init.d/%{name} stop 1>&2
117         fi
118         /sbin/chkconfig --del %{name}
119 fi
120
121 %files -f mods.lst
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}
130
131 %files devel
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/*
139
140 %files gtk
141 %defattr(644,root,root,755)
142 %attr(755,root,root) %{_xbindir}/*
This page took 0.069347 seconds and 3 git commands to generate.