]> git.pld-linux.org Git - packages/allegro.git/blobdiff - allegro.spec
- 4.1.7
[packages/allegro.git] / allegro.spec
index a2bf7e5c9f00b278772a2b50c6084c42fdd4128a..a222d6edcc7fb3933ee577ef2a8924b778ba2818 100644 (file)
@@ -1,28 +1,33 @@
+#
+# Conditional build:
+# --without alsa
+#
 Summary:       A game programming library
 Summary(pl):   Biblioteka do programowania gier
 Name:          allegro
-Version:       4.0.1
-Release:       0.1
+Version:       4.1.7
+Release:       1
 License:       Giftware
-Group:         X11/Libraries
-Source0:       http://prdownloads.sourceforge.net/alleg/%{name}-%{version}.tar.gz
-Patch0:                %{name}-makefile.patch
-Patch1:                %{name}-info.patch
+Group:         Libraries
+Source0:       http://belnet.dl.sourceforge.net/sourceforge/alleg/%{name}-%{version}.tar.gz
+Patch0:                %{name}-info.patch
+Patch1:                %{name}-examples.patch
+Patch2:                %{name}-alsa9.patch
 URL:           http://alleg.sourceforge.net
 BuildRequires: XFree86-devel
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: esound-devel
 %ifnarch sparc sparc64
 BuildRequires: alsa-lib-devel
 %endif
-%ifarch %{ix86}
+%ifarch %{ix86} alpha
 BuildRequires: svgalib-devel
 %endif
+BuildRequires: arts-devel
 BuildRequires: texinfo
 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.
@@ -34,7 +39,7 @@ 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
+Group:         Development/Libraries
 Requires:      %{name} = %{version}
 
 %description devel
@@ -51,10 +56,35 @@ 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:         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:         X11/Development/Libraries
+Group:         Development/Libraries
 Requires:      %{name}-devel = %{version}
 
 %description static
@@ -74,7 +104,7 @@ wykorzystuj
 %package svgalib
 Summary:       A game programming library - svgalib module
 Summary(pl):   Biblioteka do programowania gier - modu³ dla svgalib
-Group:         X11/Libraries
+Group:         Libraries
 PreReq:                %{name} = %{version}
 
 %description svgalib
@@ -92,7 +122,7 @@ Ten pakiet zawiera modu
 %package dga2
 Summary:       A game programming library - DGA2 module
 Summary(pl):   Biblioteka do programowania gier - modu³ dla DGA2
-Group:         X11/Libraries
+Group:         Libraries
 PreReq:                %{name} = %{version}
 
 %description dga2
@@ -110,7 +140,7 @@ Ten pakiet zawiera modu
 %package esd
 Summary:       A game programming library - esound module
 Summary(pl):   Biblioteka do programowania gier - modu³ dla esound
-Group:         X11/Libraries
+Group:         Libraries
 PreReq:                %{name} = %{version}
 
 %description esd
@@ -125,10 +155,83 @@ grach komputerowych i innych rodzajach oprogramowania multimedialnego.
 
 Ten pakiet zawiera modu³ do wykorzystania z demonem ESound.
 
+%package arts
+Summary:       A game programming library - aRts module
+Summary(pl):   Biblioteka do programowania gier - modu³ dla aRts
+Group:         Libraries
+PreReq:                %{name} = %{version}
+
+%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
+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):   Biblioteka do programowania gier - modu³ dla framebuffera
+Group:         Libraries
+PreReq:                %{name} = %{version}
+
+%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
+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):   Biblioteka do programowania gier - modu³ dla vga
+Group:         Libraries
+PreReq:                %{name} = %{version}
+
+%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
+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 alsa9
+Summary:       A game programming library - ALSA 0.9 modules
+Summary(pl):   Biblioteka do programowania gier - modu³y dla ALSA 0.9
+Group:         Libraries
+PreReq:                %{name} = %{version}
+
+%description alsa9
+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.
+
+%description alsa9 -l pl
+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.
+
 %package alsa
 Summary:       A game programming library - ALSA modules
 Summary(pl):   Biblioteka do programowania gier - modu³y dla ALSA
-Group:         X11/Libraries
+Group:         Libraries
 PreReq:                %{name} = %{version}
 
 %description alsa
@@ -144,40 +247,80 @@ grach komputerowych i innych rodzajach oprogramowania multimedialnego.
 Ten pakiet zawiera modu³y do wykorzystania z bibliotek± d¼wiêkow±
 ALSA.
 
+%package tools
+Summary:       A game programming library - tools
+Summary(pl):   Biblioteka do programowania gier - narzêdzia
+Group:         Libraries
+PreReq:                %{name} = %{version}
+
+%description tools
+Allegro is a cross-platform library intended for use in computer games
+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.
+
 %prep
 %setup  -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
 
 %build
-aclocal
-autoconf
+%{__aclocal}
+%{__autoheader} configure.in include/allegro/platform/alunixac.hin
+%{__autoconf}
+# dbglib & proflib are compiled besides normlib, so it's ok to have them here
 %configure \
        --enable-static \
        --enable-dbglib \
-       --enable-proflib
-       
-%{__make} MAKEINFO=makeinfo
+%ifnarch %{ix86} alpha
+       --disable-vga \
+       --disable-linux \
+%endif
+       --enable-proflib \
+%ifnarch %{ix86}
+       --disable-asm
+%endif
+
+%{__make} \
+       MAKEINFO=makeinfo \
+       CFLAGS="%{rpmcflags} `artsc-config --cflags` -pipe %{?!debug:-funroll-loops -ffast-math -fomit-frame-pointer} -Wall \
+%ifnarch %{ix86}
+       -DALLEGRO_USE_C \
+%endif
+       -DALLEGRO_LIB_BUILD"
 
 %install
 rm -rf $RPM_BUILD_ROOT
 
-%{__make} install install-man install-info \
+%{__make} install install-man install-info install-lib \
        DESTDIR=$RPM_BUILD_ROOT
 
-gzip -9nf AUTHORS CHANGES THANKS
+install modules.lst $RPM_BUILD_ROOT%{_libdir}/allegro/4.1/
 
-echo -e "# List of modules to be loaded by the Unix version of Allegro.\n" \
-       > $RPM_BUILD_ROOT%{_libdir}/allegro/4.0/modules.lst
+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}
+
+%post  -p /sbin/ldconfig
+%postun        -p /sbin/ldconfig
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
+%doc AUTHORS CHANGES THANKS
 %attr(755,root,root) %{_libdir}/liballeg-%{version}.so
 %dir %{_libdir}/allegro/
-%{_libdir}/allegro/4.0/modules.lst
+%{_libdir}/allegro/4.1/modules.lst
 
 %files devel
 %defattr(644,root,root,755)
@@ -185,37 +328,133 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_libdir}/liballp-%{version}.so
 %{_includedir}/*
 %attr(755,root,root) %{_bindir}/allegro-config
+%{_mandir}/man3/*
+%{_infodir}/*
+%{_libdir}/*_unsharable.a
+
+%files tools
+%defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/colormap
 %attr(755,root,root) %{_bindir}/exedat
 %attr(755,root,root) %{_bindir}/pack
 %attr(755,root,root) %{_bindir}/rgbmap
 %attr(755,root,root) %{_bindir}/textconv
 %attr(755,root,root) %{_bindir}/dat
+%attr(755,root,root) %{_bindir}/dat2c
 %attr(755,root,root) %{_bindir}/dat2s
 %attr(755,root,root) %{_bindir}/grabber
 %attr(755,root,root) %{_bindir}/pat2dat
-%{_mandir}/man3/*
-%{_infodir}/*
+%attr(755,root,root) %{_bindir}/setup-allegro
+%attr(755,root,root) %{_bindir}/keyconf
 
 %files static
 %defattr(644,root,root,755)
-%{_libdir}/*.a
+%{_libdir}/liballd.a
+%{_libdir}/liballeg.a
+%{_libdir}/liballp.a
 
+%ifarch %{ix86} alpha
 %files svgalib
 %defattr(644,root,root,755)
-%{_libdir}/allegro/4.0/alleg-svgalib.so
+%{_libdir}/allegro/4.1/alleg-svgalib.so
+%endif
 
 %files dga2
 %defattr(644,root,root,755)
-%{_libdir}/allegro/4.0/alleg-dga2.so
+%{_libdir}/allegro/4.1/alleg-dga2.so
 
 %files esd
 %defattr(644,root,root,755)
-%{_libdir}/allegro/4.0/alleg-esddigi.so
+%{_libdir}/allegro/4.1/alleg-esddigi.so
 
-%ifarch %{ix86}
+%files arts
+%defattr(644,root,root,755)
+%{_libdir}/allegro/4.1/alleg-artsdigi.so
+
+%files fbcon
+%defattr(644,root,root,755)
+%{_libdir}/allegro/4.1/alleg-fbcon.so
+
+%files vga
+%defattr(644,root,root,755)
+%{_libdir}/allegro/4.1/alleg-vga.so
+
+%ifnarch sparc sparc64
+%if %{!?_without_alsa:1}%{?_without_alsa:0}
+%if %{!?_with_alsa9:1}%{?_with_alsa9:0}
 %files alsa
 %defattr(644,root,root,755)
-%{_libdir}/allegro/4.0/alleg-alsadigi.so
-%{_libdir}/allegro/4.0/alleg-alsamidi.so
+%{_libdir}/allegro/4.1/alleg-alsadigi.so
+%{_libdir}/allegro/4.1/alleg-alsamidi.so
+%else
+%files alsa9
+%defattr(644,root,root,755)
+%{_libdir}/allegro/4.1/alleg-alsa9digi.so
+%{_libdir}/allegro/4.1/alleg-alsa9midi.so
 %endif
+%endif
+%endif
+
+%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
+%attr(755,root,root) %{_bindir}/mathtest
+%attr(755,root,root) %{_bindir}/miditest
+%attr(755,root,root) %{_bindir}/play-allegro
+%attr(755,root,root) %{_bindir}/playfli
+%attr(755,root,root) %{_bindir}/test-allegro
+%attr(755,root,root) %{_bindir}/vesainfo
+
+%files examples
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/ex12bit
+%attr(755,root,root) %{_bindir}/ex3buf
+%attr(755,root,root) %{_bindir}/ex3d
+%attr(755,root,root) %{_bindir}/exaccel
+%attr(755,root,root) %{_bindir}/exalpha
+%attr(755,root,root) %{_bindir}/exbitmap
+%attr(755,root,root) %{_bindir}/exblend
+%attr(755,root,root) %{_bindir}/excamera
+%attr(755,root,root) %{_bindir}/excolmap
+%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}/exgui
+%attr(755,root,root) %{_bindir}/exhello
+%attr(755,root,root) %{_bindir}/exjoy
+%attr(755,root,root) %{_bindir}/exkeys
+%attr(755,root,root) %{_bindir}/exlights
+%attr(755,root,root) %{_bindir}/exmem
+%attr(755,root,root) %{_bindir}/exmidi
+%attr(755,root,root) %{_bindir}/exmouse
+%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}/exsample
+%attr(755,root,root) %{_bindir}/exscale
+%attr(755,root,root) %{_bindir}/exscn3d
+%attr(755,root,root) %{_bindir}/exscroll
+%attr(755,root,root) %{_bindir}/exshade
+%attr(755,root,root) %{_bindir}/exspline
+%attr(755,root,root) %{_bindir}/exsprite
+%attr(755,root,root) %{_bindir}/exstars
+%attr(755,root,root) %{_bindir}/exstream
+%attr(755,root,root) %{_bindir}/exswitch
+%attr(755,root,root) %{_bindir}/extimer
+%attr(755,root,root) %{_bindir}/extrans
+%attr(755,root,root) %{_bindir}/extruec
+%attr(755,root,root) %{_bindir}/exunicod
+%attr(755,root,root) %{_bindir}/exupdate
+%attr(755,root,root) %{_bindir}/exxfade
+%attr(755,root,root) %{_bindir}/exzbuf
This page took 0.046408 seconds and 4 git commands to generate.