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