SPECS (ALLEGRO_WIP): allegro.spec - up to 4.3.10 WIP version - add...

lisu lisu at pld-linux.org
Mon Mar 24 20:20:54 CET 2008


Author: lisu                         Date: Mon Mar 24 19:20:54 2008 GMT
Module: SPECS                         Tag: ALLEGRO_WIP
---- Log message:
- up to 4.3.10 WIP version
- add allegrogl bcond (it's not necessary to build with this module)
- hash autoheader macro - doesn't work in this revision
- some files excluded

---- Files affected:
SPECS:
   allegro.spec (1.16 -> 1.16.2.1) 

---- Diffs:

================================================================
Index: SPECS/allegro.spec
diff -u SPECS/allegro.spec:1.16 SPECS/allegro.spec:1.16.2.1
--- SPECS/allegro.spec:1.16	Thu Aug 22 19:48:43 2002
+++ SPECS/allegro.spec	Mon Mar 24 20:20:48 2008
@@ -1,44 +1,93 @@
 # $Revision$, $Date$
+#
+# TODO: - Handle situations when there are no modules (most bconds turned off)
+#	- dozen of unpackaged files
+#
+# Conditional build:
+%bcond_without  allegrogl	# without AllegroGL module
+%bcond_without	alsa		# without ALSA modules
+%bcond_without	arts		# without aRts module
+%bcond_without	dga2		# without DGA2 module
+%bcond_without	dbglib		# don't build debug versions of library
+%bcond_without	esd		# without esound module
+%bcond_without	fbcon		# without framebuffer module
+%bcond_without	jack		# without JACK module
+%bcond_without	proflib		# don't debug profiling versions of library
+%bcond_without	sse		# build without sse
+%bcond_without	static		# don't build static versions of library
+%bcond_without	svga		# without svgalib module
+%bcond_without	vga		# without vga module
+#
 Summary:	A game programming library
-Summary(pl):	Biblioteka do programowania gier
+Summary(de.UTF-8):	Eine Bibliothek zur Programmierung von Spielen
+Summary(es.UTF-8):	Una biblioteca de programaciĂłn de juegos
+Summary(fr.UTF-8):	Une librairie de programmation de jeux
+Summary(it.UTF-8):	Una libreria per la programmazione di videogiochi
+Summary(pl.UTF-8):	Biblioteka do programowania gier
 Name:		allegro
-Version:	4.1.0
+Version:	4.3.10
 Release:	0.1
 License:	Giftware
-Group:		X11/Libraries
-Source0:	http://belnet.dl.sourceforge.net/sourceforge/alleg/%{name}-%{version}.tar.gz
-Patch0:		%{name}-makefile.patch
-Patch1:		%{name}-info.patch
-#Patch2:	%{name}-alsa9.patch
-Patch3:		%{name}-examples.patch
-URL:		http://alleg.sourceforge.net
-BuildRequires:	XFree86-devel
-BuildRequires:	esound-devel
-%ifnarch sparc sparc64
-BuildRequires:	alsa-lib-devel
-%endif
-%ifarch %{ix86} alpha
-BuildRequires:	svgalib-devel
+Group:		Libraries
+Source0:	http://dl.sourceforge.net/alleg/%{name}-%{version}.tar.gz
+# Source0-md5:	edf2181e1d787d57df430e59ecc08b28
+Patch0:		%{name}-info.patch
+Patch1:		%{name}-examples.patch
+Patch2:		%{name}-opt.patch
+Patch3:		%{name}-ldflags.patch
+Patch4:		%{name}-frame-pointer.patch
+Patch5:		%{name}-config.patch
+URL:		http://alleg.sourceforge.net/
+%{?with_allegrogl:BuildRequires:	allegro-gl-devell}
+%{?with_alsa:BuildRequires:	alsa-lib-devel}
+%{?with_arts:BuildRequires:	artsc-devel}
+BuildRequires:	autoconf >= 2.53
+BuildRequires:	automake
+%{?with_esd:BuildRequires:	esound-devel}
+%if %{with jack}
+BuildRequires:	jack-audio-connection-kit-devel
+BuildRequires:	pkgconfig
 %endif
+%{?with_svga:BuildRequires:	svgalib-devel}
 BuildRequires:	texinfo
+BuildRequires:	xorg-lib-libX11-devel
+BuildRequires:	xorg-lib-libXcursor-devel
+BuildRequires:	xorg-lib-libXext-devel
+BuildRequires:	xorg-lib-libXpm-devel
+BuildRequires:	xorg-lib-libXxf86dga-devel
+BuildRequires:	xorg-lib-libXxf86vm-devel
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_prefix		/usr/X11R6
-%define		_mandir		%{_prefix}/man
-
 %description
 Allegro is a cross-platform library intended for use in computer games
 and other types of multimedia programming.
 
-%description -l pl
-Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w
+%description -l de.UTF-8
+Allegro ist eine plattformĂźbergreifende Bibliothek zur Verwendung in
+Computerspielen und anderen Formen von Multinediaprogrammierung.
+
+%description -l es.UTF-8
+Allegro es una librerĂ­a multi-plataforma creada para ser usada en la
+programaciĂłn de juegos u otro tipo de programaciĂłn multimedia.
+
+%description -l fr.UTF-8
+Allegro est une librairie multi-plateforme destinĂŠe Ă  ĂŞtre utilisĂŠe
+dans les jeux vidĂŠo ou d'autres types de programmation multimĂŠdia.
+
+%description -l it.UTF-8
+Allegro è una libreria multipiattaforma dedicata all'uso nei
+videogiochi ed in altri tipi di programmazione multimediale.
+
+%description -l pl.UTF-8
+Allegro jest przenoĹ›nÄ
 bibliotekÄ
 przeznaczonÄ
 do wykorzystania w
 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
 
 %package devel
 Summary:	A game programming library - header files
-Summary(pl):	Biblioteka do programowania gier - pliki nagłówkowe
-Group:		X11/Development/Libraries
-Requires:	%{name} = %{version}
+Summary(es.UTF-8):	Archivos de inclusiĂłn
+Summary(pl.UTF-8):	Biblioteka do programowania gier - pliki nagłówkowe
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
 
 %description devel
 Allegro is a cross-platform library intended for use in computer games
@@ -47,43 +96,44 @@
 This package contains header files neccessary for compiling
 applications using allegro library.
 
-%description devel -l pl
-Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w
-grach komputerowych i innych rodzajach oprogramowania multimedialnego.
-
-Ten pakiet zawiera pliki nagłówkowe niezbędne do kompilowania
-aplikacji wykorzystujących bibliotekę allegro.
-
-%package tests
-Summary:	A game programming library - test programs
-Summary(pl):	Biblioteka do programowania gier - programy testujące
-Group:		X11/Development/Libraries
-Requires:	%{name} = %{version}
-
-%description tests
-This package contains programs for testing allegro library.
-
-%description tests -l pl
-Pakiet zawiera programy testujące bibliotekę allegro.
+%description devel -l de.UTF-8
+Allegro ist eine plattformĂźbergreifende Bibliothek zur Verwendung in
+Computerspielen und anderen Formen von Multinediaprogrammierung.
+Dieses Paket wird benĂśtigt, um Programme zu bauen, die Allegro
+verwenden.
+
+%description devel -l es.UTF-8
+Allegro es una librerĂ­a multi-plataforma creada para ser usada en la
+programaciĂłn de juegos u otro tipo de programaciĂłn multimedia. Este
+paquete es necesario para compilar los programas que usen Allegro.
+
+%description devel -l fr.UTF-8
+Allegro est une librairie multi-plateforme destinĂŠe Ă  ĂŞtre utilisĂŠe
+dans les jeux vidĂŠo ou d'autres types de programmation multimĂŠdia. Ce
+package est nĂŠcessaire pour compiler les programmes utilisant Allegro.
+
+%description devel -l it.UTF-8
+Allegro è una libreria multipiattaforma dedicata all'uso nei
+videogiochi ed in altri tipi di programmazione multimediale. Questo
+pacchetto è necessario per compilare programmi scritti con Allegro.
 
-%package examples
-Summary:	A game programming library - examples
-Summary(pl):	Biblioteka do programowania gier - programy przykładowe
-Group:		X11/Development/Libraries
-Requires:	%{name} = %{version}
-
-%description examples
-This package contains example programs which are showing
-allegro features.
+%description devel -l pl.UTF-8
+Allegro jest przenoĹ›nÄ
 bibliotekÄ
 przeznaczonÄ
 do wykorzystania w
+grach komputerowych i innych rodzajach oprogramowania multimedialnego.
 
-%description examples -l pl
-Pakiet zawiera programy przykładowe demonstrujące mo?liwości biblioteki allegro.
+Ten pakiet zawiera pliki nagłówkowe niezbędne do kompilowania
+aplikacji wykorzystujÄ
cych bibliotekÄ™ allegro.
 
 %package static
 Summary:	A game programming library - static libraries
-Summary(pl):	Biblioteka do programowania gier - biblioteki statyczne
-Group:		X11/Development/Libraries
-Requires:	%{name}-devel = %{version}
+Summary(pl.UTF-8):	Biblioteka do programowania gier - biblioteki statyczne
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+Requires:	xorg-lib-libX11-devel
+Requires:	xorg-lib-libXcursor-devel
+Requires:	xorg-lib-libXext-devel
+Requires:	xorg-lib-libXpm-devel
+Requires:	xorg-lib-libXxf86vm-devel
 
 %description static
 Allegro is a cross-platform library intended for use in computer games
@@ -92,18 +142,71 @@
 This package contains static libraries for linking with allegro
 applications.
 
-%description static -l pl
-Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w
+%description static -l pl.UTF-8
+Allegro jest przenoĹ›nÄ
 bibliotekÄ
 przeznaczonÄ
 do wykorzystania w
 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
 
-Ten pakiet zawiera biblioteki statyczne do linkowania z aplikacjami
-wykorzystującymi allegro.
+Ten pakiet zawiera biblioteki statyczne do konsolidacji z aplikacjami
+wykorzystujÄ
cymi allegro.
+
+%package debug
+Summary:	liballd - debug version of shared allegro library
+Summary(pl.UTF-8):	liballd - wersja debug dzielonej biblioteki allegro
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description debug
+liballd - debug version of shared allegro library (contains debugging
+symbols and other information).
+
+%description debug -l pl.UTF-8
+liballd - wersja debug dzielonej biblioteki allegro (zawierajÄ
ca
+symbole i inne informacje potrzebne przy odpluskwianiu).
+
+%package debug-static
+Summary:	liballd - debug version of static allegro library
+Summary(pl.UTF-8):	liballd - wersja debug statycznej biblioteki allegro
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description debug-static
+liballd - debug version of static allegro library (contains debugging
+symbols and other information).
+
+%description debug-static -l pl.UTF-8
+liballd - wersja debug statycznej biblioteki allegro (zawierajÄ
ca
+symbole i inne informacje potrzebne przy odpluskwianiu).
+
+%package profile
+Summary:	liballp - profiling version of shared allegro library
+Summary(pl.UTF-8):	liballp - wersja dzielonej biblioteki allegro sĹ‚uĹźÄ
ca do profilowania
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description profile
+liballp - profiling version of shared allegro library.
+
+%description profile -l pl.UTF-8
+liballp - wersja dzielonej biblioteki allegro sĹ‚uĹźÄ
ca do profilowania.
+
+%package profile-static
+Summary:	liballp - profiling version of static allegro library
+Summary(pl.UTF-8):	liballp - wersja statycznej biblioteki allegro sĹ‚uĹźÄ
ca do profilowania
+Group:		Development/Libraries
+Requires:	%{name}-devel = %{version}-%{release}
+
+%description profile-static
+liballp - profiling version of static allegro library.
+
+%description profile-static -l pl.UTF-8
+liballp - wersja statycznej biblioteki allegro sĹ‚uĹźÄ
ca do
+profilowania.
 
 %package svgalib
 Summary:	A game programming library - svgalib module
-Summary(pl):	Biblioteka do programowania gier - moduł dla svgalib
-Group:		X11/Libraries
-PreReq:		%{name} = %{version}
+Summary(pl.UTF-8):	Biblioteka do programowania gier - moduł dla svgalib
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
 
 %description svgalib
 Allegro is a cross-platform library intended for use in computer games
@@ -111,17 +214,17 @@
 
 This package contains module for use with allegro and svgalib.
 
-%description svgalib -l pl
-Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w
+%description svgalib -l pl.UTF-8
+Allegro jest przenoĹ›nÄ
 bibliotekÄ
 przeznaczonÄ
 do wykorzystania w
 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
 
-Ten pakiet zawiera moduł do wykorzystania allegro z svgalibem.
+Ten pakiet zawiera moduł do wykorzystania allegro z svgalibem.
 
 %package dga2
 Summary:	A game programming library - DGA2 module
-Summary(pl):	Biblioteka do programowania gier - moduł dla DGA2
-Group:		X11/Libraries
-PreReq:		%{name} = %{version}
+Summary(pl.UTF-8):	Biblioteka do programowania gier - moduł dla DGA2
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
 
 %description dga2
 Allegro is a cross-platform library intended for use in computer games
@@ -129,17 +232,17 @@
 
 This package contains module for use with DGA.
 
-%description dga2 -l pl
-Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w
+%description dga2 -l pl.UTF-8
+Allegro jest przenoĹ›nÄ
 bibliotekÄ
 przeznaczonÄ
 do wykorzystania w
 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
 
-Ten pakiet zawiera moduł do wykorzystania z DGA.
+Ten pakiet zawiera moduł do wykorzystania z DGA.
 
 %package esd
 Summary:	A game programming library - esound module
-Summary(pl):	Biblioteka do programowania gier - moduł dla esound
-Group:		X11/Libraries
-PreReq:		%{name} = %{version}
+Summary(pl.UTF-8):	Biblioteka do programowania gier - moduł dla esound
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
 
 %description esd
 Allegro is a cross-platform library intended for use in computer games
@@ -147,17 +250,72 @@
 
 This package contains a esound module for use with ESound daemon.
 
-%description esd -l pl
-Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w
+%description esd -l pl.UTF-8
+Allegro jest przenoĹ›nÄ
 bibliotekÄ
 przeznaczonÄ
 do wykorzystania w
 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
 
-Ten pakiet zawiera moduł do wykorzystania z demonem ESound.
+Ten pakiet zawiera moduł do wykorzystania z demonem ESound.
+
+%package arts
+Summary:	A game programming library - aRts module
+Summary(pl.UTF-8):	Biblioteka do programowania gier - moduł dla aRts
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description arts
+Allegro is a cross-platform library intended for use in computer games
+and other types of multimedia programming.
+
+This package contains a esound module for use with aRts.
+
+%description arts -l pl.UTF-8
+Allegro jest przenoĹ›nÄ
 bibliotekÄ
 przeznaczonÄ
 do wykorzystania w
+grach komputerowych i innych rodzajach oprogramowania multimedialnego.
+
+Ten pakiet zawiera moduł do wykorzystania z aRts.
+
+%package fbcon
+Summary:	A game programming library - framebuffer module
+Summary(pl.UTF-8):	Biblioteka do programowania gier - moduł dla framebuffera
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description fbcon
+Allegro is a cross-platform library intended for use in computer games
+and other types of multimedia programming.
+
+This package contains a esound module for use with framebuffer.
+
+%description fbcon -l pl.UTF-8
+Allegro jest przenoĹ›nÄ
 bibliotekÄ
 przeznaczonÄ
 do wykorzystania w
+grach komputerowych i innych rodzajach oprogramowania multimedialnego.
+
+Ten pakiet zawiera moduł do wykorzystania z framebufferem.
+
+%package vga
+Summary:	A game programming library - vga module
+Summary(pl.UTF-8):	Biblioteka do programowania gier - moduł dla vga
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description vga
+Allegro is a cross-platform library intended for use in computer games
+and other types of multimedia programming.
+
+This package contains a esound module for use with vga.
+
+%description vga -l pl.UTF-8
+Allegro jest przenoĹ›nÄ
 bibliotekÄ
 przeznaczonÄ
 do wykorzystania w
+grach komputerowych i innych rodzajach oprogramowania multimedialnego.
+
+Ten pakiet zawiera moduł do wykorzystania z vga.
 
 %package alsa
 Summary:	A game programming library - ALSA modules
-Summary(pl):	Biblioteka do programowania gier - moduły dla ALSA
-Group:		X11/Libraries
-PreReq:		%{name} = %{version}
+Summary(pl.UTF-8):	Biblioteka do programowania gier - moduły dla ALSA
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+Obsoletes:	allegro-alsa9
 
 %description alsa
 Allegro is a cross-platform library intended for use in computer games
@@ -165,18 +323,40 @@
 
 This package contains modules for use with ALSA sound library.
 
-%description alsa -l pl
-Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w
+%description alsa -l pl.UTF-8
+Allegro jest przenoĹ›nÄ
 bibliotekÄ
 przeznaczonÄ
 do wykorzystania w
 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
 
-Ten pakiet zawiera moduły do wykorzystania z biblioteką dźwiękową
+Ten pakiet zawiera moduĹ‚y do wykorzystania z bibliotekÄ
 dĹşwiÄ™kowÄ

 ALSA.
 
+%package jack
+Summary:	A game programming library - JACK module
+Summary(pl.UTF-8):	Biblioteka do programowania gier - moduł dla JACK-a
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description jack
+Allegro is a cross-platform library intended for use in computer games
+and other types of multimedia programming.
+
+This package contains module for use with JACK sound library.
+
+%description jack -l pl.UTF-8
+Allegro jest przenoĹ›nÄ
 bibliotekÄ
 przeznaczonÄ
 do wykorzystania w
+grach komputerowych i innych rodzajach oprogramowania multimedialnego.
+
+Ten pakiet zawiera moduĹ‚ do wykorzystania z bibliotekÄ
 dĹşwiÄ™kowÄ
 JACK.
+
 %package tools
 Summary:	A game programming library - tools
-Summary(pl):	Biblioteka do programowania gier - narzędzia
-Group:		X11/Libraries
-PreReq:		%{name} = %{version}
+Summary(de.UTF-8):	Zusätzliche Hilfprogramme fßr die Allegro Bibliothek
+Summary(es.UTF-8):	Herramientas adicionales para la librerĂ­a de programaciĂłn Allegro
+Summary(fr.UTF-8):	Outils supplĂŠmentaires pour la librairie de programmation Allegro
+Summary(it.UTF-8):	Programmi di utilitĂ  aggiuntivi per la libreria Allegro
+Summary(pl.UTF-8):	Biblioteka do programowania gier - narzędzia
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
 
 %description tools
 Allegro is a cross-platform library intended for use in computer games
@@ -184,32 +364,105 @@
 
 This package contains tools.
 
-%description tools -l pl
-Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w
+%description tools -l de.UTF-8
+Allegro ist eine plattformĂźbergreifende Bibliothek zur Verwendung in
+Computerspielen und anderen Formen von Multinediaprogrammierung.
+Dieses Paket enthält Programme, die fßr die Entwicklung von Allegro
+Programmen hilfreich sind.
+
+%description tools -l es.UTF-8
+Allegro es una librerĂ­a multi-plataforma creada para ser usada en la
+programaciĂłn de juegos u otro tipo de programaciĂłn multimedia. Este
+paquete contiene herramientas adicionales que son Ăştiles para
+desarrollar programas que usen Allegro.
+
+%description tools -l fr.UTF-8
+Allegro est une librairie multi-plateforme destinĂŠe Ă  ĂŞtre utilisĂŠe
+dans les jeux vidĂŠo ou d'autres types de programmation multimĂŠdia. Ce
+package contient des outils supplĂŠmentaires qui sont utiles pour le
+dĂŠveloppement de programmes avec Allegro.
+
+%description tools -l it.UTF-8
+Allegro è una libreria multipiattaforma dedicata all'uso nei
+videogiochi ed in altri tipi di programmazione multimediale. Questo
+pacchetto contiene programmi di utilitĂ  aggiuntivi utili allo sviluppo
+di programmi con Allegro.
+
+%description tools -l pl.UTF-8
+Allegro jest przenoĹ›nÄ
 bibliotekÄ
 przeznaczonÄ
 do wykorzystania w
 grach komputerowych i innych rodzajach oprogramowania multimedialnego.
 
-Ten pakiet zawiera narzędzia.
+Ten pakiet zawiera narzędzia.
+
+%package tests
+Summary:	A game programming library - test programs
+Summary(pl.UTF-8):	Biblioteka do programowania gier - programy testujÄ
ce
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description tests
+This package contains programs for testing allegro library.
+
+%description tests -l pl.UTF-8
+Pakiet zawiera programy testujÄ
ce bibliotekÄ™ allegro.
+
+%package examples
+Summary:	A game programming library - examples
+Summary(pl.UTF-8):	Biblioteka do programowania gier - programy przykładowe
+Group:		Development/Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description examples
+This package contains example programs which demonstrate allegro
+features.
+
+%description examples -l pl.UTF-8
+Pakiet zawiera programy przykĹ‚adowe demonstrujÄ
ce moşliwości
+biblioteki allegro.
 
 %prep
-%setup  -q
-%patch3 -p1
+%setup -q
 %patch0 -p1
 %patch1 -p1
-#%patch2 -p1
+%patch2 -p1
+%patch3 -p1
+%patch4 -p1
+%patch5 -p1
 
 %build
-aclocal
+%{__aclocal}
+#%{__autoheader} configure.in > include/allegro/platform/alunixac.hin
 %{__autoconf}
+#TARGET_ARCH="%{rpmcflags}" export TARGET_ARCH
+# dbglib & proflib are compiled besides normlib, so it's ok to have them here
 %configure \
-	--enable-static \
-	--enable-dbglib \
-	--enable-proflib \
-%ifnarch %{ix86} alpha
-    	--disable-vga \
-	--disable-linux
+	%{?with_static:--enable-static} \
+	%{?with_dbglib:--enable-dbglib} \
+	%{?with_proflib:--enable-proflib} \
+%if !%{with alsa}
+	--disable-alsadigi \
+	--disable-alsamidi \
+%endif
+	%{!?with_allegrogl:--disable-allegrogl} \
+	%{!?with_arts:--disable-artsdigi} \
+	%{!?with_dga2:--disable-xwin-dga2} \
+	%{!?with_esd:--disable-esddigi} \
+	%{!?with_fbcon:--disable-fbcon} \
+	%{!?with_jack:--disable-jackdigi} \
+	%{!?with_svga:--disable-svgalib} \
+	%{!?with_vga:--disable-vga} \
+%if !%{with sse}
+	--disable-sse \
+	--disable-asm \
+%endif
+%ifnarch %{ix86}
+	--disable-asm \
+	--disable-mmx \
+	--disable-sse
 %endif
-	
-%{__make} MAKEINFO=makeinfo
+
+%{__make} \
+	MAKEINFO=makeinfo
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -217,82 +470,158 @@
 %{__make} install install-man install-info install-lib \
 	DESTDIR=$RPM_BUILD_ROOT
 
-echo -e "# List of modules to be loaded by the Unix version of Allegro.\n" \
-	> $RPM_BUILD_ROOT%{_libdir}/allegro/4.1/modules.lst
+install modules.lst $RPM_BUILD_ROOT%{_libdir}/allegro/%{version}
+
+#mv $RPM_BUILD_ROOT%{_bindir}/demo{,-allegro}
+mv $RPM_BUILD_ROOT%{_bindir}/play{,-allegro}
+#mv $RPM_BUILD_ROOT%{_bindir}/setup{,-allegro}
+mv $RPM_BUILD_ROOT%{_bindir}/test{,-allegro}
+
+# help rpm to find reqs for ELF objects
+chmod 755 $RPM_BUILD_ROOT%{_libdir}/{*.so,allegro/*/*.so}
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
+%post	-p /sbin/ldconfig
+%postun	-p /sbin/ldconfig
+
+%post devel	-p	/sbin/postshell
<<Diff was trimmed, longer than 597 lines>>

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/allegro.spec?r1=1.16&r2=1.16.2.1&f=u



More information about the pld-cvs-commit mailing list