]> git.pld-linux.org Git - packages/em8300.git/blob - em8300.spec
d1df373083049c544d044820ff5865e60f007a27
[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:        0
6 License:        GPL
7 Group:          Base/Kernel
8 Source0:        http://dxr3.sourceforge.net/download/%{name}-%{version}.tar.gz
9 URL:            http://dxr3.sourceforge.net/
10 Provides:       dxr3
11 Requires(post,postun):/sbin/ldconfig
12 Requires(post,postun):/sbin/depmod
13 BuildRequires:  kernel-headers
14 BuildRequires:  autoconf
15 BuildRequires:  automake
16 BuildRequires:  libtool
17 BuildRequires:  gtk+-devel
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         _xbindir                %{_prefix}/X11R6/bin
21
22 %description
23 em8300 is a Linux driver for Creative DXR3 and Sigma Designs
24 Hollywood+ cards. Both cards are hardware MPEG1, MPEG2, AC3 decoders.
25 Additionaly Xine and MPlayer with help of this driver allow you to
26 play all the video formats that they recognise through the tv-out of
27 these cards.
28
29 %description -l pl
30 em8300 pozwala na uruchomienie pod Linuksem kart Creative DXR3 i Sigma
31 Designs Hollywood+. Obie karty, o prawie identycznej konstrukcji s±
32 sprzêtowymi dekoderami MPEG1, MPEG2 i AC3. Programy Xine i MPlayer
33 pozwalaj± przy u¿yciu tego sterownika na odtwarzanie przez wyj¶cie
34 telewizyjne tych kart nie tylko w/w formatów, ale tak¿e wszystkich
35 formatów video, które te programy rozpoznaj±.
36
37 %package devel
38 Summary:        Files required to develop programs using em8300
39 Summary(pl):    Pliki potrzebne do tworzenia programów korzystaj±cych z em8300
40 Group:          Base/Kernel
41 Requires:       %{name} = %{version}
42
43 %description devel
44 Header files and additional scripts useful for developers of em8300
45 apps.
46
47 %description devel -l pl
48 Pliki nag³ówkowe i skrypty przydatne dla autorów aplikacji
49 korzystaj±cych z em8300.
50
51 %package gtk
52 Summary:        Utility programs for em8300 using gtk+
53 Summary(pl):    Programy u¿ytkowe em8300 u¿ywaj±ce bibliteki gtk+
54 Group:          Base/Kernel
55 Requires:       %{name} = %{version}
56
57 %description gtk
58 Utility programs for em8300 using gtk+ toolkit.
59
60 %description gtk -l pl
61 Programy u¿ytkowe em8300 u¿ywaj±ce biblioteki gtk+.
62
63 %prep
64 %setup -q
65
66 %build
67 sh bootstrap
68 %configure
69 %{__make}
70 cd modules
71 make
72
73 %install
74 rm -rf $RPM_BUILD_ROOT
75 install -d $RPM_BUILD_ROOT
76
77 %{__make} install DESTDIR=$RPM_BUILD_ROOT
78 cd modules
79 %{__make} install-newkern prefix=$RPM_BUILD_ROOT
80 find $RPM_BUILD_ROOT/lib/modules -name "*.o" -print | sed s,$RPM_BUILD_ROOT,, >../mods.lst
81 mv INSTALL INSTALL.modules
82 install -d $RPM_BUILD_ROOT/%{_datadir}/misc
83 install em8300.uc $RPM_BUILD_ROOT/%{_datadir}/misc
84
85 cd $RPM_BUILD_ROOT
86 install -d ./%{_xbindir}
87 mv ./%{_bindir}/* ./%{_xbindir}
88
89 cd $RPM_BUILD_ROOT%{_datadir}
90 install -m 755 em8300/microcode_upload.pl ../bin/em8300_microcode_upload
91
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT $RPM_BUILD_DIR/%{name}-%{version}
95
96 %postun
97 /sbin/ldconfig
98 /sbin/depmod -a
99
100 %post
101 /sbin/ldconfig
102 /sbin/depmod -a
103
104 %files -f mods.lst
105 %defattr(644,root,root,755)
106 %doc AUTHORS ChangeLog COPYING README
107 %doc modules/README* modules/INSTALL* modules/devices.sh modules/devfs_symlinks
108 %attr(755,root,root)                    %{_bindir}/*
109 %attr(755,root,root)                    %{_datadir}/misc/*
110 %attr(755,root,root)                    %{_libdir}/lib*.so.*
111
112 %files devel
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %dir               %{_includedir}/libdxr3
115 %attr(644,root,root)                    %{_includedir}/libdxr3/*
116 %attr(644,root,root)                    %{_includedir}/linux/*
117 %attr(755,root,root)                    %{_libdir}/lib*.so
118 %attr(755,root,root)                    %{_libdir}/lib*.la
119 %attr(755,root,root) %dir               %{_datadir}/em8300
120 %attr(755,root,root)                    %{_datadir}/em8300/*
121
122 %files gtk
123 %defattr(644,root,root,755)
124 %attr(755,root,root)                    %{_xbindir}/*
This page took 0.039106 seconds and 2 git commands to generate.