]> git.pld-linux.org Git - packages/Glide_V2.git/blob - Glide_V2.spec
- adapterized and made spec %%debug ready or added using %%rpm*flags macros
[packages/Glide_V2.git] / Glide_V2.spec
1 Summary:        Glide runtime for 3Dfx Voodoo2 boards
2 Summary(pl):    Biblioteki Glide do kart 3Dfx Voodoo2 
3 Name:           Glide_V2
4 Version:        2.53
5 Release:        6
6 Group:          Libraries
7 Group(de):      Libraries
8 Group(es):      Bibliotecas
9 Group(fr):      Librairies
10 Group(pl):      Biblioteki
11 Copyright:      3DFX GLIDE Source Code General Public License
12 Vendor:         3Dfx Interactive Inc.
13 URL:            http://www.3dfx.com     
14 Source0:        GlideV2.tar.gz
15 Icon:           3dfx.gif
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 This library allows the user to use a 3dfx Interactive Voodoo2 card
20 under Linux.
21
22 %description -l pl
23 Ta biblioteka pozwala u¿ywaæ kart 3dfx Interactive Voodoo2 pod
24 Linuxem.
25
26 %prep
27 %setup -q -n GlideV2
28 chmod +x swlibs/include/make/ostype
29
30 %build
31 # Make sure we build for Voodoo2
32 export FX_GLIDE_HW=cvg
33 %{__make} V2 CNODEBUG="%{rpmcflags} %{!?debug:-fomit-frame-pointer -funroll-loops} \
34         %{!?debug:-fexpensive-optimizations -ffast-math -DBIG_OPT}"
35
36 %install
37 rm -rf $RPM_BUILD_ROOT
38 install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir}}
39
40 ######################################################################
41 # Install the Glide2x libraries
42 ######################################################################
43
44 install glide2x/cvg/lib/libglide.so.2.53 \
45         $RPM_BUILD_ROOT%{_libdir}/libglide.so.2.53
46
47 # Create symlinks
48 ln -sf libglide.so.2 $RPM_BUILD_ROOT%{_libdir}/libglide.so
49
50 # Create a compatibility link for the old name
51 ln -sf libglide.so.2.53 $RPM_BUILD_ROOT%{_libdir}/libglide2x.so.2
52 ln -sf libglide2x.so $RPM_BUILD_ROOT%{_libdir}/libglide2x.so
53
54 ######################################################################
55 # Install the Glide3X libraries
56 ######################################################################
57 install glide3x/cvg/lib/libglide3.so.3.01 \
58         $RPM_BUILD_ROOT%{_libdir}/libglide3.so.3.01
59
60 # Create symlinks
61 ln -sf libglide3.so.3 $RPM_BUILD_ROOT%{_libdir}/libglide3.so
62
63 # Create a compatibility link for the old name
64 ln -sf libglide3.so.3.01 $RPM_BUILD_ROOT%{_libdir}/libglide3x.so.3
65 ln -sf libglide3x.so.3 $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
66
67 ######################################################################
68 # Install Texus
69 ######################################################################
70 install -m 755 glide2x/swlibs/lib/libtexus.so.1.1 \
71     $RPM_BUILD_ROOT%{_libdir}
72
73 ln -sf libtexus.so.1 $RPM_BUILD_ROOT%{_libdir}/libtexus.so
74
75 install swlibs/bin/texus $RPM_BUILD_ROOT%{_bindir}
76
77 ######################################################################
78 # Install the Test Programs
79 ######################################################################
80 # Make two copies so that the old test3Dfx is still there and
81 # we now have a consisten testGlide2x, testGlide3x
82 install -m 755 glide2x/cvg/glide/tests/test00 \
83         $RPM_BUILD_ROOT%{_bindir}/test3Dfx
84 install -m 755 glide2x/cvg/glide/tests/test00 \
85         $RPM_BUILD_ROOT%{_bindir}/testGlide2x
86
87 install -m 755 glide3x/cvg/glide3/tests/test00 \
88         $RPM_BUILD_ROOT%{_bindir}/testGlide3x
89
90 gzip -9nf glide2x/glide_license.txt
91
92 %clean
93 rm -rf $RPM_BUILD_ROOT
94
95 %post -p /sbin/ldconfig
96 %postun -p /sbin/ldconfig
97
98 %files
99 %defattr(644,root,root,755)
100 %doc glide2x/glide_license.txt.gz
101 %attr(755,root,root) %{_bindir}/texus
102 %attr(755,root,root) %{_bindir}/test3Dfx
103 %attr(755,root,root) %{_bindir}/testGlide3x
104 %attr(755,root,root) %{_bindir}/testGlide2x
105 %attr(755,root,root) %{_libdir}/libglide.so.2.53
106 %attr(755,root,root) %{_libdir}/libglide.so
107 %attr(755,root,root) %{_libdir}/libglide2x.so
108 %attr(755,root,root) %{_libdir}/libglide2x.so.2
109 %attr(755,root,root) %{_libdir}/libglide3.so.3.01
110 %attr(755,root,root) %{_libdir}/libglide3.so
111 %attr(755,root,root) %{_libdir}/libglide3x.so
112 %attr(755,root,root) %{_libdir}/libglide3x.so.3
113 %attr(755,root,root) %{_libdir}/libtexus.so.1.1
114 %attr(755,root,root) %{_libdir}/libtexus.so
This page took 0.094275 seconds and 3 git commands to generate.