cvsextras 69fd365
Name:           allegro
40390ca
Version:        4.2.0
352ff89
Release:        4
04ceb5e
cvsextras 69fd365
Summary:        A game programming library
cvsextras 69fd365
Summary(es):    Una libreria de programacion de juegos
cvsextras 69fd365
Summary(fr):    Une librairie de programmation de jeux
cvsextras 69fd365
Summary(it):    Una libreria per la programmazione di videogiochi
947503f
Summary(cz):    Knihovna pro programování her
cvsextras 69fd365
cvsextras 69fd365
Group:          System Environment/Libraries
cvsextras 69fd365
License:        Giftware
cvsextras 69fd365
URL:            http://alleg.sourceforge.net/
40390ca
Source:         http://download.sourceforge.net/alleg/allegro-%{version}.tar.gz
40390ca
Patch1:         allegro-4.0.3-libdir.patch
40390ca
Patch2:         allegro-4.0.3-cfg.patch
352ff89
Patch3:         allegro-4.2.0-nostrip.patch
cvsextras 69fd365
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
71f4b39
BuildRequires:  esound-devel, texinfo, perl, arts-devel
ca241f8
BuildRequires:  xorg-x11-proto-devel, libX11-devel, libXext-devel, libXt-devel
ca241f8
BuildRequires:  libXpm-devel, libXcursor-devel, libXxf86vm-devel
ca241f8
BuildRequires:  libXxf86dga-devel
cvsextras 69fd365
cvsextras 69fd365
%description
cvsextras 69fd365
Allegro is a cross-platform library intended for use in computer games
cvsextras 69fd365
and other types of multimedia programming.
cvsextras 69fd365
cvsextras 69fd365
%description -l es
cvsextras 69fd365
Allegro es una librería multi-plataforma creada para ser usada en la
cvsextras 69fd365
programación de juegos u otro tipo de programación multimedia.
cvsextras 69fd365
cvsextras 69fd365
%description -l fr
cvsextras 69fd365
Allegro est une librairie multi-plateforme destinée à être utilisée
cvsextras 69fd365
dans les jeux vidéo ou d'autres types de programmation multimédia.
cvsextras 69fd365
cvsextras 69fd365
%description -l it
cvsextras 69fd365
Allegro è una libreria multipiattaforma dedicata all'uso nei
cvsextras 69fd365
videogiochi ed in altri tipi di programmazione multimediale.
cvsextras 69fd365
947503f
%description -l cs
947503f
Allegro je multiplatformní knihovna pro počítačové hry a jiné
947503f
typy multimediálního programování.
947503f
cvsextras 69fd365
%package devel
cvsextras 69fd365
Summary:        A game programming library
cvsextras 69fd365
Summary(es):    Una libreria de programacion de juegos
cvsextras 69fd365
Summary(fr):    Une librairie de programmation de jeux
cvsextras 69fd365
Summary(it):    Una libreria per la programmazione di videogiochi
947503f
Summary(cz):    Knihovna pro programování her
cvsextras 69fd365
Group:          Development/Libraries
ca241f8
Requires:       %{name} = %{version}-%{release}, xorg-x11-proto-devel
ca241f8
Requires:       libX11-devel, libXcursor-devel
df5d954
Requires(post): /sbin/install-info
df5d954
Requires(preun): /sbin/install-info
cvsextras 69fd365
cvsextras 69fd365
%description devel
cvsextras 69fd365
Allegro is a cross-platform library intended for use in computer games
cvsextras 69fd365
and other types of multimedia programming. This package is needed to
cvsextras 69fd365
build programs written with Allegro.
cvsextras 69fd365
cvsextras 69fd365
%description devel -l es
cvsextras 69fd365
Allegro es una librería multi-plataforma creada para ser usada en la
cvsextras 69fd365
programación de juegos u otro tipo de programación multimedia. Este
cvsextras 69fd365
paquete es necesario para compilar los programas que usen Allegro.
cvsextras 69fd365
cvsextras 69fd365
%description devel -l fr
cvsextras 69fd365
Allegro est une librairie multi-plateforme destinée à être utilisée
cvsextras 69fd365
dans les jeux vidéo ou d'autres types de programmation multimédia. Ce
cvsextras 69fd365
package est nécessaire pour compiler les programmes utilisant Allegro.
cvsextras 69fd365
cvsextras 69fd365
%description devel -l it
cvsextras 69fd365
Allegro è una libreria multipiattaforma dedicata all'uso nei
cvsextras 69fd365
videogiochi ed in altri tipi di programmazione multimediale. Questo
cvsextras 69fd365
pacchetto è necessario per compilare programmi scritti con Allegro.
cvsextras 69fd365
947503f
%description devel -l cs
947503f
Allegro je multiplatformní knihovna pro počítačové hry a jiné
947503f
typy multimediálního programování. Tento balíček je je potřebný
947503f
k sestavení programů napsaných v Allegru.
947503f
cvsextras 69fd365
%package tools
cvsextras 69fd365
Summary:        Extra tools for the Allegro programming library
947503f
Summary(es):    Herramientas adicionales para la librería de programación Allegro
947503f
Summary(fr):    Outils supplémentaires pour la librairie de programmation Allegro
cvsextras 69fd365
Summary(it):    Programmi di utilità aggiuntivi per la libreria Allegro
947503f
Summary(cz):    Přídavné nástroje pro programovou knihovnu Allegro
cvsextras 69fd365
Group:          Development/Tools
4927311
Requires:       %{name} = %{version}-%{release}
cvsextras 69fd365
cvsextras 69fd365
%description tools
cvsextras 69fd365
Allegro is a cross-platform library intended for use in computer games
cvsextras 69fd365
and other types of multimedia programming. This package contains extra
cvsextras 69fd365
tools which are useful for developing Allegro programs.
cvsextras 69fd365
cvsextras 69fd365
%description tools -l es
cvsextras 69fd365
Allegro es una librería multi-plataforma creada para ser usada en la
cvsextras 69fd365
programación de juegos u otro tipo de programación multimedia. Este
cvsextras 69fd365
paquete contiene herramientas adicionales que son útiles para
cvsextras 69fd365
desarrollar programas que usen Allegro.
cvsextras 69fd365
cvsextras 69fd365
%description tools -l fr
cvsextras 69fd365
Allegro est une librairie multi-plateforme destinée à être utilisée
cvsextras 69fd365
dans les jeux vidéo ou d'autres types de programmation multimédia. Ce
cvsextras 69fd365
package contient des outils supplémentaires qui sont utiles pour le
cvsextras 69fd365
développement de programmes avec Allegro.
cvsextras 69fd365
cvsextras 69fd365
%description tools -l it
cvsextras 69fd365
Allegro è una libreria multipiattaforma dedicata all'uso nei
cvsextras 69fd365
videogiochi ed in altri tipi di programmazione multimediale. Questo
cvsextras 69fd365
pacchetto contiene programmi di utilità aggiuntivi utili allo sviluppo
cvsextras 69fd365
di programmi con Allegro.
cvsextras 69fd365
947503f
%description tools -l cs
947503f
Allegro je multiplatformní knihovna pro počítačové hry a jiné
947503f
typy multimediálního programování. Tento balíček obsahuje přídavné nástroje,
947503f
které jsou užitečné pro vývoj Allegro programů.
947503f
cvsextras 69fd365
cvsextras 69fd365
%prep
cvsextras 69fd365
%setup -q
40390ca
%patch1 -p0 -b .libdir
40390ca
%patch2 -p0 -b .cfg
352ff89
%patch3 -p1 -z .nostrip
cvsextras 69fd365
cvsextras 69fd365
%build
bdeec79
%configure \
cd0c4c9
%ifnarch %{ix86}
bdeec79
  --enable-vga=no --enable-vbeaf=no \
bdeec79
%endif
bdeec79
  --enable-svgalib=no
283ccc4
%ifnarch %{ix86}
bf54c3c
#make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -DALLEGRO_USE_C -I%{_includedir}/kde/artsc"
bf54c3c
make CFLAGS="$RPM_OPT_FLAGS -DALLEGRO_USE_C -I%{_includedir}/kde/artsc"
283ccc4
%else
bf54c3c
#make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/kde/artsc"
bf54c3c
make CFLAGS="$RPM_OPT_FLAGS -I%{_includedir}/kde/artsc"
283ccc4
%endif
cvsextras 69fd365
MKDATA_PRELOAD=../../lib/unix/liballeg-%{version}.so \
cvsextras 69fd365
  DAT=../../tools/dat sh misc/mkdata.sh
cvsextras 69fd365
cvsextras 69fd365
cvsextras 69fd365
%install
cvsextras 69fd365
rm -rf $RPM_BUILD_ROOT
bdeec79
make install install-man install-info \
bdeec79
  DESTDIR=$RPM_BUILD_ROOT LDCONFIG=/bin/true
12bb060
install -Dpm 644 allegro.cfg $RPM_BUILD_ROOT%{_sysconfdir}/allegrorc
12bb060
install -dm 755 $RPM_BUILD_ROOT%{_datadir}/allegro
cvsextras 69fd365
install -pm 644 keyboard.dat language.dat $RPM_BUILD_ROOT%{_datadir}/allegro
cvsextras 69fd365
find demo examples setup -type f -perm +111 -print | xargs rm
cvsextras 69fd365
chmod 755 `find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.so"`
cvsextras 69fd365
rm -f $RPM_BUILD_ROOT%{_infodir}/dir
cvsextras 69fd365
cvsextras 69fd365
cvsextras 69fd365
%post -p /sbin/ldconfig
cvsextras 69fd365
cvsextras 69fd365
%postun -p /sbin/ldconfig
cvsextras 69fd365
cvsextras 69fd365
%post devel
cvsextras 69fd365
/sbin/install-info %{_infodir}/allegro.info %{_infodir}/dir 2>/dev/null || :
cvsextras 69fd365
cvsextras 69fd365
%preun devel
12bb060
if [ $1 -eq 0 ] ; then
cvsextras 69fd365
  /sbin/install-info --delete %{_infodir}/allegro.info %{_infodir}/dir \
cvsextras 69fd365
    2>/dev/null || :
cvsextras 69fd365
fi
cvsextras 69fd365
cvsextras 69fd365
cvsextras 69fd365
%clean
cvsextras 69fd365
rm -rf $RPM_BUILD_ROOT
cvsextras 69fd365
cvsextras 69fd365
cvsextras 69fd365
%files
cvsextras 69fd365
%defattr(-,root,root,-)
cvsextras 69fd365
%doc readme.txt docs/build/unix.txt docs/build/linux.txt
cvsextras 69fd365
%doc AUTHORS CHANGES THANKS
cvsextras 69fd365
%config(noreplace) %{_sysconfdir}/allegrorc
12bb060
%{_libdir}/liballeg*.so*
cvsextras 69fd365
%{_libdir}/allegro
cvsextras 69fd365
%{_datadir}/allegro
cvsextras 69fd365
cvsextras 69fd365
%files devel
cvsextras 69fd365
%defattr(-,root,root,-)
cvsextras 69fd365
%doc docs/txt/abi.txt docs/txt/ahack.txt docs/txt/allegro.txt
cvsextras 69fd365
%doc docs/txt/const.txt docs/txt/faq.txt docs/txt/help.txt
cvsextras 69fd365
%doc todo.txt docs/html
cvsextras 69fd365
%doc demo examples setup
cvsextras 69fd365
%{_bindir}/allegro-config
12bb060
%{_libdir}/liballeg_unsharable.a
12bb060
%{_includedir}/*alleg*
cvsextras 69fd365
%{_infodir}/allegro.info*
cvsextras 69fd365
%{_mandir}/man3/*
40390ca
%{_datadir}/aclocal/allegro.m4
cvsextras 69fd365
cvsextras 69fd365
%files tools
cvsextras 69fd365
%defattr(-,root,root,-)
40390ca
%doc tools/plugins/plugins.txt
cvsextras 69fd365
%{_bindir}/colormap
cvsextras 69fd365
%{_bindir}/dat
cvsextras 69fd365
%{_bindir}/dat2s
40390ca
%{_bindir}/dat2c
cvsextras 69fd365
%{_bindir}/exedat
cvsextras 69fd365
%{_bindir}/grabber
cvsextras 69fd365
%{_bindir}/pack
cvsextras 69fd365
%{_bindir}/pat2dat
cvsextras 69fd365
%{_bindir}/rgbmap
cvsextras 69fd365
%{_bindir}/textconv
cvsextras 69fd365
cvsextras 69fd365
cvsextras 69fd365
%changelog
352ff89
* Mon Jan 23 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 4.2.0-4
352ff89
- add allegro-4.2.0-nostrip.patch, so that the main .so file
352ff89
  doesn't get stripped and we actually get debuginfo for it in
352ff89
  allegro-debuginfo
352ff89
ca241f8
* Fri Jan 20 2006 Hans de Goede <j.w.r.degoede@hhs.nl> 4.2.0-3
176597b
- update / fix BuildRequires for modular X (bz 178245)
ca241f8
bf54c3c
* Fri Dec 16 2005 Jindrich Novy <jnovy@redhat.com> 4.2.0-2
71f4b39
- update dependencies for the new modular X
bf54c3c
- disable _smp_mflags to workaround build failure caused
bf54c3c
  by bad dependencies
71f4b39
40390ca
* Wed May 25 2005 Jindrich Novy <jnovy@redhat.com> 4.2.0-1
40390ca
- update to 4.2.0
40390ca
- package dat2c, allegro.m4
40390ca
- replace XFree86-devel Buildrequires with xorg-x11-devel
40390ca
- drop mmaptest, novga, gcc4 patches
40390ca
283ccc4
* Wed May 25 2005 Jindrich Novy <jnovy@redhat.com> 4.0.3-13
283ccc4
- fix compilation on x86_64 (#158648)
283ccc4
69f390b
* Sun May 22 2005 Jeremy Katz <katzj@redhat.com> - 4.0.3-12
69f390b
- rebuild on all arches
69f390b
947503f
* Mon May  2 2005 Jindrich Novy <jnovy@redhat.com> 0:4.0.3-11
947503f
- fix build failures with gcc4 (#156224)
947503f
- don't use %%{name} in patch names
947503f
- add Czech translation to package description/summary
947503f
04ceb5e
* Fri Apr  7 2005 Michael Schwendt <mschwendt[AT]users.sf.net>
04ceb5e
- rebuilt
04ceb5e
df5d954
* Fri Mar  4 2005 Ville Skyttä <ville.skytta at iki.fi>
df5d954
- Split context marked dependency syntax to work around #118773.
df5d954
cd0c4c9
* Sun Feb 13 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:4.0.3-9
cd0c4c9
- Disable vga and vbeaf on all non-%%{ix86}.
cd0c4c9
- Fix lib paths in allegro-config for 64-bit archs.
cd0c4c9
- Use *nix commands in allegrorc's [grabber] section.
cd0c4c9
bdeec79
* Sun Feb 13 2005 Ville Skyttä <ville.skytta at iki.fi> - 0:4.0.3-8
bdeec79
- Build without vga and vbeaf on non-x86-like archs.
bdeec79
- Apply upstream patch to fix build without vga.
bdeec79
12bb060
* Fri Nov 12 2004 Ville Skyttä <ville.skytta at iki.fi> - 0:4.0.3-7
12bb060
- Explicitly disable svgalib for now.
12bb060
- Let rpm take care of all stripping.
12bb060
- Build with whatever the compiler supports, MMX and friends are detected
12bb060
  at runtime.
12bb060
- Minor specfile style improvements.
12bb060
a70ab5a
* Wed Nov 10 2004 Michael Schwendt <mschwendt[AT]users.sf.net> - 0:4.0.3-6
a70ab5a
- Fix build for FC3 via fixed mmap test in configure script.
a70ab5a
cvsextras 69fd365
* Mon Nov 10 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:4.0.3-0.fdr.5
cvsextras 69fd365
- Use MMX/SSE where appropriate (bug 959).
cvsextras 69fd365
cvsextras 69fd365
* Mon May 26 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:4.0.3-0.fdr.4
cvsextras 69fd365
- Include *.so.* symlink.
cvsextras 69fd365
- Re-introduce ldconfigs.
cvsextras 69fd365
- *grumble*
cvsextras 69fd365
cvsextras 69fd365
* Mon May 26 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:4.0.3-0.fdr.3
cvsextras 69fd365
- -devel Requires XFree86-devel.
cvsextras 69fd365
cvsextras 69fd365
* Mon May 26 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:4.0.3-0.fdr.2
cvsextras 69fd365
- Handle --excludedocs installs gracefully.
cvsextras 69fd365
- BuildRequires arts-devel.
cvsextras 69fd365
- Make *.so executable so RPM groks autodependencies.
cvsextras 69fd365
- Update to accordance with current Fedora spec template.
cvsextras 69fd365
cvsextras 69fd365
* Sat Apr 26 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:4.0.3-0.fdr.1
cvsextras 69fd365
- Update to 4.0.3.
cvsextras 69fd365
- Make build honor optflags.
cvsextras 69fd365
- Remove redundant ldconfigs.
cvsextras 69fd365
cvsextras 69fd365
* Sat Apr  5 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:4.0.3-0.fdr.0.1.rc3
cvsextras 69fd365
- Update to 4.0.3RC3.
cvsextras 69fd365
cvsextras 69fd365
* Thu Mar 20 2003 Ville Skyttä <ville.skytta at iki.fi> - 0:4.0.3-0.fdr.0.1.rc2
cvsextras 69fd365
- Update to 4.0.3RC2, and to current Fedora guidelines.
cvsextras 69fd365
- make -jX works again.
cvsextras 69fd365
- Don't remove info files on -devel upgrade.
cvsextras 69fd365
cvsextras 69fd365
* Wed Feb 19 2003 Warren Togami <warren@togami.com> 4.0.3-0.beta2.fedora.2
cvsextras 69fd365
- Disable smp make flags, Makefile needs fixing
cvsextras 69fd365
cvsextras 69fd365
* Wed Feb 12 2003 Ville Skyttä <ville.skytta at iki.fi> - 4.0.3-0.beta2.fedora.1
cvsextras 69fd365
- First Fedora release, based on upstream source RPM.
cvsextras 69fd365
cvsextras 69fd365
* Fri Dec 07 2001 Angelo Mottola <lillo@users.sourceforge.net>  4.0.0-1
cvsextras 69fd365
- added italian translation
cvsextras 69fd365
cvsextras 69fd365
* Tue Oct 02 2001 Peter Wang <tjaden@users.sourceforge.net>  3.9.39-1
cvsextras 69fd365
- icon courtesy of Johan Peitz
cvsextras 69fd365
cvsextras 69fd365
* Mon Sep 24 2001 Peter Wang <tjaden@users.sourceforge.net>
cvsextras 69fd365
- remaining translations by Eric Botcazou and Grzegorz Adam Hankiewicz
cvsextras 69fd365
cvsextras 69fd365
* Sun Sep 23 2001 Peter Wang <tjaden@users.sourceforge.net>
cvsextras 69fd365
- translations by Eric Botcazou and Javier González
cvsextras 69fd365
- language.dat and keyboard.dat moved to main package
cvsextras 69fd365
- devel split into devel and tools packages
cvsextras 69fd365
- makedoc added to tools package
cvsextras 69fd365
cvsextras 69fd365
* Wed Sep 16 2001 Peter Wang <tjaden@users.sourceforge.net>
cvsextras 69fd365
- merged Osvaldo's spec file with gfoot's spec and some other changes
cvsextras 69fd365
cvsextras 69fd365
* Wed Sep 27 2000 Osvaldo Santana Neto <osvaldo@conectiva.com>
cvsextras 69fd365
- updated to 3.9.33