]> git.pld-linux.org Git - SPECS.git/blob - glx.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / glx.spec
1 %define         mesa_version    3.1
2 Summary:        Utah-GLX modules and libraries
3 Summary(pl.UTF-8):      Moduły i biblioteki Utah-GLX
4 Name:           glx
5 Version:        20000407
6 Release:        1
7 License:        custom
8 Group:          X11/Libraries
9 Source0:        %{name}-%{version}.tar.bz2
10 # Source0-md5:  e822567d4f92a5f864b736f92df35d48
11 Source1:        http://dl.sourceforge.net/mesa3d/MesaLib-%{mesa_version}.tar.bz2
12 # Source1-md5:  58292669606fd6b06ee109b790c14c1c
13 Patch1:         %{name}-DESTDIR.patch
14 Patch2:         %{name}-no_glut_headers.patch
15 URL:            http://utah-glx.sourceforge.net/
16 BuildRequires:  XFree86-devel
17 BuildRequires:  perl-base
18 BuildRequires:  tcl
19 Requires:       XFree86 >= 3.3.5
20 Provides:       OpenGL
21 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22
23 %description
24 Utah-GLX is a module providing GLX protocol support to XFree 3.3.x.
25 The package contains also OpenGL libraries making use of it. Hardware
26 acceleration for following chipsets is supported:
27  - nVidia's Riva 128, Riva TNT and Riva TNT2
28  - Matrox's G200 and G400
29  - ATI's 3D Rage Pro
30  - i810
31  - S3 ViRGE
32  - SiS 6326
33
34 %description -l pl.UTF-8
35 Utah-GLX jest modułem implementującym protokół GLX dla XFree 3.3.x
36 Pakiet zawiera także biblioteki OpenGL wykorzystujące GLX. Sprzętowa
37 akceleracja jest obsługiwana dla następujących układów:
38  - nVidia's Riva 128, Riva TNT oraz Riva TNT2
39  - Matrox's G200 and G400
40  - ATI's 3D Rage Pro
41  - i810
42  - S3 ViRGE
43  - SiS 6326
44
45 %package devel
46 Summary:        Development environment for Utah-GLX
47 Summary(pl.UTF-8):      Środowisko programistyczne Utah-GLX
48 Group:          Development/Libraries
49 Requires:       %{name} = %{version}-%{release}
50 Provides:       Mesa-devel
51
52 %description devel
53 Header files and documentation needed for development.
54
55 %description devel -l pl.UTF-8
56 Pliki nagłówkowe i dokumentacja do Utah-GLX.
57
58 %prep
59 %setup -q -a 1
60 %patch1 -p1
61 %patch2 -p1
62
63 %build
64 CFLAGS="%{rpmcflags}" \
65 ./autogen.sh \
66         --prefix=%{_prefix} \
67         --with-mesa="./Mesa-%{mesa_version}" \
68         --sysconfdir=%{_sysconfdir}/X11 \
69         --disable-agp \
70         --enable-GLU \
71         --disable-glut \
72 %ifarch %{ix86} \
73         --with-x86-asm="yes" \
74   %ifarch i686 \
75         --with-mmx-asm="yes" \
76         --with-3dnow-asm="no" \
77                 --enable-mtrr \
78   %else \
79         %ifarch k6 \
80         --with-mmx-asm="yes" \
81         --with-3dnow-asm="yes" \
82         %else \
83         --with-mmx-asm="no" \
84         --with-3dnow-asm="no" \
85         %endif \
86                 --disable-mtrr \
87   %endif \
88 %else \
89         --with-x86-asm="no" \
90         --with-mmx-asm="no" \
91         --with-3dnow-asm="no" \
92                 --disable-mtrr \
93 %endif
94
95 %{__make} depend
96 %{__make}
97
98 %install
99 rm -rf $RPM_BUILD_ROOT
100
101 install -d $RPM_BUILD_ROOT{%{_includedir},%{_libdir}/modules,%{_sysconfdir}/X11}
102
103 %{__make} install \
104         DESTDIR=$RPM_BUILD_ROOT
105
106 %clean
107 rm -rf $RPM_BUILD_ROOT
108
109 %post   -p /sbin/ldconfig
110 %postun -p /sbin/ldconfig
111
112 %files
113 %defattr(644,root,root,755)
114 %doc docs/{README.*,*.txt} CHANGELOG README LICENSE New-Bugs Bugs-ToDo HISTORY
115 %attr(755,root,root) %{_libdir}/lib*.so.*.*
116 %attr(755,root,root) %{_libdir}/modules/*
117 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/X11/*
118
119 %files devel
120 %defattr(644,root,root,755)
121 %attr(755,root,root) %{_libdir}/lib*.so
122 %attr(755,root,root) %{_includedir}/*
This page took 0.199522 seconds and 3 git commands to generate.