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