X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=allegro.spec;h=191d86b5d573500b87d6b1ae0f1406f3935b966c;hb=6294773b1ae3dfccd86a2a0db96091581eddea38;hp=9c0b864d6089585e0160c73f6a6e7a213aabdf45;hpb=e04e366f033d3e1ecb990eee2c191e71081da732;p=packages%2Fallegro.git diff --git a/allegro.spec b/allegro.spec index 9c0b864..191d86b 100644 --- a/allegro.spec +++ b/allegro.spec @@ -1,73 +1,89 @@ # # Conditional build: -# _without_alsa - without alsa modules -# _without_arts - without arts module -# _without_dbglib - don't build debug versions of library -# _without_proflib - don't debug profiling versions of library -# _with_alsa9 - use alsa 0.9 not 0.5 +%bcond_without alsa # without ALSA modules +%bcond_without dga2 # without DGA2 module +%bcond_without jack # without JACK module +%bcond_with svga # without svgalib module +%bcond_without vga # without vga module (x86-only) # -%ifarch sparc sparc64 -%define _without_alsa 1 +%ifnarch %{ix86} +# x86_64 too? +%undefine with_vga %endif -%{!?_without_alsa:%{!?_with_alsa9:%define _with_alsa5 1}} Summary: A game programming library -Summary(pl): Biblioteka do programowania gier -Summary(es): Una libreria de programacion de juegos. -Summary(fr): Une librairie de programmation de jeux. -Summary(it): Una libreria per la programmazione di videogiochi. -Summary(de): Eine Bibliothek zur Programmierung von Spielen. +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.9 -Release: 1 +Version: 4.4.1.1 +Release: 2 License: Giftware Group: Libraries -Source0: http://dl.sourceforge.net/alleg/%{name}-%{version}.tar.gz +Source0: http://downloads.sourceforge.net/alleg/%{name}-%{version}.tar.gz +# Source0-md5: 0f1cfff8f2cf88e5c91a667d9fd386ec Patch0: %{name}-info.patch -Patch1: %{name}-examples.patch -Patch2: %{name}-alsa9.patch -Patch3: %{name}-opt.patch +Patch1: %{name}-config.patch URL: http://alleg.sourceforge.net/ -BuildRequires: XFree86-devel -%{!?_without_alsa:BuildRequires: alsa-lib-devel} -%{!?_without_arts:BuildRequires: arts-devel} -BuildRequires: autoconf -BuildRequires: automake -BuildRequires: esound-devel -%ifarch %{ix86} alpha -BuildRequires: svgalib-devel -%endif +BuildRequires: OpenGL-GLU-devel +BuildRequires: OpenGL-devel +%{?with_alsa:BuildRequires: alsa-lib-devel} +BuildRequires: cmake >= 2.6 +BuildRequires: jack-audio-connection-kit-devel +BuildRequires: libogg-devel +BuildRequires: libpng-devel +BuildRequires: libstdc++-devel +BuildRequires: libvorbis-devel +BuildRequires: pkgconfig +BuildRequires: rpmbuild(macros) >= 1.577 +BuildRequires: sed >= 4.0 +%{?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) %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 -grach komputerowych i innych rodzajach oprogramowania multimedialnego. +%description -l de.UTF-8 +Allegro ist eine plattformübergreifende Bibliothek zur Verwendung in +Computerspielen und anderen Formen von Multinediaprogrammierung. -%description -l es -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 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 -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 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 -Allegro è una libreria multipiattaforma dedicata all'uso nei videogiochi -ed in altri tipi di programmazione multimediale. +%description -l it.UTF-8 +Allegro è una libreria multipiattaforma dedicata all'uso nei +videogiochi ed in altri tipi di programmazione multimediale. -%description -l de -Allegro ist eine plattformübergreifende Bibliothek zur Verwendung in -Computerspielen und anderen Formen von Multinediaprogrammierung. +%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 +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} +Requires: %{name} = %{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 +Obsoletes: allegro-static %description devel Allegro is a cross-platform library intended for use in computer games @@ -76,155 +92,39 @@ and other types of multimedia programming. 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. - -%description devel -l es -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 -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 -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. - -%description devel -l de -Allegro ist eine plattformübergreifende Bibliothek zur Verwendung in +%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 +Dieses Paket wird benötigt, um Programme zu bauen, die Allegro verwenden. -%package tests -Summary: A game programming library - test programs -Summary(pl): Biblioteka do programowania gier - programy testuj±ce -Group: 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. - -%package examples -Summary: A game programming library - examples -Summary(pl): Biblioteka do programowania gier - programy przyk³adowe -Group: Development/Libraries -Requires: %{name} = %{version} - -%description examples -This package contains example programs which are showing -allegro features. - -%description examples -l pl -Pakiet zawiera programy przyk³adowe demonstruj±ce mo?liwo¶ci biblioteki allegro. - -%package static -Summary: A game programming library - static libraries -Summary(pl): Biblioteka do programowania gier - biblioteki statyczne -Group: Development/Libraries -Requires: %{name}-devel = %{version} - -%description static -Allegro is a cross-platform library intended for use in computer games -and other types of multimedia programming. - -This package contains static libraries for linking with allegro -applications. - -%description static -l pl -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. - -%package debug -Summary: liballd - debug version of shared allegro library -Summary(pl): liballd - wersja debug dzielonej biblioteki allegro -Group: Development/Libraries -Requires: %{name}-devel = %{version} - -%description debug -liballd - debug version of shared allegro library (contains debugging -symbols and other information). - -%description debug -l pl -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): liballd - wersja debug statycznej biblioteki allegro -Group: Development/Libraries -Requires: %{name}-devel = %{version} - -%description debug-static -liballd - debug version of static allegro library (contains debugging -symbols and other information). - -%description debug-static -l pl -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): liballp - wersja dzielonej biblioteki allegro s³u¿±ca do profilowania -Group: Development/Libraries -Requires: %{name}-devel = %{version} - -%description profile -liballp - profiling version of shared allegro library. - -%description profile -l pl -liballp - wersja dzielonej biblioteki allegro s³u¿±ca do profilowania. - -%package profile-static -Summary: liballp - profiling version of static allegro library -Summary(pl): liballp - wersja statycznej biblioteki allegro s³u¿±ca do profilowania -Group: Development/Libraries -Requires: %{name}-devel = %{version} - -%description profile-static -liballp - profiling version of static allegro library. - -%description debug-static -l pl -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: Libraries -PreReq: %{name} = %{version} +%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 svgalib -Allegro is a cross-platform library intended for use in computer games -and other types of multimedia programming. +%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. -This package contains module for use with allegro and svgalib. +%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. -%description svgalib -l pl -Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w +%description devel -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 pliki nagłówkowe niezbędne do kompilowania +aplikacji wykorzystujących bibliotekę allegro. %package dga2 Summary: A game programming library - DGA2 module -Summary(pl): Biblioteka do programowania gier - modu³ dla DGA2 +Summary(pl.UTF-8): Biblioteka do programowania gier - moduł dla DGA2 Group: Libraries -PreReq: %{name} = %{version} +Requires: %{name} = %{version}-%{release} %description dga2 Allegro is a cross-platform library intended for use in computer games @@ -232,131 +132,146 @@ and other types of multimedia programming. 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 +%package fbcon +Summary: A game programming library - FrameBuffer module +Summary(pl.UTF-8): Biblioteka do programowania gier - moduł dla FrameBuffera Group: Libraries -PreReq: %{name} = %{version} +Requires: %{name} = %{version}-%{release} -%description esd +%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 ESound daemon. +This package contains module for use with Linux FrameBuffer. -%description esd -l pl -Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w +%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 demonem ESound. +Ten pakiet zawiera moduł do wykorzystania z linuksowym FrameBufferem. -%package arts -Summary: A game programming library - aRts module -Summary(pl): Biblioteka do programowania gier - modu³ dla aRts +%package svgalib +Summary: A game programming library - svgalib module +Summary(pl.UTF-8): Biblioteka do programowania gier - moduł dla svgalib Group: Libraries -PreReq: %{name} = %{version} +Requires: %{name} = %{version}-%{release} -%description arts +%description svgalib 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. +This package contains module for use with allegro and svgalib. -%description arts -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 z aRts. +Ten pakiet zawiera moduł do wykorzystania allegro z svgalibem. -%package fbcon -Summary: A game programming library - framebuffer module -Summary(pl): Biblioteka do programowania gier - modu³ dla framebuffera +%package vga +Summary: A game programming library - vga module +Summary(pl.UTF-8): Biblioteka do programowania gier - moduł dla vga Group: Libraries -PreReq: %{name} = %{version} +Requires: %{name} = %{version}-%{release} -%description fbcon +%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 framebuffer. +This package contains a esound module for use with vga. -%description fbcon -l pl -Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w +%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 framebufferem. +Ten pakiet zawiera moduł do wykorzystania z vga. -%package vga -Summary: A game programming library - vga module -Summary(pl): Biblioteka do programowania gier - modu³ dla vga +%package alsa +Summary: A game programming library - ALSA modules +Summary(pl.UTF-8): Biblioteka do programowania gier - moduły dla ALSA Group: Libraries -PreReq: %{name} = %{version} +Requires: %{name} = %{version}-%{release} +Obsoletes: allegro-alsa9 -%description vga +%description alsa 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. +This package contains modules for use with ALSA sound library. -%description vga -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³ do wykorzystania z vga. +Ten pakiet zawiera moduły do wykorzystania z biblioteką dźwiękową +ALSA. -%package alsa9 -Summary: A game programming library - ALSA 0.9 modules -Summary(pl): Biblioteka do programowania gier - modu³y dla ALSA 0.9 +%package jack +Summary: A game programming library - JACK module +Summary(pl.UTF-8): Biblioteka do programowania gier - moduł dla JACK-a Group: Libraries -PreReq: %{name} = %{version} +Requires: %{name} = %{version}-%{release} -%description alsa9 +%description jack Allegro is a cross-platform library intended for use in computer games and other types of multimedia programming. -This package contains modules for use with ALSA 0.9 sound library. +This package contains module for use with JACK sound library. -%description alsa9 -l pl -Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w +%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³y do wykorzystania z bibliotek± d¼wiêkow± -ALSA 0.9. +Ten pakiet zawiera moduł do wykorzystania z biblioteką dźwiękową JACK. -%package alsa -Summary: A game programming library - ALSA modules -Summary(pl): Biblioteka do programowania gier - modu³y dla ALSA +%package addons +Summary: Allegro addon libraries +Summary(pl.UTF-8): Dodatkowe biblioteki Allegro Group: Libraries -PreReq: %{name} = %{version} +Requires: %{name} = %{version}-%{release} +Obsoletes: allegro-gl -%description alsa -Allegro is a cross-platform library intended for use in computer games -and other types of multimedia programming. - -This package contains modules for use with ALSA sound library. +%description addons +Allegro addon libraries: AllegroGL, JPGAlleg, loadpng, logg. -%description alsa -l pl -Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w -grach komputerowych i innych rodzajach oprogramowania multimedialnego. +%description addons -l pl.UTF-8 +Dodatkowe biblioteki Allegro: AllegroGL, JPGAlleg, loadpng, logg. -Ten pakiet zawiera modu³y do wykorzystania z bibliotek± d¼wiêkow± -ALSA. +%package addons-devel +Summary: Header files for Allegro addon libraries +Summary(pl.UTF-8): Pliki nagłówkowe dodatkowych bibliotek Allegro +Group: Development/Libraries +Requires: %{name}-addons = %{version}-%{release} +Requires: %{name}-devel = %{version}-%{release} +Requires: OpenGL-GLU-devel +Requires: OpenGL-devel +Requires: libpng-devel +Requires: libvorbis-devel +Obsoletes: allegro-gl-devel + +%description addons-devel +Header files for Allegro addon libraries: AllegroGL, JPGAlleg, +loadpng, logg. + +%description addons-devel -l pl.UTF-8 +Pliki nagłówkowe dodatkowych bibliotek Allegro: AllegroGL, JPGAlleg, +loadpng, logg. %package tools Summary: A game programming library - tools -Summary(pl): Biblioteka do programowania gier - narzêdzia -Summary(es): Herramientas adicionales para la librería de programación Allegro. -Summary(fr): Outils supplémentaires pour la librairie de programmation Allegro. -Summary(it): Programmi di utilità aggiuntivi per la libreria Allegro. -Summary(de): Zusätzliche Hilfprogramme für die Allegro Bibliothek. +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 -PreReq: %{name} = %{version} +Requires: %{name} = %{version}-%{release} %description tools Allegro is a cross-platform library intended for use in computer games @@ -364,192 +279,201 @@ and other types of multimedia programming. This package contains tools. -%description tools -l pl -Allegro jest przeno¶n± bibliotek± przeznaczon± do wykorzystania w -grach komputerowych i innych rodzajach oprogramowania multimedialnego. - -Ten pakiet zawiera narzêdzia. +%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 -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 +%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 -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 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 -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 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 de -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 pl.UTF-8 +Allegro jest przenośną biblioteką przeznaczoną do wykorzystania w +grach komputerowych i innych rodzajach oprogramowania multimedialnego. + +Ten pakiet zawiera narzędzia. %package tests Summary: A game programming library - test programs -Summary(pl): Biblioteka do programowania gier - programy testuj±ce +Summary(pl.UTF-8): Biblioteka do programowania gier - programy testujące Group: Development/Libraries -Requires: %{name} = %{version} +Requires: %{name} = %{version}-%{release} %description tests This package contains programs for testing allegro library. -%description tests -l pl -Pakiet zawiera programy testuj±ce bibliotekê allegro. +%description tests -l pl.UTF-8 +Pakiet zawiera programy testujące bibliotekę allegro. %package examples Summary: A game programming library - examples -Summary(pl): Biblioteka do programowania gier - programy przyk³adowe +Summary(pl.UTF-8): Biblioteka do programowania gier - programy przykładowe Group: Development/Libraries -Requires: %{name} = %{version} +Requires: %{name} = %{version}-%{release} %description examples -This package contains example programs which are showing -allegro features. +This package contains example programs which demonstrate allegro +features. -%description examples -l pl -Pakiet zawiera programy przyk³adowe demonstruj±ce mo?liwo¶ci biblioteki allegro. +%description examples -l pl.UTF-8 +Pakiet zawiera programy przykładowe demonstrujące możliwości +biblioteki allegro. %prep -%setup -q +%setup -q %patch0 -p1 %patch1 -p1 -%patch2 -p1 -%patch3 -p1 + +sed -i -e 's/ADDON_LINKAGE STATIC/ADDON_LINKAGE SHARED/' CMakeLists.txt %build -%{__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 \ - %{!?_without_dbglib:--enable-dbglib} \ -%ifnarch %{ix86} alpha - --disable-vga \ - --disable-linux \ -%endif - %{!?_without_proflib:--enable-proflib} \ -%ifnarch %{ix86} - --disable-asm -%endif +install -d build +cd build +%cmake .. \ + -DINFODIR=%{_infodir} \ + -DPLATFORM_LIBS=-ldl \ + -DWANT_LINUX_CONSOLE=1 \ + %{!?with_vga:-DWANT_LINUX_VGA=off} \ + %{!?with_svga:-DWANT_LINUX_SVGALIB=off} -%{__make} \ - MAKEINFO=makeinfo +%{__make} %install rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT%{_mandir}/man3 -%{__make} install install-man install-info install-lib \ +%{__make} -C build install \ DESTDIR=$RPM_BUILD_ROOT -install modules.lst $RPM_BUILD_ROOT%{_libdir}/allegro/4.1 +install modules.lst $RPM_BUILD_ROOT%{_libdir}/allegro/%{version} + +# install examples and tests +find build/examples -maxdepth 1 -perm 755 -name "ex*" -exec install {} $RPM_BUILD_ROOT%{_bindir} \; +find build/tests -maxdepth 1 -perm 755 ! -name CMakeFiles -exec install {} $RPM_BUILD_ROOT%{_bindir} \; + +# force install man pages +cp build/docs/man/* $RPM_BUILD_ROOT%{_mandir}/man3 -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} +%{__rm} -r $RPM_BUILD_ROOT%{_prefix}/doc/allegro-4.4.1 + %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig +%post devel -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} + +%postun devel -p /sbin/postshell +-/usr/sbin/fix-info-dir -c %{_infodir} + +%post addons -p /sbin/ldconfig +%postun addons -p /sbin/ldconfig + %files %defattr(644,root,root,755) -%doc AUTHORS CHANGES THANKS -%attr(755,root,root) %{_libdir}/liballeg-%{version}.so +%doc AUTHORS CHANGES THANKS readme.txt todo.txt +%attr(755,root,root) %{_libdir}/liballeg.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/liballeg.so.4.4 %dir %{_libdir}/allegro -%dir %{_libdir}/allegro/4.1 -%{_libdir}/allegro/4.1/modules.lst +%dir %{_libdir}/allegro/4.4.1 +%{_libdir}/allegro/4.4.1/modules.lst %files devel %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/allegro-config -%{_libdir}/liballeg_unsharable.a -%{_includedir}/* -%{_mandir}/man3/* -%{_infodir}/*.info* - -%files static -%defattr(644,root,root,755) -%{_libdir}/liballeg.a - -%if 0%{!?_without_dbglib:1} -%files debug -%defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/liballd-%{version}.so -%{_libdir}/liballd_unsharable.a - -%files debug-static +%attr(755,root,root) %{_libdir}/liballeg.so +%{_includedir}/allegro +%{_includedir}/allegro.h +%{_includedir}/linalleg.h +%{_includedir}/xalleg.h +# XXX: aren't some names too generic? +%{_mandir}/man3/*.3* +%{_infodir}/allegro.info* +%{_pkgconfigdir}/allegro.pc + +%if %{with dga2} +%files dga2 %defattr(644,root,root,755) -%{_libdir}/liballd.a +%attr(755,root,root) %{_libdir}/allegro/4.4.1/alleg-dga2.so %endif -%if 0%{!?_without_proflib:1} -%files profile +%files fbcon %defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/liballp-%{version}.so -%{_libdir}/liballp_unsharable.a +%attr(755,root,root) %{_libdir}/allegro/4.4.1/alleg-fbcon.so -%files profile-static -%defattr(644,root,root,755) -%{_libdir}/liballp.a -%endif - -%ifarch %{ix86} alpha +%if %{with svga} %files svgalib %defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/allegro/4.1/alleg-svgalib.so -%endif - -%files dga2 -%defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/allegro/4.1/alleg-dga2.so - -%files esd -%defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/allegro/4.1/alleg-esddigi.so - -%if 0%{!?_without_arts:1} -%files arts -%defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/allegro/4.1/alleg-artsdigi.so +%attr(755,root,root) %{_libdir}/allegro/4.4.1/alleg-svgalib.so %endif -%files fbcon -%defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/allegro/4.1/alleg-fbcon.so - +%if %{with vga} %files vga %defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/allegro/4.1/alleg-vga.so +%attr(755,root,root) %{_libdir}/allegro/4.4.1/alleg-vga.so +%endif -%if 0%{?_with_alsa5:1} +%if %{with alsa} %files alsa %defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/allegro/4.1/alleg-alsadigi.so -%attr(755,root,root) %{_libdir}/allegro/4.1/alleg-alsamidi.so +%attr(755,root,root) %{_libdir}/allegro/4.4.1/alleg-alsadigi.so +%attr(755,root,root) %{_libdir}/allegro/4.4.1/alleg-alsamidi.so %endif -%if 0%{?_with_alsa9:1} -%files alsa9 +%if %{with jack} +%files jack %defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/allegro/4.1/alleg-alsa9digi.so -%attr(755,root,root) %{_libdir}/allegro/4.1/alleg-alsa9midi.so +%attr(755,root,root) %{_libdir}/allegro/4.4.1/alleg-jack.so %endif +%files addons +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/liballeggl.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/liballeggl.so.4.4 +%attr(755,root,root) %{_libdir}/libjpgalleg.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libjpgalleg.so.4.4 +%attr(755,root,root) %{_libdir}/libloadpng.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/libloadpng.so.4.4 +%attr(755,root,root) %{_libdir}/liblogg.so.*.*.* +%attr(755,root,root) %ghost %{_libdir}/liblogg.so.4.4 + +%files addons-devel +%defattr(644,root,root,755) +%attr(755,root,root) %{_libdir}/liballeggl.so +%attr(755,root,root) %{_libdir}/libjpgalleg.so +%attr(755,root,root) %{_libdir}/libloadpng.so +%attr(755,root,root) %{_libdir}/liblogg.so +%{_includedir}/allegrogl +%{_includedir}/alleggl.h +%{_includedir}/jpgalleg.h +%{_includedir}/loadpng.h +%{_includedir}/logg.h +%{_pkgconfigdir}/allegrogl.pc +%{_pkgconfigdir}/jpgalleg.pc +%{_pkgconfigdir}/loadpng.pc +%{_pkgconfigdir}/logg.pc + %files tools %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/colormap @@ -562,14 +486,11 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_bindir}/dat2s %attr(755,root,root) %{_bindir}/grabber %attr(755,root,root) %{_bindir}/pat2dat -%attr(755,root,root) %{_bindir}/setup-allegro -%attr(755,root,root) %{_bindir}/keyconf %files tests %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/afinfo %attr(755,root,root) %{_bindir}/akaitest -%attr(755,root,root) %{_bindir}/demo-allegro %attr(755,root,root) %{_bindir}/digitest %attr(755,root,root) %{_bindir}/filetest %attr(755,root,root) %{_bindir}/gfxinfo @@ -591,14 +512,15 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_bindir}/exblend %attr(755,root,root) %{_bindir}/excamera %attr(755,root,root) %{_bindir}/excolmap +%attr(755,root,root) %{_bindir}/exconfig %attr(755,root,root) %{_bindir}/excustom %attr(755,root,root) %{_bindir}/exdata %attr(755,root,root) %{_bindir}/exdbuf -%attr(755,root,root) %{_bindir}/exdodgy %attr(755,root,root) %{_bindir}/exexedat %attr(755,root,root) %{_bindir}/exfixed %attr(755,root,root) %{_bindir}/exflame %attr(755,root,root) %{_bindir}/exflip +%attr(755,root,root) %{_bindir}/exfont %attr(755,root,root) %{_bindir}/exgui %attr(755,root,root) %{_bindir}/exhello %attr(755,root,root) %{_bindir}/exjoy @@ -607,11 +529,15 @@ rm -rf $RPM_BUILD_ROOT %attr(755,root,root) %{_bindir}/exmem %attr(755,root,root) %{_bindir}/exmidi %attr(755,root,root) %{_bindir}/exmouse +%attr(755,root,root) %{_bindir}/expackf %attr(755,root,root) %{_bindir}/expal %attr(755,root,root) %{_bindir}/expat %attr(755,root,root) %{_bindir}/exquat %attr(755,root,root) %{_bindir}/exrgbhsv +%attr(755,root,root) %{_bindir}/exrotscl +%attr(755,root,root) %{_bindir}/extrans2 %attr(755,root,root) %{_bindir}/exsample +%attr(755,root,root) %{_bindir}/exsyscur %attr(755,root,root) %{_bindir}/exscale %attr(755,root,root) %{_bindir}/exscn3d %attr(755,root,root) %{_bindir}/exscroll