diff --git a/README.md b/README.md index 52d1288..79da690 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,6 @@ # liballegro4 +Allegro is a game programming library for C/C++ developers distributed freely. +It provides many functions for graphics, sounds, player input (keyboard, mouse and joystick) and timers. +It also provides fixed and floating point mathematical functions, 3d functions, file management functions, compressed datafile and a GUI. + diff --git a/allegro-4.2.2-autoconf1.patch b/allegro-4.2.2-autoconf1.patch new file mode 100644 index 0000000..2590793 --- /dev/null +++ b/allegro-4.2.2-autoconf1.patch @@ -0,0 +1,48 @@ +--- allegro-4.2.2/aclocal.m4 2007-06-16 03:52:28.000000000 +0200 ++++ allegro-4.2.2-gil/aclocal.m4 2008-08-18 18:33:02.000000000 +0200 +@@ -193,7 +193,6 @@ + dnl Variables: + dnl allegro_sv_procfs=(yes|no) + dnl +-AC_MSG_CHECKING(for System V sys/procfs) + AC_DEFUN(ALLEGRO_ACTEST_SV_PROCFS, [ + AC_CHECK_HEADER(sys/procfs.h, [ + AC_TRY_COMPILE( +@@ -209,7 +208,6 @@ + [allegro_sv_procfs=no] + ]) + ]) +-AC_MSG_RESULT($allegro_sv_procfs) + + dnl + dnl Test if sys/procfs.h tells us argc/argv. +@@ -217,7 +215,6 @@ + dnl Variables: + dnl allegro_procfs_argcv=(yes|no) + dnl +-AC_MSG_CHECKING(if sys/procfs.h tells us argc/argv) + AC_DEFUN(ALLEGRO_ACTEST_PROCFS_ARGCV, [ + AC_TRY_COMPILE( + [#include ], +@@ -226,7 +223,6 @@ + [allegro_procfs_argcv=no] + ) + ]) +-AC_MSG_RESULT($allegro_procfs_argcv) + + dnl + dnl Test for getexecname() on Solaris +@@ -234,13 +230,11 @@ + dnl Variables: + dnl allegro_sys_getexecname=(yes|no) + dnl +-AC_MSG_CHECKING(for getexecname) + AC_DEFUN(ALLEGRO_ACTEST_SYS_GETEXECNAME, + [AC_CHECK_LIB(c, getexecname, + [allegro_sys_getexecname=yes], + [allegro_sys_getexecname=no])] + ) +-AC_MSG_RESULT($allegro_sys_getexecname) + + dnl + dnl Test for X-Windows support. diff --git a/allegro-4.2.2-exec-stack1.patch b/allegro-4.2.2-exec-stack1.patch new file mode 100644 index 0000000..425555c --- /dev/null +++ b/allegro-4.2.2-exec-stack1.patch @@ -0,0 +1,285 @@ +diff -Nru allegro-4.2.2/src/amd64/acpus.s allegro-4.2.2-gil/src/amd64/acpus.s +--- allegro-4.2.2/src/amd64/acpus.s 2005-03-10 19:32:55.000000000 +0100 ++++ allegro-4.2.2-gil/src/amd64/acpus.s 2008-08-18 18:39:07.000000000 +0200 +@@ -128,3 +128,6 @@ + popq %rbp + ret + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/iblit16.s allegro-4.2.2-gil/src/i386/iblit16.s +--- allegro-4.2.2/src/i386/iblit16.s 2005-06-22 18:53:26.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/iblit16.s 2008-08-18 18:40:58.000000000 +0200 +@@ -743,3 +743,6 @@ + + + #endif /* ifdef ALLEGRO_COLOR16 */ ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/iblit24.s allegro-4.2.2-gil/src/i386/iblit24.s +--- allegro-4.2.2/src/i386/iblit24.s 2005-06-22 18:53:26.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/iblit24.s 2008-08-18 18:41:42.000000000 +0200 +@@ -372,3 +372,6 @@ + + + #endif /* ifdef ALLEGRO_COLOR24 */ ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/iblit32.s allegro-4.2.2-gil/src/i386/iblit32.s +--- allegro-4.2.2/src/i386/iblit32.s 2005-06-22 18:53:26.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/iblit32.s 2008-08-18 18:43:20.000000000 +0200 +@@ -357,3 +357,6 @@ + + + #endif /* ifdef ALLEGRO_COLOR32 */ ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/iblit8.s allegro-4.2.2-gil/src/i386/iblit8.s +--- allegro-4.2.2/src/i386/iblit8.s 2005-06-22 18:53:26.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/iblit8.s 2008-08-18 18:42:18.000000000 +0200 +@@ -787,3 +787,6 @@ + + + #endif /* ifdef ALLEGRO_COLOR8 */ ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/icpus.s allegro-4.2.2-gil/src/i386/icpus.s +--- allegro-4.2.2/src/i386/icpus.s 2005-03-10 19:32:55.000000000 +0100 ++++ allegro-4.2.2-gil/src/i386/icpus.s 2008-08-18 18:44:18.000000000 +0200 +@@ -213,3 +213,6 @@ + popl %ebp + ret + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/igfx15.s allegro-4.2.2-gil/src/i386/igfx15.s +--- allegro-4.2.2/src/i386/igfx15.s 2000-05-14 22:16:30.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/igfx15.s 2008-08-18 18:45:00.000000000 +0200 +@@ -436,3 +436,6 @@ + + #endif /* ifdef ALLEGRO_COLOR16 */ + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +diff -Nru allegro-4.2.2/src/i386/igfx16.s allegro-4.2.2-gil/src/i386/igfx16.s +--- allegro-4.2.2/src/i386/igfx16.s 2000-05-14 22:16:30.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/igfx16.s 2008-08-18 18:45:16.000000000 +0200 +@@ -487,3 +487,6 @@ + + #endif /* ifdef ALLEGRO_COLOR16 */ + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/igfx24.s allegro-4.2.2-gil/src/i386/igfx24.s +--- allegro-4.2.2/src/i386/igfx24.s 2000-05-14 22:16:30.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/igfx24.s 2008-08-18 18:45:33.000000000 +0200 +@@ -581,3 +581,6 @@ + + #endif /* ifdef ALLEGRO_COLOR24 */ + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/igfx32.s allegro-4.2.2-gil/src/i386/igfx32.s +--- allegro-4.2.2/src/i386/igfx32.s 2000-05-14 22:16:30.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/igfx32.s 2008-08-18 18:45:46.000000000 +0200 +@@ -467,3 +467,6 @@ + + #endif /* ifdef ALLEGRO_COLOR32 */ + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/igfx8.s allegro-4.2.2-gil/src/i386/igfx8.s +--- allegro-4.2.2/src/i386/igfx8.s 2001-04-09 06:49:29.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/igfx8.s 2008-08-18 18:46:01.000000000 +0200 +@@ -530,3 +530,6 @@ + + #endif /* ifdef ALLEGRO_COLOR8 */ + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/imisc.s allegro-4.2.2-gil/src/i386/imisc.s +--- allegro-4.2.2/src/i386/imisc.s 2002-07-05 12:23:47.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/imisc.s 2008-08-18 18:46:17.000000000 +0200 +@@ -600,3 +600,6 @@ + popl %ebp + ret /* end of fixhypot() */ + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/iscanmmx.s allegro-4.2.2-gil/src/i386/iscanmmx.s +--- allegro-4.2.2/src/i386/iscanmmx.s 2003-07-16 21:43:28.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/iscanmmx.s 2008-08-18 18:47:10.000000000 +0200 +@@ -1672,3 +1672,6 @@ + + + #endif /* MMX */ ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/iscan.s allegro-4.2.2-gil/src/i386/iscan.s +--- allegro-4.2.2/src/i386/iscan.s 2004-09-06 09:05:45.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/iscan.s 2008-08-18 18:47:40.000000000 +0200 +@@ -2777,3 +2777,6 @@ + ret /* end of _poly_scanline_ptex_mask_trans24() */ + + #endif /* COLOR24 */ ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/ispr15.s allegro-4.2.2-gil/src/i386/ispr15.s +--- allegro-4.2.2/src/i386/ispr15.s 2001-11-10 20:31:51.000000000 +0100 ++++ allegro-4.2.2-gil/src/i386/ispr15.s 2008-08-18 18:48:15.000000000 +0200 +@@ -494,3 +494,6 @@ + + #endif /* ifdef ALLEGRO_COLOR16 */ + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/ispr16.s allegro-4.2.2-gil/src/i386/ispr16.s +--- allegro-4.2.2/src/i386/ispr16.s 2002-10-02 20:29:57.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/ispr16.s 2008-08-18 18:48:35.000000000 +0200 +@@ -889,3 +889,6 @@ + + #endif /* ifdef ALLEGRO_COLOR16 */ + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/ispr24.s allegro-4.2.2-gil/src/i386/ispr24.s +--- allegro-4.2.2/src/i386/ispr24.s 2005-11-15 04:38:31.000000000 +0100 ++++ allegro-4.2.2-gil/src/i386/ispr24.s 2008-08-18 18:48:55.000000000 +0200 +@@ -913,3 +913,6 @@ + + #endif /* ifdef ALLEGRO_COLOR24 */ + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/ispr32.s allegro-4.2.2-gil/src/i386/ispr32.s +--- allegro-4.2.2/src/i386/ispr32.s 2002-10-02 20:29:57.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/ispr32.s 2008-08-18 18:49:07.000000000 +0200 +@@ -700,3 +700,6 @@ + + #endif /* ifdef ALLEGRO_COLOR32 */ + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/ispr8.s allegro-4.2.2-gil/src/i386/ispr8.s +--- allegro-4.2.2/src/i386/ispr8.s 2004-10-11 22:00:45.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/ispr8.s 2008-08-18 18:49:26.000000000 +0200 +@@ -1046,3 +1046,6 @@ + + + #endif /* ifdef ALLEGRO_COLOR8 */ ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/i386/izbuf.s allegro-4.2.2-gil/src/i386/izbuf.s +--- allegro-4.2.2/src/i386/izbuf.s 2004-04-08 21:26:20.000000000 +0200 ++++ allegro-4.2.2-gil/src/i386/izbuf.s 2008-08-18 18:49:46.000000000 +0200 +@@ -2328,3 +2328,6 @@ + ret /* end of _poly_zbuf_ptex_mask_trans24() */ + + #endif /* COLOR24 */ ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/linux/svgalibs.s allegro-4.2.2-gil/src/linux/svgalibs.s +--- allegro-4.2.2/src/linux/svgalibs.s 2002-07-09 19:45:20.000000000 +0200 ++++ allegro-4.2.2-gil/src/linux/svgalibs.s 2008-08-18 18:50:23.000000000 +0200 +@@ -65,3 +65,6 @@ + + #endif + #endif ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/misc/icolconv.s allegro-4.2.2-gil/src/misc/icolconv.s +--- allegro-4.2.2/src/misc/icolconv.s 2005-07-24 06:56:07.000000000 +0200 ++++ allegro-4.2.2-gil/src/misc/icolconv.s 2008-08-18 18:51:20.000000000 +0200 +@@ -3288,3 +3288,6 @@ + + #endif /* ALLEGRO_NO_COLORCOPY */ + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/misc/modexgfx.s allegro-4.2.2-gil/src/misc/modexgfx.s +--- allegro-4.2.2/src/misc/modexgfx.s 2005-07-28 00:18:59.000000000 +0200 ++++ allegro-4.2.2-gil/src/misc/modexgfx.s 2008-08-18 18:51:43.000000000 +0200 +@@ -1688,3 +1688,6 @@ + + + #endif /* (!defined ALLEGRO_LINUX) || ((defined ALLEGRO_LINUX_VGA) && ... */ ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/misc/vbeafs.s allegro-4.2.2-gil/src/misc/vbeafs.s +--- allegro-4.2.2/src/misc/vbeafs.s 2000-05-14 22:16:30.000000000 +0200 ++++ allegro-4.2.2-gil/src/misc/vbeafs.s 2008-08-18 18:52:17.000000000 +0200 +@@ -188,3 +188,6 @@ + + + #endif /* ifdef VBE/AF is cool on this platform */ ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/x/xdga2s.s allegro-4.2.2-gil/src/x/xdga2s.s +--- allegro-4.2.2/src/x/xdga2s.s 2002-07-09 19:45:20.000000000 +0200 ++++ allegro-4.2.2-gil/src/x/xdga2s.s 2008-08-18 18:52:57.000000000 +0200 +@@ -51,3 +51,6 @@ + #endif + #endif + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file +diff -Nru allegro-4.2.2/src/x/xwins.s allegro-4.2.2-gil/src/x/xwins.s +--- allegro-4.2.2/src/x/xwins.s 2004-08-31 09:29:29.000000000 +0200 ++++ allegro-4.2.2-gil/src/x/xwins.s 2008-08-18 18:53:11.000000000 +0200 +@@ -51,3 +51,6 @@ + + #endif + ++#ifdef __ELF__ ++.section .note.GNU-stack,"",%progbits ++#endif +\ No newline at end of file diff --git a/allegro-4.2.2-flags1.patch b/allegro-4.2.2-flags1.patch new file mode 100644 index 0000000..003be81 --- /dev/null +++ b/allegro-4.2.2-flags1.patch @@ -0,0 +1,64 @@ +diff -Nru allegro-4.2.2/configure.in allegro-4.2.2-gil/configure.in +--- allegro-4.2.2/configure.in 2007-07-15 06:46:22.000000000 +0200 ++++ allegro-4.2.2-gil/configure.in 2008-08-18 18:19:34.000000000 +0200 +@@ -293,11 +293,7 @@ + COMPILE_PROGRAM=COMPILE_NORMAL + COMPILE_CXX_PROGRAM=COMPILE_CXX_NORMAL + COMPILE_S_PROGRAM=COMPILE_S_NORMAL +- if test "X$allegro_cv_prog_ld_s" = "Xyes"; then +- PROG_LDFLAGS="-s \$(LDFLAGS)" +- else +- PROG_LDFLAGS="\$(LDFLAGS)" +- fi ++ PROG_LDFLAGS="\$(LDFLAGS)" + LIB_TO_LINK=alleg + PLUGIN_LIB=lib/unix/libaldat.a + allegro_build_normal_library=yes +@@ -834,11 +830,7 @@ + ALLEGRO_DEBUG_CFLAGS="$ALLEGRO_DEBUG_CFLAGS -DDMALLOC" + fi + ALLEGRO_PROFILE_CFLAGS="$CFLAGS -pg $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS" +- if test "X$allegro_cv_support_fomit_frame_pointer" = "Xyes"; then +- CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math -fomit-frame-pointer $WFLAGS" +- else +- CFLAGS="$CFLAGS $TARGET_ARCH -O2 -funroll-loops -ffast-math $WFLAGS" +- fi ++ CFLAGS="$CFLAGS $WFLAGS" + ALLEGRO_SFLAGS="-x assembler-with-cpp" + ALLEGRO_SHAREDLIB_CFLAGS="-fPIC -DALLEGRO_SHARED" + else +diff -Nru allegro-4.2.2/misc/allegro-config.in allegro-4.2.2-gil/misc/allegro-config.in +--- allegro-4.2.2/misc/allegro-config.in 2007-07-22 09:45:47.000000000 +0200 ++++ allegro-4.2.2-gil/misc/allegro-config.in 2008-08-18 18:23:04.000000000 +0200 +@@ -24,7 +24,6 @@ + + accepts_frameworks=no + +-allegro_ldflags="@LDFLAGS@" + allegro_libs="@LIBS@" + allegro_frameworks="@FRAMEWORKS@" + allegro_cflags="" +@@ -183,9 +182,9 @@ + if test "$echo_libs" = "yes"; then + libdirs=-L${lib_path} + if test "$static_libs" = "yes"; then +- echo $libdirs $allegro_ldflags -l${lib_type} $allegro_libs ++ echo $libdirs -l${lib_type} $allegro_libs + else +- echo $libdirs $allegro_ldflags -l${lib_type}-${version} -l${lib_type}_unsharable ++ echo $libdirs -l${lib_type}-${version} -l${lib_type}_unsharable + fi + fi + +diff -Nru allegro-4.2.2/misc/deplib.sh allegro-4.2.2-gil/misc/deplib.sh +--- allegro-4.2.2/misc/deplib.sh 2003-05-17 14:58:09.000000000 +0200 ++++ allegro-4.2.2-gil/misc/deplib.sh 2008-08-18 18:24:55.000000000 +0200 +@@ -70,7 +70,7 @@ + done + echo "$prev" + echo "" +-write_code alleg LIBALLEG -s ++write_code alleg LIBALLEG + echo "" + echo "" + diff --git a/liballegro-4.4.1.1-add_dl_to_ldflags.patch b/liballegro-4.4.1.1-add_dl_to_ldflags.patch new file mode 100644 index 0000000..1dbb8fb --- /dev/null +++ b/liballegro-4.4.1.1-add_dl_to_ldflags.patch @@ -0,0 +1,12 @@ +diff -Nru allegro-4.4.1.1.orig/CMakeLists.txt allegro-4.4.1.1/CMakeLists.txt +--- allegro-4.4.1.1.orig/CMakeLists.txt 2010-03-03 11:07:40.000000000 +0100 ++++ allegro-4.4.1.1/CMakeLists.txt 2013-03-01 13:43:32.735559487 +0100 +@@ -218,7 +218,7 @@ + if(CMAKE_COMPILER_IS_GNUCC) + set(COMPILER_GCC 1) + set(ALLEGRO_GCC 1) +- set(WFLAGS "-W -Wall -Wno-unused-parameter") ++ set(WFLAGS "-W -Wall -Wno-unused-parameter -ldl") + set(WFLAGS_C_ONLY "-Wdeclaration-after-statement") + if(STRICT_WARN) + set(WFLAGS "${WFLAGS} -Werror -Wpointer-arith") diff --git a/liballegro4-4.4.1.1-libpng-1.5.patch b/liballegro4-4.4.1.1-libpng-1.5.patch new file mode 100644 index 0000000..9cf5dfe --- /dev/null +++ b/liballegro4-4.4.1.1-libpng-1.5.patch @@ -0,0 +1,10 @@ +--- allegro-4.4.1.1.orig/addons/loadpng/loadpng.c 2010-03-03 04:18:36.000000000 +0100 ++++ allegro-4.4.1.1/addons/loadpng/loadpng.c 2013-03-01 11:15:32.589964242 +0100 +@@ -5,6 +5,7 @@ + */ + + ++#include + #include + #include + #include diff --git a/liballegro4.spec b/liballegro4.spec new file mode 100644 index 0000000..4a7ac2e --- /dev/null +++ b/liballegro4.spec @@ -0,0 +1,168 @@ +%define majver %(echo %version | cut -d. -f1-3) +Name: liballegro4 +Version: 4.4.2 +Release: 1mamba +Summary: A game programming library +Group: System/Libraries +Vendor: openmamba +Distribution: openmamba +Packager: Automatic Build System +URL: http://www.talula.demon.co.uk/allegro/ +Source: http://downloads.sourceforge.net/sourceforge/alleg/allegro-%{version}.tar.gz +Patch0: allegro-4.2.2-flags1.patch +Patch1: allegro-4.2.2-autoconf1.patch +Patch2: allegro-4.2.2-exec-stack1.patch +Patch3: liballegro4-4.4.1.1-libpng-1.5.patch +Patch4: liballegro-4.4.1.1-add_dl_to_ldflags.patch +License: GPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libalsa-devel +BuildRequires: libICE-devel +BuildRequires: libjack-devel +BuildRequires: libSM-devel +BuildRequires: libX11-devel +BuildRequires: libXcursor-devel +BuildRequires: libXext-devel +BuildRequires: libXpm-devel +BuildRequires: libXxf86dga-devel +BuildRequires: libXxf86vm-devel +## AUTOBUILDREQ-END +Requires(post): %{__install_info} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Allegro is a game programming library for C/C++ developers distributed freely. +It provides many functions for graphics, sounds, player input (keyboard, mouse and joystick) and timers. +It also provides fixed and floating point mathematical functions, 3d functions, file management functions, compressed datafile and a GUI. + +%package devel +Group: Development/Libraries +Summary: Static libraries and headers for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description devel +Allegro is a game programming library for C/C++ developers distributed freely. +It provides many functions for graphics, sounds, player input (keyboard, mouse and joystick) and timers. +It also provides fixed and floating point mathematical functions, 3d functions, file management functions, compressed datafile and a GUI. + +This package contains static libraries and header files need for development. + +%package tools +Group: Development/Tools +Summary: Utility applications for %{name} +Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release} + +%description tools +This package contains utility applications for %{name}. + +%prep +%setup -q -n allegro-%{version} +#%patch0 -p1 +#%patch1 -p1 +#%patch2 -p1 +%patch3 -p1 +%patch4 -p1 + +%build +%cmake + +%make + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall +#install -D -m 644 allegro.cfg %{buildroot}%{_sysconfdir}/allegrorc +install -d -m 755 %{buildroot}%{_datadir}/allegro +install -D -m 644 keyboard.dat language.dat %{buildroot}%{_datadir}/allegro +install -d %{buildroot}%{_datadir} +mv %{buildroot}%{_prefix}/info %{buildroot}%{_datadir} +mv %{buildroot}%{_prefix}/doc %{buildroot}%{_datadir} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post +%install_info allegro.info +/sbin/ldconfig +: + +%preun +/sbin/ldconfig +%uninstall_info allegro.info +: + +%files +%defattr(-,root,root) +#%config(noreplace) %{_sysconfdir}/allegrorc +%dir %{_datadir}/allegro +%{_datadir}/allegro/*.dat +#%dir %{_libdir}/allegro/%{version} +#%{_libdir}/allegro/%{version}/alleg-*.so +#%{_libdir}/allegro/%{version}/modules.lst +%{_libdir}/*.so.* +%dir %{_libdir}/allegro +%dir %{_libdir}/allegro/%{majver} +%{_libdir}/allegro/%{majver}/alleg-alsadigi.so +%{_libdir}/allegro/%{majver}/alleg-alsamidi.so +%{_libdir}/allegro/%{majver}/alleg-dga2.so +%{_libdir}/allegro/%{majver}/alleg-jack.so +%{_libdir}/allegro/%{majver}/modules.lst +%{_infodir}/allegro.info.gz +%doc AUTHORS + +%files tools +%defattr(-,root,root) +%{_bindir}/colormap +%{_bindir}/dat +%{_bindir}/dat2c +%{_bindir}/dat2s +%{_bindir}/exedat +%{_bindir}/grabber +%{_bindir}/pack +%{_bindir}/pat2dat +%{_bindir}/rgbmap +%{_bindir}/textconv + +%files devel +%defattr(-,root,root) +%{_bindir}/allegro-config +%dir %{_includedir}/allegro +%{_includedir}/allegro/*.h +%dir %{_includedir}/allegro/inline +%{_includedir}/allegro/inline/*.inl +%dir %{_includedir}/allegro/internal +%{_includedir}/allegro/internal/*.h +%dir %{_includedir}/allegro/platform +%{_includedir}/allegro/platform/*.h +%dir %{_includedir}/allegrogl/GLext +%{_includedir}/allegrogl/GLext/*.h +%{_includedir}/allegrogl/*.h +%{_includedir}/*.h +%{_libdir}/*.a +%{_libdir}/*.so +%{_libdir}/pkgconfig/allegro.pc +%{_libdir}/pkgconfig/allegrogl.pc +%{_libdir}/pkgconfig/jpgalleg.pc +%{_libdir}/pkgconfig/loadpng.pc +%{_libdir}/pkgconfig/logg.pc +%{_docdir}/allegro-%{majver}/ +#%{_mandir}/man3/*.3.gz +#%{_datadir}/aclocal/allegro.m4 +#%{_infodir}/allegro.info.gz +%doc CHANGES THANKS +%doc readme.txt docs/build/unix.txt docs/build/linux.txt + +%changelog +* Mon Apr 15 2013 Automatic Build System 4.4.2-1mamba +- update to 4.4.2 + +* Fri Mar 01 2013 Silvan Calarco 4.4.1.1-1mamba +- update to 4.4.1.1 +- rebuilt as legacy package + +* Wed Aug 25 2010 Silvan Calarco 4.4.0.1-1mamba +- update to 4.4.0.1 + +* Fri Aug 15 2008 gil 4.2.2-1mamba +- package created by autospec