packages: Glide_V5-DRI/Glide_V5-DRI.spec - moved headers and examples to Gl...

qboosh qboosh at pld-linux.org
Sun Jan 15 15:02:21 CET 2012


Author: qboosh                       Date: Sun Jan 15 14:02:21 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- moved headers and examples to Glide3_SDK package (built on glide3_sdk bcond, on by default)

---- Files affected:
packages/Glide_V5-DRI:
   Glide_V5-DRI.spec (1.29 -> 1.30) 

---- Diffs:

================================================================
Index: packages/Glide_V5-DRI/Glide_V5-DRI.spec
diff -u packages/Glide_V5-DRI/Glide_V5-DRI.spec:1.29 packages/Glide_V5-DRI/Glide_V5-DRI.spec:1.30
--- packages/Glide_V5-DRI/Glide_V5-DRI.spec:1.29	Sun Jan  8 12:01:32 2012
+++ packages/Glide_V5-DRI/Glide_V5-DRI.spec	Sun Jan 15 15:02:16 2012
@@ -1,4 +1,8 @@
 # $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	glide3_sdk	# don't build glide3x SDK here
+#
 %define snapdate 20010309
 %define	rel	12
 Summary:	Glide runtime for 3Dfx Voodoo4 and Voodoo5 boards
@@ -78,6 +82,22 @@
 Ten pakiet zawiera statyczne biblioteki Glide3 dla Voodoo4 lub
 Voodoo5.
 
+%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 glide3x-%{snapdate}
 %patch0 -p1
@@ -112,7 +132,6 @@
 
 %install
 rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
 
 # something is recompiled - use GCFLAGS too
 %{__make} -f makefile.autoconf install \
@@ -125,15 +144,21 @@
 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3-v5.so
 # used by ???
 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x_V5.so
+# used by dlopen in X driver
 ln -sf libglide3.so.%{version} $RPM_BUILD_ROOT%{_libdir}/libglide3x.so
 
+%if %{with glide3_sdk}
 # Install the examples and their source, no binaries
+install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
 install h5/glide3/tests/makefile.linux $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests/makefile
 install h5/glide3/tests/*.3df $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
 install h5/glide3/tests/test??.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
 install h5/glide3/tests/tldata.inc $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
 install h5/glide3/tests/tlib.[ch] $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests
 gzip -9nf $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}/tests/*.3df
+%else
+%{__rm} -r $RPM_BUILD_ROOT%{_includedir}/glide3
+%endif
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -154,19 +179,27 @@
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_libdir}/libglide3.so
 %{_libdir}/libglide3.la
-%{_includedir}/glide3
-%{_examplesdir}/%{name}-%{version}
 
 %files static
 %defattr(644,root,root,755)
 %{_libdir}/libglide3.a
 
+%if %{with glide3_sdk}
+%files -n Glide3_SDK
+%defattr(644,root,root,755)
+%{_includedir}/glide3
+%{_examplesdir}/%{name}-%{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.30  2012/01/15 14:02:16  qboosh
+- moved headers and examples to Glide3_SDK package (built on glide3_sdk bcond, on by default)
+
 Revision 1.29  2012/01/08 11:01:32  qboosh
 - added gcc4 and no_redefine_macro patches (based on Debian patches), updated cpp arguments to fix build with gcc 4
 - updated to use modern xorg instead of X11R6
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/Glide_V5-DRI/Glide_V5-DRI.spec?r1=1.29&r2=1.30&f=u



More information about the pld-cvs-commit mailing list