- tabs in preamble
[packages/XFree86-driver-mga_hal.git] / XFree86-driver-mga_hal.spec
1 Summary:        mga_hal driver - extensions for XFree86 mga driver
2 Summary(pl.UTF-8):      Sterownik mga_hal - rozszerzenia dla sterownika mga
3 Name:           XFree86-driver-mga_hal
4 Version:        3.0
5 Release:        1
6 License:        proprietary
7 Group:          X11/XFree86
8 # according to copyright notice on download page:
9 # http://matrox.com/mga/support/drivers/files/lnx_30.cfm
10 # source package can be used only on single computer (??? looks
11 # really inadequately)
12 # but according to release notes:
13 # ftp://ftp.matrox.com/pub/mga/archive/linux/2003/lnx30notes.txt
14 # mga_hal library can be freely redistributed
15 # ??? leave it as NoSource for now
16 Source0:        ftp://ftp.matrox.com/pub/mga/archive/linux/2003/mgadrivers-%{version}-src.tgz
17 # NoSource0-md5: 8b754fc6bbded60b683563b945e384b0
18 NoSource:       0
19 Patch0:         %{name}-build.patch
20 URL:            http://matrox.com/mga/support/drivers/latest/home.cfm
21 BuildRequires:  XFree86-Xserver-devel > 1:4.4
22 %{requires_eq_to XFree86-driver-mga XFree86-Xserver-devel}
23 ExclusiveArch:  %{ix86}
24 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26 %define         _prefix         /usr/X11R6
27
28 %description
29 mga_hal driver - extensions for XFree86 mga driver.
30
31 %description -l pl.UTF-8
32 Sterownik mga_hal - rozszerzenia dla sterownika mga.
33
34 %prep
35 %setup -q -n mgadrivers-%{version}-src
36 %patch0 -p1
37
38 %build
39 cd 4.3.0/drivers/src
40 xmkmf
41 %{__make} mga_hal_drv.o \
42         TOP=/usr/X11R6/include/X11/Xserver \
43         CC="%{__cc}" \
44         CDEBUGFLAGS="%{rpmcflags} -I/usr/X11R6/include/X11 -I/usr/X11R6/include/X11/extensions"
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48 install -d $RPM_BUILD_ROOT%{_libdir}/modules/drivers
49
50 install 4.3.0/drivers/src/mga_hal_drv.o $RPM_BUILD_ROOT%{_libdir}/modules/drivers
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %files
56 %defattr(644,root,root,755)
57 %attr(755,root,root) %{_libdir}/modules/drivers/mga_hal_drv.o
This page took 0.068538 seconds and 3 git commands to generate.