Репозитории ALT
5.1: | 4.2.2-alt1 |
4.1: | 4.2.2-alt1 |
4.0: | 4.2.2-alt1 |
3.0: | 4.1.14-alt1 |
Группа :: Система/Библиотеки
Пакет: allegro
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define libname lib%name
%define _optlevel 3
%if_enabled static
%define buildstatic 1
%else
%define buildstatic 0
%endif
%set_verify_elf_method textrel=relaxed
%define major 4
%define minor 1
%define bugfix 14
Name: allegro
Version: %major.%minor.%bugfix
Release: alt1
Group: System/Libraries
Summary: Game programming library
License: Public Domain
URL: http://alleg.sf.net
Source0: http://sunsite.auc.dk/allegro/%name-%version.tar.bz2
Patch0: allegro-4.0.1-allegro.h.patch
Patch1: allegro-4.1.8-allegro.h.patch
Obsoletes: %name
Provides: %name = %version-%release
Conflicts: %libname-svgalib < %version-%release
#BuildRequires: XFree86-devel XFree86-libs esound-devel gcc-c++ glib2-devel libalsa-devel libarts-devel libaudiofile-devel pkgconfig
BuildRequires: XFree86-devel XFree86-libs esound-devel gcc-c++ glib2-devel libalsa-devel
BuildRequires: libarts-devel libaudiofile-devel pkgconfig
%package -n %libname
Group: System/Libraries
Summary: Game programming library
Requires: %libname = %version-%release
%package -n %libname-esound
Group: System/Libraries
Summary: esound plugins for %libname
Requires: %libname = %version-%release
%package -n %libname-arts
Group: System/Libraries
Summary: Game programming library
Requires: %libname = %version-%release
%package -n %libname-devel
Group: Development/C
Summary: Game programming library development files
Requires: %libname = %version-%release
Provides: allegro-devel = %version-%release
Obsoletes: allegro-devel
%package -n %libname-devel-static
Group: Development/C
Summary: Game programming library development files
Requires: %libname-devel = %version-%release
%description
Allegro is a library of functions for use in computer games.
%description -n %libname
Allegro is a library of functions for use in computer games.
%description -n %libname-esound
esound plugins for %libname
%description -n %libname-arts
arts plugins for %libname
%description -n %libname-devel
Allegro is a library of functions for use in computer games.
This package contains files needed to build programs using Allegro.
%description -n %libname-devel-static
Allegro is a library of functions for use in computer games.
This package contains files needed to build programs using Allegro.
%prep
%setup -q -n allegro-%version
%if "%version" < "4.1.0"
%patch0 -p1
%else
%patch1 -p1
%endif
%build
%configure \
--enable-fbcon=no \
--enable-shared \
%if %buildstatic
--enable-static \
%else
--disable-static \
%endif
--enable-sse=no \
\
--enable-modules=yes \
--enable-esddigi=yes \
--enable-alsadigi=yes \
--enable-artsdigi=yes \
--enable-ossdigi=yes \
\
--enable-alsamidi=yes \
\
--enable-svgalib=no
%make depend
%add_optflags -funroll-loops -ffast-math -fomit-frame-pointer -I/usr/include/artsc
%make CFLAGS="%optflags"
%install
%makeinstall modulebasedir=%buildroot//%_libdir/allegro
ln -s liballeg-%major.%minor.%bugfix.so %buildroot/%_libdir/liballeg.so
%post -n %libname
%post_ldconfig
%postun -n %libname
%postun_ldconfig
%files -n %libname
%doc readme.txt
%_libdir/*.so*
%dir %_libdir/allegro/%major.%minor
%_libdir/allegro/%major.%minor/alleg-dga2.so
%_libdir/allegro/%major.%minor/alleg-vga.so
%_libdir/allegro/%major.%minor/modules.lst
%_libdir/allegro/%major.%minor/alleg-alsadigi.so
#%_libdir/allegro/%major.%minor/alleg-alsamidi.so
%files -n %libname-arts
%_libdir/allegro/%major.%minor/alleg-artsdigi.so
%files -n %libname-esound
%_libdir/allegro/%major.%minor/alleg-esddigi.so
%files -n %libname-devel
%doc docs/txt/*
%_bindir/*
%_includedir/*
%_libdir/liballeg_unsharable.a
%if %buildstatic
%files -n %libname-devel-static
%_libdir/*.a
%exclude %_libdir/liballeg_unsharable.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь
%define _optlevel 3
%if_enabled static
%define buildstatic 1
%else
%define buildstatic 0
%endif
%set_verify_elf_method textrel=relaxed
%define major 4
%define minor 1
%define bugfix 14
Name: allegro
Version: %major.%minor.%bugfix
Release: alt1
Group: System/Libraries
Summary: Game programming library
License: Public Domain
URL: http://alleg.sf.net
Source0: http://sunsite.auc.dk/allegro/%name-%version.tar.bz2
Patch0: allegro-4.0.1-allegro.h.patch
Patch1: allegro-4.1.8-allegro.h.patch
Obsoletes: %name
Provides: %name = %version-%release
Conflicts: %libname-svgalib < %version-%release
#BuildRequires: XFree86-devel XFree86-libs esound-devel gcc-c++ glib2-devel libalsa-devel libarts-devel libaudiofile-devel pkgconfig
BuildRequires: XFree86-devel XFree86-libs esound-devel gcc-c++ glib2-devel libalsa-devel
BuildRequires: libarts-devel libaudiofile-devel pkgconfig
%package -n %libname
Group: System/Libraries
Summary: Game programming library
Requires: %libname = %version-%release
%package -n %libname-esound
Group: System/Libraries
Summary: esound plugins for %libname
Requires: %libname = %version-%release
%package -n %libname-arts
Group: System/Libraries
Summary: Game programming library
Requires: %libname = %version-%release
%package -n %libname-devel
Group: Development/C
Summary: Game programming library development files
Requires: %libname = %version-%release
Provides: allegro-devel = %version-%release
Obsoletes: allegro-devel
%package -n %libname-devel-static
Group: Development/C
Summary: Game programming library development files
Requires: %libname-devel = %version-%release
%description
Allegro is a library of functions for use in computer games.
%description -n %libname
Allegro is a library of functions for use in computer games.
%description -n %libname-esound
esound plugins for %libname
%description -n %libname-arts
arts plugins for %libname
%description -n %libname-devel
Allegro is a library of functions for use in computer games.
This package contains files needed to build programs using Allegro.
%description -n %libname-devel-static
Allegro is a library of functions for use in computer games.
This package contains files needed to build programs using Allegro.
%prep
%setup -q -n allegro-%version
%if "%version" < "4.1.0"
%patch0 -p1
%else
%patch1 -p1
%endif
%build
%configure \
--enable-fbcon=no \
--enable-shared \
%if %buildstatic
--enable-static \
%else
--disable-static \
%endif
--enable-sse=no \
\
--enable-modules=yes \
--enable-esddigi=yes \
--enable-alsadigi=yes \
--enable-artsdigi=yes \
--enable-ossdigi=yes \
\
--enable-alsamidi=yes \
\
--enable-svgalib=no
%make depend
%add_optflags -funroll-loops -ffast-math -fomit-frame-pointer -I/usr/include/artsc
%make CFLAGS="%optflags"
%install
%makeinstall modulebasedir=%buildroot//%_libdir/allegro
ln -s liballeg-%major.%minor.%bugfix.so %buildroot/%_libdir/liballeg.so
%post -n %libname
%post_ldconfig
%postun -n %libname
%postun_ldconfig
%files -n %libname
%doc readme.txt
%_libdir/*.so*
%dir %_libdir/allegro/%major.%minor
%_libdir/allegro/%major.%minor/alleg-dga2.so
%_libdir/allegro/%major.%minor/alleg-vga.so
%_libdir/allegro/%major.%minor/modules.lst
%_libdir/allegro/%major.%minor/alleg-alsadigi.so
#%_libdir/allegro/%major.%minor/alleg-alsamidi.so
%files -n %libname-arts
%_libdir/allegro/%major.%minor/alleg-artsdigi.so
%files -n %libname-esound
%_libdir/allegro/%major.%minor/alleg-esddigi.so
%files -n %libname-devel
%doc docs/txt/*
%_bindir/*
%_includedir/*
%_libdir/liballeg_unsharable.a
%if %buildstatic
%files -n %libname-devel-static
%_libdir/*.a
%exclude %_libdir/liballeg_unsharable.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь