]> git.pld-linux.org Git - packages/Glide_VG.git/blame - Glide_VG.spec
- removed texus sources from SDK
[packages/Glide_VG.git] / Glide_VG.spec
CommitLineData
4c49c243 1Summary: Glide runtime for 3Dfx Voodoo Graphics boards
61beb790 2Summary(pl.UTF-8): Środowisko Glide dla kart 3Dfx Voodoo Graphics
cf05b513 3Name: Glide_VG
4Version: 2.46
6eab994c 5Release: 10
4c49c243 6License: 3DFX GLIDE Source Code General Public License
edf0eec0 7Group: Libraries
07dc9c23 8Source0: Glide%{version}.tar.gz
0a60b64a 9# Source0-md5: be7762636b46cb04b238a16f45cfcfa8
07dc9c23 10Patch0: %{name}-asm.patch
63739d9f 11Patch1: %{name}-opt.patch
d98d2b0c 12Patch2: %{name}-morearchs.patch
4dc461ef 13Patch3: %{name}-ioctl.patch
fe94377d 14Patch4: %{name}-soname.patch
26652483 15Patch5: %{name}-C_brainos.patch
ca5929e7 16URL: http://glide.sourceforge.net/
4df864eb 17%ifarch %{ix86}
d5e33c76 18BuildRequires: /usr/bin/gasp
4df864eb 19%endif
ca5929e7
JB
20BuildRequires: xorg-lib-libX11-devel
21BuildRequires: xorg-lib-libXxf86dga-devel
22BuildRequires: xorg-lib-libXxf86vm-devel
e5c076fb 23BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
53af08fa 24
25%description
4c49c243 26This library allows the user to use a 3Dfx Interactive Voodoo Graphics
edf0eec0 27card under Linux.
3d6c707d 28
a216d7c4
JR
29%description -l pl.UTF-8
30Ten pakiet pozwala na używanie kart 3Dfx Interactive Voodoo Graphics
4c49c243
JB
31pod Linuksem.
32
53af08fa 33%package -n Glide2x_SDK
cf05b513 34Summary: Development libraries for Glide 2.x
61beb790 35Summary(pl.UTF-8): Część Glide 2.x przeznaczona dla programistów
cf05b513 36Group: Development/Libraries
d20f55c8 37Conflicts: Glide_SDK
53af08fa 38
39%description -n Glide2x_SDK
40This package includes the headers files, documentation, and test files
41necessary for developing applications that use the 3Dfx Interactive
42Voodoo Graphics, Voodoo Rush, or Voodoo2 card.
43
a216d7c4
JR
44%description -n Glide2x_SDK -l pl.UTF-8
45Ten pakiet zawiera pliki nagłówkowe, dokumentację i pliki testowe
46potrzebne do tworzenia aplikacji używających kart 3Dfx Interactive
4c49c243
JB
47Voodoo Graphics, Voodoo Rush lub Voodoo2.
48
53af08fa 49%prep
cf05b513 50%setup -q -c
63739d9f
JB
51%patch0 -p1
52%patch1 -p1
d98d2b0c 53%patch2 -p1
4dc461ef 54%patch3 -p1
fe94377d 55%patch4 -p1
26652483 56%patch5 -p1
53af08fa 57chmod +x swlibs/include/make/ostype
58
59%build
753c8420 60%{__make} -j1 -f makefile.unix \
c38e5d24 61 CC="%{__cc}" \
d98d2b0c 62 CNODEBUG="%{rpmcflags} -fPIC %{!?debug:-fomit-frame-pointer} \
ca5929e7 63 %{!?debug:-funroll-loops -fexpensive-optimizations -ffast-math}" \
d98d2b0c
JB
64%ifnarch %{ix86}
65 FX_GLIDE_CTRISETUP=1
66%endif
53af08fa 67
68%install
69rm -rf $RPM_BUILD_ROOT
46c6bc1f 70install -d $RPM_BUILD_ROOT{%{_libdir},%{_bindir}}
53af08fa 71
72# Install the glibc 2.1 libraries normally
d8c27465
JB
73install sst1/lib/libglide.so.2.46 $RPM_BUILD_ROOT%{_libdir}
74ln -sf libglide.so.2.46 $RPM_BUILD_ROOT%{_libdir}/libglide.so.2
75ln -sf libglide.so.2 $RPM_BUILD_ROOT%{_libdir}/libglide2x.so
403fc473 76ln -sf libglide.so.2 $RPM_BUILD_ROOT%{_libdir}/libglide.so
d8c27465
JB
77install swlibs/lib/libtexus.so.1.1 $RPM_BUILD_ROOT%{_libdir}
78ln -sf libtexus.so.1.1 $RPM_BUILD_ROOT%{_libdir}/libtexus.so.1
79ln -sf libtexus.so.1 $RPM_BUILD_ROOT%{_libdir}/libtexus.so
53af08fa 80
81# Install the executables
07dc9c23
JB
82install swlibs/bin/texus $RPM_BUILD_ROOT%{_bindir}
83install sst1/glide/tests/test00 $RPM_BUILD_ROOT%{_bindir}/test3Dfx
53af08fa 84
46c6bc1f
JB
85### SDK
86install -d $RPM_BUILD_ROOT%{_includedir}/glide \
87 $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/{tests,texus/examples}
88
53af08fa 89# Install the headers
cf05b513 90install swlibs/include/3dfx.h $RPM_BUILD_ROOT%{_includedir}/glide
91install sst1/include/glide.h $RPM_BUILD_ROOT%{_includedir}/glide
92install sst1/include/glidesys.h $RPM_BUILD_ROOT%{_includedir}/glide
93install sst1/include/glideutl.h $RPM_BUILD_ROOT%{_includedir}/glide
94install sst1/include/sst1vid.h $RPM_BUILD_ROOT%{_includedir}/glide
95install sst1/include/gump.h $RPM_BUILD_ROOT%{_includedir}/glide
96install swlibs/include/linutil.h $RPM_BUILD_ROOT%{_includedir}/glide
97install swlibs/include/texus.h $RPM_BUILD_ROOT%{_includedir}/glide
53af08fa 98
99# Install the examples and their source
bb15827d
JB
100install sst1/glide/tests/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests/makefile
101install sst1/glide/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests
102install sst1/glide/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests
103install sst1/glide/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests
104install sst1/glide/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests
105gzip -9nf $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests/*.3df
53af08fa 106
107# Install the texture tools source
bb15827d 108install swlibs/texus/examples/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/texus/examples/makefile
bb15827d 109install swlibs/texus/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/texus/examples
edf0eec0 110
53af08fa 111%clean
112rm -rf $RPM_BUILD_ROOT
113
4c49c243
JB
114%post -p /sbin/ldconfig
115%postun -p /sbin/ldconfig
53af08fa 116
117%files
cf05b513 118%defattr(644,root,root,755)
ca5929e7 119%doc glide_license.txt readme.txt
cf05b513 120%attr(755,root,root) %{_bindir}/texus
edf0eec0 121%attr(755,root,root) %{_bindir}/test3Dfx
d8c27465
JB
122%attr(755,root,root) %{_libdir}/libglide.so.2.46
123%attr(755,root,root) %ghost %{_libdir}/libglide.so.2
403fc473 124%attr(755,root,root) %{_libdir}/libglide.so
edf0eec0 125%attr(755,root,root) %{_libdir}/libglide2x.so
d8c27465
JB
126%attr(755,root,root) %{_libdir}/libtexus.so.1.1
127%attr(755,root,root) %ghost %{_libdir}/libtexus.so.1
edf0eec0 128%attr(755,root,root) %{_libdir}/libtexus.so
53af08fa 129
130%files -n Glide2x_SDK
cf05b513 131%defattr(644,root,root,755)
edf0eec0 132%doc docs/*.pdf
bb15827d 133%{_examplesdir}/glide2x-%{version}
cf05b513 134%{_includedir}/glide
This page took 0.096368 seconds and 4 git commands to generate.