SPECS: svgalib24.spec (NEW) - ugly - copied svgalib.spec with forc...

qboosh qboosh at pld-linux.org
Tue Jan 24 12:39:22 CET 2006


Author: qboosh                       Date: Tue Jan 24 11:39:22 2006 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- ugly - copied svgalib.spec with forced kernel24 bconds, just to get
  kernel24 modules and overcome ftp automatics

---- Files affected:
SPECS:
   svgalib24.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/svgalib24.spec
diff -u /dev/null SPECS/svgalib24.spec:1.1
--- /dev/null	Tue Jan 24 12:39:22 2006
+++ SPECS/svgalib24.spec	Tue Jan 24 12:39:14 2006
@@ -0,0 +1,967 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without	dist_kernel	# without distribution kernel
+%bcond_without	kernel		# don't build kernel modules
+%bcond_with	kernel24	# force using kernel24 headers
+%bcond_without	smp		# don't build smp module
+%bcond_without	userspace	# don't build userspace packages
+#
+%define		with_kernel24	1
+%undefine	with_userspace
+%define		_kernelsrcdir	/usr/src/linux-2.4
+%define		kernel26	0
+%define		k24		24
+Summary:	Library for full screen [S]VGA graphics
+Summary(de):	Library für Vollbildschirm-[S]VGA-Grafiken
+Summary(es):	Biblioteca para gráficos en pantalla llena [S]VGA
+Summary(fr):	Une librairie graphique SVGA plein ecran de bas niveau
+Summary(pl):	Biblioteki dla pełnoekranowej grafiki [S]VGA
+Summary(pt_BR):	Biblioteca para gráficos em tela cheia [S]VGA
+Summary(ru):	îÉÚËĎŐŇĎ×ÎĹ×ÁŃ ÂÉÂĚÉĎÔĹËÁ ĐĎĚÎĎÜËŇÁÎÎĎĘ SVGA ÇŇÁĆÉËÉ
+Summary(tr):	Tam-ekran [S]VGA çizimleri kitaplýđý
+Summary(uk):	îÉÚŘËĎŇŚ×ÎĹ×Á ÂŚÂĚŚĎÔĹËÁ ĐĎ×ÎĎĹËŇÁÎÎϧ SVGA ÇŇÁĆŚËÉ
+Name:		svgalib24
+Version:	1.9.24
+%define	_rel	1
+Release:	%{_rel}
+License:	distributable
+Group:		Libraries
+Source0:	http://www.arava.co.il/matan/svgalib/svgalib-%{version}.tar.gz
+# Source0-md5:	3be376c08462caf88cfc150239481110
+Patch0:		svgalib-pld.patch
+Patch1:		svgalib-tmp2TMPDIR.patch
+Patch2:		svgalib-DESTDIR.patch
+Patch3:		svgalib-smp.patch
+Patch4:		svgalib-threeDKit-make.patch
+Patch5:		svgalib-svgalib_helper_Makefile.patch
+Patch6:		svgalib-link.patch
+Patch7:		svgalib-module-alias.patch
+Patch8:		svgalib-sparc.patch
+Patch9:		svgalib-depend.patch
+Patch10:	svgalib-ppc_memset.patch
+Patch11:	svgalib-no-sys-io.patch
+Patch12:	svgalib-linux-2.4.patch
+Patch13:	svgalib-no-asm-segment.patch
+Patch14:	svgalib-linux26.patch
+URL:		http://www.arava.co.il/matan/svgalib/
+%if %{with kernel} && %{with dist_kernel}
+%if %{kernel26}
+BuildRequires:	kernel-module-build >= 2.6.0
+%else
+BuildRequires:	kernel24-headers >= 2.4.0
+%endif
+%endif
+BuildRequires:	rpmbuild(macros) >= 1.153
+# no sparc64 yet acc. to changelog
+# kernel module requires at least sys32_ioctl translation function
+# (isnt's required for 32-bit userland on x86_64 too?)
+ExclusiveArch:	%{ix86} %{x8664} alpha arm hppa ia64 m68k mips ppc sparc sparcv9
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_sysconfdir	/etc/vga
+%define		specflags	-fomit-frame-pointer
+
+%if %{kernel26}
+%define	kmodext	ko
+%else
+%define	kmodext	o
+%endif
+
+%description
+The svgalib package provides the SVGAlib low-level graphics library
+for Linux. SVGAlib is a library which allows applications to use full
+screen graphics on a variety of hardware platforms. Many games and
+utilities use SVGAlib for their graphics.
+
+%description -l de
+SVGAlib ist eine Library, die es Applikationen gestattet, auf einer
+Reihe von Plattformen Vollbild-Grafiken zu benutzen. Viele Games und
+Utilities nutzen diese Library für den Grafikzugriff, da sie für
+Maschinen mit wenig Speicher besser geeignet ist als X-Window.
+
+%description -l es
+SVGAlib es una biblioteca que permite a las aplicaciones usar gráficos
+de pantalla llena en una variedad de plataformas de hardware. Muchos
+juegos y utilitarios son puestos a disposición para usar la SVGAlib
+para acceso a gráficos, pues es más indicado en máquinas con poca
+memoria para ejecutar un sistema X Window.
+
+%description -l fr
+Le package svgalib apporte la librairie graphique SVGAlib de bas
+niveau pour Linux. SVGAlib est une librairie qui permet aux
+applications d'utiliser des graphismes en plein écran sur diverses
+plateformes matérielles. De nombreux jeux et utilitaires utilisent
+SVGAlib pour leurs graphismes.
+
+%description -l pl
+Biblioteki dla pełnoekranowej grafiki [S]VGA. Wiele gier i programów
+użytkowych korzysta z tych bibliotek, gdyż wymagają mniej pamięci niż
+X Window System.
+
+%description -l pt_BR
+SVGAlib é uma biblioteca que permite a aplicaçőes usar gráficos de
+tela cheia em uma variedade de plataformas de hardware. Muitos jogos e
+utilitários săo disponibilizados para usar a SVGAlib para acesso a
+gráficos, pois ele é mais indicado em máquinas com pouca memória para
+rodar um sistema X Window.
+
+%description -l ru
+îÉÚËĎŐŇĎ×ÎĹ×ÁŃ ÇŇÁĆÉŢĹÓËÁŃ ÂÉÂĚÉĎÔĹËÁ SVGAlib ĎÂĹÓĐĹŢÉ×ÁĹÔ ŇÁÂĎÔŐ Ó
+ÇŇÁĆÉŢĹÓËÉÍÉ ŇĹÖÉÍÁÍÉ VGA É SVGA Ó ËĎÎÓĎĚÉ. SVGAlib ĐĎÚ×ĎĚŃĹÔ
+ĐŇÉĚĎÖĹÎÉŃÍ ÉÓĐĎĚŘÚĎ×ÁÔŘ ĐĎĚÎĎÜËŇÁÎÎŐŔ ÇŇÁĆÉËŐ ÎÁ ŇÁÚÎĎĎÂŇÁÚÎŮČ
+ÁĐĐÁŇÁÔÎŮČ ĐĚÁÔĆĎŇÍÁČ.
+
+óŐÝĹÓÔ×ŐĹÔ ÍÎĎÖĹÓÔ×Ď ÉÇŇ É ŐÔÉĚÉÔ, ÉÓĐĎĚŘÚŐŔÝÉČ SVGAlib ÄĚŃ ×Ů×ĎÄÁ
+ÇŇÁĆÉËÉ. ÷ÁÍ ÎĹĎÂČĎÄÉÍĎ ÂŐÄĹÔ ŐÓÔÁÎĎ×ÉÔŘ svgalib, ĹÓĚÉ ×Ů ÉÓĐĎĚŘÚŐĹÔĹ
+ÔÁËÉĹ ĐŇĎÇŇÁÍÍŮ.
+
+%description -l tr
+SVGAlib, deđiţik donaným platformlarý üzerinde, uygulamalarýn tam
+ekran çizim kullanmalarýný sađlayan bir kitaplýktýr. Az bellekli
+makinalar için X-Window'tan daha uygun olmasýnýn yanýsýra, pek çok
+oyun ve yardýmcý programlar çizim eriţimi için bu kitaplýđý kullanýr.
+
+%description -l uk
+îÉÚŘËĎŇŚ×ÎĹ×Á ÇŇÁĆŚŢÎÁ ÂŚÂĚŚĎÔĹËÁ SVGAlib ÚÁÂĹÚĐĹŢŐ¤ ŇĎÂĎÔŐ Ú
+ÇŇÁĆŚŢÎÉÍÉ ŇĹÖÉÍÁÍÉ VGA ÔÁ SVGA Ú ËĎÎÓĎĚŚ. SVGAlib ĐŚÄÔŇÉÍŐ¤
+ĐĎ×ÎĎĹËŇÁÎÎŐ ÇŇÁĆŚËŐ ÎÁ ŇŚÚÎĎÍÁÎŚÔÎÉČ ÁĐÁŇÁÔÎÉČ ĐĚÁÔĆĎŇÍÁČ.
+
+śÓÎŐ¤ ŢÉÍÁĚĎ ŚÇĎŇ ÔÁ ŐÔÉĚŚÔ, ŃËŚ ×ÉËĎŇÉÓÔĎ×ŐŔÔŘ SVGAlib ÄĚŃ ×É×ĎÄŐ
+ÇŇÁĆŚËÉ. ÷ÁÍ ÎĹĎÂČŚÄÎĎ ÂŐÄĹ ×ÓÔÁÎĎ×ÉÔÉ svgalib, ŃËÝĎ ×É ËĎŇÉÓÔŐ¤ÔĹÓŘ
+ÔÁËÉÍÉ ĐŇĎÇŇÁÍÁÍÉ.
+
+%package devel
+Summary:	Development libraries and include files for [S]VGA graphics
+Summary(de):	Entwicklungs-Libraries und INCLUDE-Dateien für (S)VGA-Grafik
+Summary(es):	Bibliotecas de desarrollo y archivos de inclusión para gráficos [S]VGA
+Summary(fr):	Outils pour développer des programmes utilisant SVGAlib
+Summary(pl):	Pliki nagłówkowe i dokumentacja dla [S]VGA
+Summary(pt_BR):	Bibliotecas de desenvolvimento e arquivos de inclusăo para gráficos [S]VGA
+Summary(ru):	ćÁĘĚŮ ÄĚŃ ĐĎÓÔŇĎĹÎÉŃ ĐŇĎÇŇÁÍÍ, ÉÓĐĎĚŘÚŐŔÝÉČ SVGAlib
+Summary(tr):	[S]VGA grafikleri için geliţtirme kitaplýklarý ve baţlýk dosyalarý
+Summary(uk):	ćÁĘĚÉ ÄĚŃ ĐĎÂŐÄĎ×É ĐŇĎÇŇÁÍ, ÝĎ ×ÉËĎŇÉÓÔĎ×ŐŔÔŘ SVGAlib
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description devel
+The svgalib-devel package contains the libraries and header files
+needed to build programs which will use the SVGAlib low-level graphics
+library.
+
+%description devel -l de
+Dies sind die Libraries und Header-Dateien, die zum Erstellen von
+Programmen erforderlich sind, die SVGAlib verwenden. Mit SVGAlib
+können Programme Vollbildgrafiken auf einer Reihe von Plattformen
+verwenden, ohne den von X erforderlichen Overhead.
+
+%description devel -l es
+Estas son las bibliotecas y archivos de inclusión que son necesarios
+para construir programas que usan SVGAlib. Permite que los programas
+usen gráficos de pantalla llena en una variedad de plataformas de
+hardware sin el overhead del X.
+
+%description devel -l fr
+Le package svgalib-devel contient les librairies et les fichiers
+d'entętes nécessaires pour construire des programmes qui utiliseront
+la librairie graphique plein écran de bas-niveau SVGAlib.
+
+%description devel -l pl
+Pliki nagłówkowe i dokumentacja dla [S]VGA.
+
+%description devel -l pt_BR
+Estas săo as bibliotecas e arquivos de inclusăo que săo necessários
+para construir programas que usam SVGAlib. SVGAlib permite que
+programas usem gráficos de tela cheia em uma variedade de plataformas
+de hardware sem o overhead do X.
+
+%description devel -l ru
+üÔĎ ĆÁĘĚŮ, ÎĹĎÂČĎÄÉÍŮĹ ÄĚŃ ËĎÍĐÉĚŃĂÉÉ ĐŇĎÇŇÁÍÍ, ÉÓĐĎĚŘÚŐŔÝÉČ
+ÂÉÂĚÉĎÔĹËŐ SVGAlib. SVGAlib ĐĎÚ×ĎĚŃĹÔ ĐŇĎÇŇÁÍÍÁÍ ÉÓĐĎĚŘÚĎ×ÁÔŘ
+ĐĎĚÎĎÜËŇÁÎÎŐŔ ÇŇÁĆÉËŐ ÎÁ ŇÁÚÎĎĎÂŇÁÚÎŮČ ÁĐĐÁŇÁÔÎŮČ ĐĚÁÔĆĎŇÍÁČ É ÂĹÚ
+ÎĹĎÂČĎÄÉÍĎÓÔÉ ÚÁĐŐÓËÁÔŘ ÄĚŃ ÜÔĎÇĎ X Window.
+
+%description devel -l tr
+Bu paket, SVGAlib kitaplýđýný kullanan programlar geliţtirmek için
+gereken baţlýk dosyalarýný ve statik kitaplýklarý içerir.
+
+%description devel -l uk
+ăĹ ĆÁĘĚÉ, ÎĹĎÂČŚÄÎŚ ÄĚŃ ËĎÍĐŚĚŃĂŚ§ ĐŇĎÇŇÁÍ, ÝĎ ×ÉËĎŇÉÓÔĎ×ŐŔÔŘ
+ÂŚÂĚŚĎÔĹËŐ SVGAlib. SVGAlib ÄÁ¤ ĐŇĎÇŇÁÍÁÍ ÍĎÖĚÉ׌ÓÔŘ ĐŇÁĂŔ×ÁÔÉ Ú
+ĐĎ×ÎĎĹËŇÁÎÎĎŔ ÇŇÁĆŚËĎŔ ÎÁ ŇŚÚÎĎÍÁÎŚÔÎÉČ ÁĐÁŇÁÔÎÉČ ĐĚÁÔĆĎŇÍÁČ ÔÁ ÂĹÚ
+ÎĹĎÂČŚÄÎĎÓÔŚ ÚÁĐŐÓËÁÔÉ ÄĚŃ ĂŘĎÇĎ X Window.
+
+%package static
+Summary:	Static [S]VGA graphics librarires
+Summary(pl):	Biblioteki statyczne [S]VGA
+Summary(pt_BR):	Bibliotecas estáticas para desenvolvimento com SVGAlib
+Summary(ru):	óÔÁÔÉŢĹÓËÉĹ ÂÉÂĚÉĎÔĹËÉ ÄĚŃ ĐĎÓÔŇĎĹÎÉŃ ĐŇĎÇŇÁÍÍ, ÉÓĐĎĚŘÚŐŔÝÉČ SVGAlib
+Summary(uk):	óÔÁÔÉŢÎŚ ÂŚÂĚŚĎÔĹËÉ ÄĚŃ ĐĎÂŐÄĎ×É ĐŇĎÇŇÁÍ, ÝĎ ×ÉËĎŇÉÓÔĎ×ŐŔÔŘ SVGAlib
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description static
+Static [S]VGA graphics librarires.
+
+%description static -l pl
+Biblioteki statyczne [S]VGA.
+
+%description static -l pt_BR
+Bibliotecas estáticas para desenvolvimento com SVGAlib.
+
+%description static -l ru
+üÔĎ ĆÁĘĚŮ, ÎĹĎÂČĎÄÉÍŮĹ ÄĚŃ ËĎÍĐÉĚŃĂÉÉ ĐŇĎÇŇÁÍÍ, ÉÓĐĎĚŘÚŐŔÝÉČ
+ÂÉÂĚÉĎÔĹËŐ SVGAlib. SVGAlib ĐĎÚ×ĎĚŃĹÔ ĐŇĎÇŇÁÍÍÁÍ ÉÓĐĎĚŘÚĎ×ÁÔŘ
+ĐĎĚÎĎÜËŇÁÎÎŐŔ ÇŇÁĆÉËŐ ÎÁ ŇÁÚÎĎĎÂŇÁÚÎŮČ ÁĐĐÁŇÁÔÎŮČ ĐĚÁÔĆĎŇÍÁČ É ÂĹÚ
+ÎĹĎÂČĎÄÉÍĎÓÔÉ ÚÁĐŐÓËÁÔŘ ÄĚŃ ÜÔĎÇĎ X Window.
+
+%description static -l uk
+ăĹ ĆÁĘĚÉ, ÎĹĎÂČŚÄÎŚ ÄĚŃ ËĎÍĐŚĚŃĂŚ§ ĐŇĎÇŇÁÍ, ÝĎ ×ÉËĎŇÉÓÔĎ×ŐŔÔŘ
+ÂŚÂĚŚĎÔĹËŐ SVGAlib. SVGAlib ÄÁ¤ ĐŇĎÇŇÁÍÁÍ ÍĎÖĚÉ׌ÓÔŘ ĐŇÁĂŔ×ÁÔÉ Ú
+ĐĎ×ÎĎĹËŇÁÎÎĎŔ ÇŇÁĆŚËĎŔ ÎÁ ŇŚÚÎĎÍÁÎŚÔÎÉČ ÁĐÁŇÁÔÎÉČ ĐĚÁÔĆĎŇÍÁČ ÔÁ ÂĹÚ
+ÎĹĎÂČŚÄÎĎÓÔŚ ÚÁĐŐÓËÁÔÉ ÄĚŃ ĂŘĎÇĎ X Window.
+
+%package -n kernel%{k24}-video-svgalib_helper
+Summary:	svgalib's helper kernel module
+Summary(de):	Svgalibs Helferkernmodul
+Summary(es):	Bibliotecas de desarrollo y archivos de inclusión para gráficos [S]VGA
+Summary(pl):	Pomocniczy moduł jądra svgaliba
+Summary(pt_BR):	Bibliotecas de desenvolvimento e arquivos de inclusăo para gráficos [S]VGA
+Group:		Base/Kernel
+Release:	%{_rel}@%{_kernel_ver_str}
+%{?with_dist_kernel:%requires_releq_kernel_up}
+Requires(post,postun):	/sbin/depmod
+Provides:	svgalib-helper = %{version}-%{release}
+Obsoletes:	svgalib-helper
+
+%description -n kernel%{k24}-video-svgalib_helper
+This package contains the kernel module necessary to run svgalib-based
+programs.
+
+%description -n kernel%{k24}-video-svgalib_helper -l pl
+Ten pakiet zawiera moduł jądra potrzebny do uruchamiania programów
+opartych na svgalib.
+
+%package -n kernel%{k24}-smp-video-svgalib_helper
+Summary:	svgalib's helper kernel module for SMP
+Summary(pl):	Pomoczniczy moduł jądra svgalib dla SMP
+Group:		Base/Kernel
+Release:	%{_rel}@%{_kernel_ver_str}
+%{?with_dist_kernel:%requires_releq_kernel_smp}
+Requires(post,postun):	/sbin/depmod
+Provides:	svgalib-helper = %{version}-%{release}
+Obsoletes:	svgalib-helper
+
+%description -n kernel%{k24}-smp-video-svgalib_helper
+This package contains the kernel module necessary to run svgalib-based
+programs.
+
+%description -n kernel%{k24}-smp-video-svgalib_helper -l pl
+Ten pakiet zawiera moduł jądra potrzebny do uruchamiania programów
+opartych na svgalib.
+
+%prep
+%setup -q -n svgalib-%{version}
+%patch0 -p1
+%patch1 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
+%patch6 -p1
+%patch7 -p1
+%patch8 -p1
+%patch9 -p1
+%patch10 -p1
+%patch11 -p1
+%patch12 -p1
+%patch13 -p1
+%patch14 -p1
+
+# remove backup of svgalib.7 - we don't want it in package
+rm -f doc/man7/svgalib.7?*
+
+%build
+%if %{with userspace}
+%ifarch %{ix86}
+NOASM=n
+%else
+NOASM=y
+%endif
+MOPT="%{rpmcflags} -pipe"
+LDFLAGS="%{rpmldflags}"; export LDFLAGS
+
+%{__make} shared \
+	CC="%{__cc}" \
+	OPTIMIZE="$MOPT" \
+	NO_ASM="$NOASM"
+
+%{__make} -C utils \
+	CC="%{__cc}" \
+	LDFLAGS="-L../sharedlib $LDFLAGS" \
+	OPTIMIZE="$MOPT"
+
+%ifarch %{ix86}
+%{__make} -C lrmi-0.6m \
+	CC="%{__cc}" \
+	CFLAGS="$LDFLAGS $MOPT"
+%endif
+%{__make} -C threeDKit \
+	CC="%{__cc} -L../sharedlib $LDFLAGS $MOPT"
+rm -f src/svgalib_helper.h
+
+%{__make} static \
+	CC="%{__cc}" \
+	OPTIMIZE="$MOPT" \
+	NO_ASM="$NOASM"
+
+%{__make} -C threeDKit lib3dkit.a \
+	CC="%{__cc} $MOPT" \
+	ALLOBJS="\$(OBJECTS)"
+%endif
+
+%if %{with kernel}
+%if %{kernel26}
+cd kernel/svgalib_helper
+ln -sf %{_kernelsrcdir}/config-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist} .config
+install -d include/{linux,config}
+ln -sf %{_kernelsrcdir}/include/linux/autoconf-%{?with_dist_kernel:up}%{!?with_dist_kernel:nondist}.h include/linux/autoconf.h
+%ifarch ppc ppc64
+install -d include/asm
+[ ! -d %{_kernelsrcdir}/include/asm-powerpc ] || ln -sf %{_kernelsrcdir}/include/asm-powerpc/* include/asm
+[ ! -d %{_kernelsrcdir}/include/asm-%{_target_base_arch} ] || ln -snf %{_kernelsrcdir}/include/asm-%{_target_base_arch}/* include/asm
+%else
+ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
+%endif
+ln -sf %{_kernelsrcdir}/Module.symvers-up Module.symvers
+touch include/config/MARKER
+if grep -q class_simple_create %{_kernelsrcdir}/include/linux/device.h ; then
+	CLF=-DCLASS_SIMPLE=1
+else
+	CLF=
+fi
+%{__make} -C %{_kernelsrcdir} modules \
+	CLASS_CFLAGS="$CLF" \
+	SUBDIRS=`pwd` \
+	O=`pwd` \
+	V=1
+rm -rf .*.cmd include include2 scripts arch
+cd -
+%else
+%{__make} -C kernel/svgalib_helper -f Makefile.alt \
+	CC="%{kgcc}" \
+%ifarch sparc64
+	LD="ld -m elf64_sparc" \
+%endif
+	COPT="%{rpmcflags}" \
+	INCLUDEDIR=%{_kernelsrcdir}/include
+%endif
+mv -f kernel/svgalib_helper/svgalib_helper.%{kmodext} \
+	 kernel/svgalib_helper-up.%{kmodext}
+rm -f kernel/svgalib_helper/*.*o
+
+%if %{with dist_kernel} && %{with smp}
+%if %{kernel26}
+cd kernel/svgalib_helper
+ln -sf %{_kernelsrcdir}/config-smp .config
+install -d include/{linux,config}
+ln -sf %{_kernelsrcdir}/include/linux/autoconf-smp.h include/linux/autoconf.h
+%ifarch ppc ppc64
+install -d include/asm
+[ ! -d %{_kernelsrcdir}/include/asm-powerpc ] || ln -sf %{_kernelsrcdir}/include/asm-powerpc/* include/asm
+[ ! -d %{_kernelsrcdir}/include/asm-%{_target_base_arch} ] || ln -snf %{_kernelsrcdir}/include/asm-%{_target_base_arch}/* include/asm
+# no longer exists in 2.6.14.x
+touch include/asm/segment.h
+%else
+ln -sf %{_kernelsrcdir}/include/asm-%{_target_base_arch} include/asm
+%endif
+ln -sf %{_kernelsrcdir}/Module.symvers-smp Module.symvers
+touch include/config/MARKER
+%{__make} -C %{_kernelsrcdir} modules \
+	CLASS_CFLAGS="$CLF" \
+	SUBDIRS=`pwd` \
+	O=`pwd` \
+	V=1
+cd -
+%else
+%{__make} -C kernel/svgalib_helper -f Makefile.alt \
+	CC="%{kgcc}" \
+%ifarch sparc64
+	LD="ld -m elf64_sparc" \
+%endif
+	COPT="%{rpmcflags} -D__KERNEL_SMP" \
+	INCLUDEDIR=%{_kernelsrcdir}/include
+%endif
+%endif
+%endif
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%if %{with userspace}
+install -d $RPM_BUILD_ROOT/var/lib/svgalib
+%{__make} installheaders installsharedlib installconfig installstaticlib \
+	installutils installman lib3dkit-install \
+	DESTDIR=$RPM_BUILD_ROOT \
+	libdir=%{_libdir} \
+	sharedlibdir=%{_libdir}
+
+install threeDKit/lib3dkit.a $RPM_BUILD_ROOT%{_libdir}
+
+%ifarch %{ix86}
+# omitted by main Makefile
+install lrmi-0.6m/vga_reset $RPM_BUILD_ROOT%{_bindir}
+%endif
+%endif
+
+%if %{with kernel}
+install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc
+install kernel/svgalib_helper-up.%{kmodext} \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}/misc/svgalib_helper.%{kmodext}
+%if %{with dist_kernel} && %{with smp}
+install -d $RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc
+install kernel/svgalib_helper/svgalib_helper.%{kmodext} \
+	$RPM_BUILD_ROOT/lib/modules/%{_kernel_ver}smp/misc/svgalib_helper.%{kmodext}
+%endif
+%endif
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%post	-n kernel%{k24}-video-svgalib_helper
+%depmod %{_kernel_ver}
+
+%postun -n kernel%{k24}-video-svgalib_helper
+%depmod %{_kernel_ver}
+
+%post	-n kernel%{k24}-smp-video-svgalib_helper
+%depmod %{_kernel_ver}smp
+
+%postun -n kernel%{k24}-smp-video-svgalib_helper
+%depmod %{_kernel_ver}smp
+
+%if %{with userspace}
+%files
+%defattr(644,root,root,755)
+%doc doc/{CHANGES*,DESIGN,READ*,TODO} 0-README
+
+%dir %{_sysconfdir}
+%dir /var/lib/svgalib
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/*
+%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_libdir}/lib*.so.*.*
+%{_mandir}/man[1567]/*
+%ifarch %{ix86}
+%{_mandir}/man8/mode3.8*
+%{_mandir}/man8/vga_reset.8*
+%endif
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}/*.h
+%attr(755,root,root) %{_libdir}/lib*.so
+%{_mandir}/man3/*
+
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/lib*.a
+%endif
+
+%if %{with kernel}
+%files -n kernel%{k24}-video-svgalib_helper
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}/misc/svgalib_helper.%{kmodext}*
+
+%if %{with dist_kernel} && %{with smp}
+%files -n kernel%{k24}-smp-video-svgalib_helper
+%defattr(644,root,root,755)
+/lib/modules/%{_kernel_ver}smp/misc/svgalib_helper.%{kmodext}*
+%endif
+%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.1  2006/01/24 11:39:14  qboosh
+- ugly - copied svgalib.spec with forced kernel24 bconds, just to get
+  kernel24 modules and overcome ftp automatics
+
+Revision 1.153  2006/01/11 20:42:11  qboosh
+- updated to 1.9.24
+- added linux26 (needed for Linux 2.6.15)
+- autoconf-nondist.h support
+
+Revision 1.152  2006/01/09 10:29:55  qboosh
+- added no-asm-segment patch
+- less noise if building without kernel and kernel headers are not installed
+
+Revision 1.151  2006/01/09 10:05:22  qboosh
+- build only UP module for kernel 2.6 on sparc(32)
+
+Revision 1.150  2005/12/13 15:14:18  glen
+- adapterized (sorted %verify attrs)
+
+Revision 1.149  2005/12/09 13:41:24  qboosh
+- hacks for asm-ppc* transition in 2.6.14.x
+
+Revision 1.148  2005/12/09 13:03:26  qboosh
+- added linux-2.4 patch, fixed kernel24 builds
+
+Revision 1.147  2005/12/08 14:19:03  qboosh
+- added no-sys-io patch
+
+Revision 1.146  2005/10/12 17:46:39  qboosh
+- fixed build on 2.6.x with new class_simple interface (buggy test in Makefile)
+
+Revision 1.145  2005/10/12 17:03:17  qboosh
+- cleanups related to !dist_kernel
+
+Revision 1.144  2005/10/10 12:24:52  qboosh
+- updated to 1.9.23, updated pld,DESTDIR patches, removed obsolete linux26 patch
+- package vga_reset program on x86
+
+Revision 1.143  2005/09/15 18:25:05  sparky
+- prepared for kernel >= 2.6.13: link Module.symvers
+
+Revision 1.142  2005/09/06 18:23:44  arekm
+- rel 5
+
+Revision 1.141  2005/05/21 21:55:00  ankry
+- tabs
+
+Revision 1.140  2005/05/21 21:09:27  averne
+- rel 4
+
+Revision 1.139  2005/05/11 17:05:48  qboosh
+- use x8664 macro
+
+Revision 1.138  2005/05/06 13:15:26  qboosh
+- use _target_base_arch
+
+Revision 1.137  2005/05/02 22:49:30  mmazur
+- rel 3; finally builds everywhere
+
+Revision 1.136  2005/05/02 22:21:03  mmazur
+- rel 2 for th
+
+Revision 1.135  2005/05/02 16:42:24  mmazur
+- added ppc_memset patch
+
+Revision 1.134  2005/04/23 17:31:55  qboosh
+- updated to 1.9.21, removed obsolete asm_fix patch
+
+Revision 1.133  2005/04/21 09:04:32  qboosh
+- static threeDKit build bugfix, rel 3
+
+Revision 1.132  2005/04/14 14:21:57  qboosh
+- added linux26 patch (to make it usable with devfs-enabled 2.6.10+)
+- release 2
+
+Revision 1.131  2005/03/21 23:16:46  qboosh
+- updated to 1.9.20
+- updated pld,DESTDIR,link,depend patches, removed obsolete linux26 patch
+
+Revision 1.130  2005/02/14 23:01:13  adamg
+- added asm_fix.patch, release 6
+
+Revision 1.129  2005/02/12 15:23:56  qboosh
+- added linux26 patch (Linux 2.6.10 compatibility); release 5
+
+Revision 1.128  2004/10/31 15:32:13  paladine
+- spaces->tabs
+
+Revision 1.127  2004/10/19 17:06:23  havner
+- rel 4
+
+Revision 1.126  2004/09/16 18:17:12  qboosh
+- uh, release 3 to build with both kernel versions
+
+Revision 1.125  2004/08/27 10:45:50  qboosh
+- rename kernel 2.4.x modules to kernel24-*
+- added bcond to force using kernel24 headers (and thus build kernel24 modules)
+
+Revision 1.124  2004/07/19 22:36:58  qboosh
+- added depend patch
+
<<Diff was trimmed, longer than 597 lines>>


More information about the pld-cvs-commit mailing list