packages: Glide_V2/Glide_V2.spec - dropped libglide2x.so.2/libglide3x.so.3 ...

qboosh qboosh at pld-linux.org
Sat Jan 14 22:23:16 CET 2012


Author: qboosh                       Date: Sat Jan 14 21:23:16 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- dropped libglide2x.so.2/libglide3x.so.3 symlinks (overkill)
- allow building glide SDKs from this spec

---- Files affected:
packages/Glide_V2:
   Glide_V2.spec (1.22 -> 1.23) 

---- Diffs:

================================================================
Index: packages/Glide_V2/Glide_V2.spec
diff -u packages/Glide_V2/Glide_V2.spec:1.22 packages/Glide_V2/Glide_V2.spec:1.23
--- packages/Glide_V2/Glide_V2.spec:1.22	Mon Jan  9 18:09:22 2012
+++ packages/Glide_V2/Glide_V2.spec	Sat Jan 14 22:23:10 2012
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_with	glide_sdk	# build glide2/glide3 SDKs
+#
 Summary:	Glide runtime for 3Dfx Voodoo2 boards
 Summary(pl.UTF-8):	Biblioteki Glide do kart 3Dfx Voodoo2
 Name:		Glide_V2
@@ -26,6 +30,38 @@
 Ta biblioteka pozwala używać kart 3dfx Interactive Voodoo2 pod
 Linuksem.
 
+%package -n Glide2x_SDK
+Summary:	Development libraries for Glide 2.x
+Summary(pl.UTF-8):	Część Glide 2.x przeznaczona dla programistów
+Group:		Development/Libraries
+Conflicts:	Glide_SDK
+
+%description -n Glide2x_SDK
+This package includes the header files and test files necessary for
+developing applications that use any of the 3D accelerators in the
+3Dfx Interactive Voodoo line utilizing Glide 2.x interface.
+
+%description -n Glide2x_SDK -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe i pliki testowe potrzebne do
+tworzenia aplikacji korzystających z akceleratorów 3D serii 3Dfx
+Interactive Voodoo przy użyciu interfejsu Glide 2.x.
+
+%package -n Glide3x_SDK
+Summary:	Development libraries for Glide 3.x
+Summary(pl.UTF-8):	Część Glide 3.x przeznaczona dla programistów
+Group:		Development/Libraries
+Conflicts:	Glide_SDK
+
+%description -n Glide3x_SDK
+This package includes the header files and test files necessary for
+developing applications that use any of the 3D accelerators in the
+3Dfx Interactive Voodoo line utilizing Glide 3.x interface.
+
+%description -n Glide3x_SDK -l pl.UTF-8
+Ten pakiet zawiera pliki nagłówkowe i pliki testowe potrzebne do
+tworzenia aplikacji korzystających z akceleratorów 3D serii 3Dfx
+Interactive Voodoo przy użyciu interfejsu Glide 3.x.
+
 %prep
 %setup -q -n GlideV2
 %patch0 -p1
@@ -61,8 +97,8 @@
 ln -sf libglide.so.2 $RPM_BUILD_ROOT%{_libdir}/libglide.so
 
 # Create a compatibility link for the old name
-ln -sf libglide.so.2.53 $RPM_BUILD_ROOT%{_libdir}/libglide2x.so.2
-ln -sf libglide2x.so $RPM_BUILD_ROOT%{_libdir}/libglide2x.so
+# (X driver used to dlopen by libglide2x.so name)
+ln -sf libglide.so.2.53 $RPM_BUILD_ROOT%{_libdir}/libglide2x.so
 
 ######################################################################
 # Install the Glide3X libraries
@@ -74,8 +110,8 @@
 ln -sf libglide3.so.3 $RPM_BUILD_ROOT%{_libdir}/libglide3.so
 
 # Create a compatibility link for the old name
-ln -sf libglide3.so.3.01 $RPM_BUILD_ROOT%{_libdir}/libglide3x.so.3
-ln -sf libglide3x.so.3 $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
+# (X driver used to dlopen by libglide3x.so name)
+ln -sf libglide3x.so.3.01 $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
 
 ######################################################################
 # Install Texus
@@ -99,6 +135,49 @@
 install glide3x/cvg/glide3/tests/test00 \
 	$RPM_BUILD_ROOT%{_bindir}/testGlide3x
 
+%if %{with glide_sdk}
+### SDK
+install -d $RPM_BUILD_ROOT%{_includedir}/{glide,glide3}
+install -d $RPM_BUILD_ROOT%{_examplesdir}/{glide2x-%{version}/{tests,texus/examples},glide3x-%{version}/tests}
+
+# glide2x headers
+install swlibs/include/3dfx.h $RPM_BUILD_ROOT%{_includedir}/glide
+install swlibs/include/linutil.h $RPM_BUILD_ROOT%{_includedir}/glide
+install swlibs/include/texus.h $RPM_BUILD_ROOT%{_includedir}/glide
+install glide2x/cvg/include/glide.h $RPM_BUILD_ROOT%{_includedir}/glide
+install glide2x/cvg/include/glidesys.h $RPM_BUILD_ROOT%{_includedir}/glide
+install glide2x/cvg/include/glideutl.h $RPM_BUILD_ROOT%{_includedir}/glide
+install glide2x/cvg/include/sst1vid.h $RPM_BUILD_ROOT%{_includedir}/glide
+install glide2x/cvg/include/gump.h $RPM_BUILD_ROOT%{_includedir}/glide
+
+# glide2x examples
+install glide2x/cvg/glide/tests/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests/makefile
+install glide2x/cvg/glide/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests
+install glide2x/cvg/glide/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests
+install glide2x/cvg/glide/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests
+install glide2x/cvg/glide/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/tests
+
+# texus examples
+install swlibs/texus/examples/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/texus/examples/makefile
+install swlibs/texus/examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/glide2x-%{version}/texus/examples
+
+# glide3x headers
+install swlibs/include/3dfx.h $RPM_BUILD_ROOT%{_includedir}/glide
+install swlibs/include/linutil.h $RPM_BUILD_ROOT%{_includedir}/glide
+install swlibs/include/texus.h $RPM_BUILD_ROOT%{_includedir}/glide
+install glide3x/cvg/include/glide.h $RPM_BUILD_ROOT%{_includedir}/glide
+install glide3x/cvg/include/glidesys.h $RPM_BUILD_ROOT%{_includedir}/glide
+install glide3x/cvg/include/glideutl.h $RPM_BUILD_ROOT%{_includedir}/glide
+install glide3x/cvg/include/sst1vid.h $RPM_BUILD_ROOT%{_includedir}/glide
+
+# glide3x examples
+install glide3x/cvg/glide3/tests/makefile.distrib $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests/makefile
+install glide3x/cvg/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests
+install glide3x/cvg/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests
+install glide3x/cvg/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests
+install glide3x/cvg/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/glide3x-%{version}/tests
+%endif
+
 /sbin/ldconfig -n $RPM_BUILD_ROOT%{_libdir}
 
 %clean
@@ -118,22 +197,36 @@
 %attr(755,root,root) %ghost %{_libdir}/libglide.so.2
 %attr(755,root,root) %{_libdir}/libglide.so
 %attr(755,root,root) %{_libdir}/libglide2x.so
-%attr(755,root,root) %{_libdir}/libglide2x.so.2
 %attr(755,root,root) %{_libdir}/libglide3.so.3.01
 %attr(755,root,root) %ghost %{_libdir}/libglide3.so.3
 %attr(755,root,root) %{_libdir}/libglide3.so
 %attr(755,root,root) %{_libdir}/libglide3x.so
-%attr(755,root,root) %{_libdir}/libglide3x.so.3
 %attr(755,root,root) %{_libdir}/libtexus.so.1.1
 %attr(755,root,root) %ghost %{_libdir}/libtexus.so.1
 %attr(755,root,root) %{_libdir}/libtexus.so
 
+%if %{with glide_sdk}
+%files -n Glide2x_SDK
+%defattr(644,root,root,755)
+%{_includedir}/glide
+%{_examplesdir}/glide2x-%{version}
+
+%files -n Glide3x_SDK
+%defattr(644,root,root,755)
+%{_includedir}/glide3
+%{_examplesdir}/glide3x-%{version}
+%endif
+
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
 * %{date} PLD Team <feedback at pld-linux.org>
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.23  2012/01/14 21:23:10  qboosh
+- dropped libglide2x.so.2/libglide3x.so.3 symlinks (overkill)
+- allow building glide SDKs from this spec
+
 Revision 1.22  2012/01/09 17:09:22  qboosh
 - added gcc4,gasp,cpp,link patches
 - fixed License field
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/Glide_V2/Glide_V2.spec?r1=1.22&r2=1.23&f=u



More information about the pld-cvs-commit mailing list