]> git.pld-linux.org Git - packages/Glide_V3-DRI.git/blob - Glide_V3-DRI.spec
28e18223661e6ea6dbc288bc4e0b75fec1d5b04e
[packages/Glide_V3-DRI.git] / Glide_V3-DRI.spec
1 #
2 # _with_3dnow   - with 3Dnow! instructions
3 %define snapdate 20010309
4 Summary:        Glide runtime for 3Dfx Voodoo Banshee and Voodoo3 boards
5 Summary(pl):    Biblioteki Glide dla kart 3Dfx Voodoo Banshee oraz Voodoo3
6 Name:           Glide_V3-DRI
7 Version:        3.10.0
8 Release:        0.%{snapdate}.2
9 Epoch:          1
10 Group:          X11/Libraries
11 Group(de):      X11/Libraries
12 Group(es):      X11/Bibliotecas
13 Group(fr):      X11/Librairies
14 Group(pl):      X11/Biblioteki
15 License:        3dfx Glide General Public License, 3Dfx Interactive Inc.
16 URL:            http://glide.sourceforge.net/
17 Source0:        cvs://anonymous@cvs.glide.sourceforge.net:/cvsroot/glide/glide3x-%{snapdate}.tar.gz
18 Patch0:         glide-ia64.patch
19 Patch1:         glide-ac-workaround.patch
20 Patch2:         glide-h3.patch
21 Patch3:         glide-h5.patch
22 Vendor:         3dfx Interactive Inc.
23 Icon:           3dfx.gif
24 BuildRequires:  XFree86-devel
25 BuildRequires:  automake
26 BuildRequires:  autoconf
27 BuildRequires:  libtool
28 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
29 Provides:       Glide3-DRI
30
31 %description 
32 This library allows the user to use a 3dfx Interactive Voodoo Banshee
33 or Voodoo3 card under Linux with DRI support. The source support DRI
34 or non-DRI versions of Glide.
35
36 %description -l pl
37 Ta biblioteka pozwala u¿ytkownikowi na u¿ywanie kart 3dfx Interactive
38 Voodoo Banshee lub Voodoo3 pod Linux'em z DRI. Ta wersja zawiera
39 wsparcie dla wersji Glide z DRI i bez DRI.
40
41 %package devel
42 Summary:        Development headers for Glide 3.x
43 Summary(pl):    Pliki nag³ówkowe Glide 3.x
44 Group:          X11/Development/Libraries
45 Group(de):      X11/Entwicklung/Libraries
46 Group(fr):      X11/Development/Librairies
47 Group(pl):      X11/Programowanie/Biblioteki
48 Requires:       %{name} = %{version}
49 Provides:       Glide3-DRI-devel
50
51 %description devel
52 This package includes the headers files, documentation, and test files
53 necessary for developing applications that use the 3Dfx Interactive
54 Voodoo Banshee or Voodoo3 cards.
55
56 %description -l pl devel
57 Ten pakiet zawiera pliki nag³ówkowe, dokumentacje, oraz pliki tekstowe
58 wymagane przez aplikacje deweloperskie, które u¿ywaj± kart 3Dfx
59 Interactive Voodoo Banshe lub Voodoo3.
60
61 %package static
62 Summary:        Static library Glide 3.x
63 Summary(pl):    Statyczne biblioteki Glide 3.x
64 Group:          X11/Development/Libraries
65 Group(de):      X11/Entwicklung/Libraries
66 Group(fr):      X11/Development/Librairies
67 Group(pl):      X11/Programowanie/Biblioteki
68 Requires:       %{name} = %{version}
69 Provides:       Glide3-DRI-static
70
71 %description static
72 This package includes the static Glide3 library for Voodoo Banshee or
73 Voodoo3 cards.
74
75 %description -l pl static
76 Ten pakiet zawiera statyczne biblioteki Glide3 dla kart Voodoo Banshee
77 lub Voodoo3.
78
79 %prep
80 %setup -q -n glide3x-%{snapdate}
81 %patch0 -p1
82 %patch1 -p1
83 %patch2 -p1
84 %patch3 -p1
85
86 %build
87 rm -f missing
88 libtoolize --copy --force
89 aclocal
90 autoconf
91 automake -a -c
92 %configure \
93         --enable-fx-dri-build \
94         --enable-fx-glide-hw=h3 \
95         --enable-fx-debug=no \
96         %{?_with_3dnow:--enable-amd3d}
97
98 %{__make} -f makefile.autoconf all \
99         GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \
100         GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}"
101
102 %install
103 rm -rf $RPM_BUILD_ROOT
104 install -d $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
105
106 # something is recompiled - use GCFLAGS too
107 %{__make} -f makefile.autoconf install \
108         GLIDE_DEBUG_GCFLAGS="%{rpmcflags} -fno-expensive-optimizations %{!?debug:-fomit-frame-pointer -ffast-math}" \
109         GLIDE_DEBUG_GDEFS="%{!?debug:-DBIG_OPT} %{?debug:-DGDBG_INFO_ON -DGLIDE_DEBUG}" \
110         DESTDIR=$RPM_BUILD_ROOT
111
112 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x_V3.so
113 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
114
115 # Install the examples and their source, no binaries
116 install h3/glide3/tests/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests/makefile
117 install h3/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
118 install h3/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
119 install h3/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
120 install h3/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide3/tests
121
122 gzip -9nf glide_license.txt
123
124 %clean
125 rm -rf $RPM_BUILD_ROOT
126
127 %post -p /sbin/ldconfig
128 %postun -p /sbin/ldconfig
129
130 %files
131 %defattr(644,root,root,755)
132 %doc glide_license.txt.gz
133 %attr(755,root,root) %{_libdir}/libglide3.so.*.*.*
134 %attr(755,root,root) %{_libdir}/libglide3x.so
135 %attr(755,root,root) %{_libdir}/libglide3x_V3.so
136
137 %files devel
138 %defattr(644,root,root,755)
139 #%doc docs/*.pdf
140 %{_examplesdir}/glide3
141 %attr(755,root,root) %{_libdir}/lib*.la
142 %attr(755,root,root) %{_libdir}/libglide3.so
143 %{_includedir}/glide3
144
145 %files static
146 %defattr(644,root,root,755)
147 %{_libdir}/lib*.a
This page took 0.079415 seconds and 2 git commands to generate.