Репозитории 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
%def_disable static
%set_verify_elf_method unresolved=relaxed,textrel=relaxed
%define major 4
%define minor 2
%define bugfix 2
Name: allegro
Version: %major.%minor.%bugfix
Release: alt1
Group: System/Libraries
Summary: Game programming library
License: Giftware
URL: http://alleg.sourceforge.net
Packager: Pavlov Konstantin <thresh at altlinux.ru>
Source0: http://sunsite.auc.dk/allegro/%name-%version.tar
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: esound-devel gcc-c++ glib2-devel libalsa-devel
BuildRequires: libarts-devel libaudiofile-devel pkgconfig
BuildRequires: xorg-x11-devel
%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
%if_enabled static
%package -n %libname-devel-static
Group: Development/C
Summary: Game programming library static development files
Requires: %libname-devel = %version-%release
%endif
%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.
%if_enabled static
%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.
%endif
%prep
%setup -q -n allegro-%version
%build
%configure \
--enable-fbcon=no \
--enable-shared \
%{subst_enable static} \
--enable-sse=no \
--enable-linux=no \
--enable-asm=no \
--enable-mmx=no \
--enable-modules=yes \
--enable-esddigi=yes \
--enable-alsadigi=yes \
--enable-artsdigi=yes \
--enable-ossdigi=yes \
--enable-alsamidi=yes \
--enable-svgalib=no
%make
%install
%makeinstall modulebasedir=%buildroot/%_libdir/allegro
ln -s liballeg-%major.%minor.%bugfix.so %buildroot/%_libdir/liballeg.so
mkdir -p %buildroot%_datadir/doc/%name-devel-%version
%post -n %libname
%post_ldconfig
%postun -n %libname
%postun_ldconfig
%files -n %libname
%doc readme.txt
%dir %_libdir/allegro
%dir %_libdir/allegro/%major.%minor.%bugfix
%_libdir/*.so*
%_libdir/allegro/%major.%minor.%bugfix/alleg-dga2.so
%_libdir/allegro/%major.%minor.%bugfix/modules.lst
%_libdir/allegro/%major.%minor.%bugfix/alleg-alsadigi.so
%_libdir/allegro/%major.%minor.%bugfix/alleg-alsamidi.so
%_libdir/allegro/%major.%minor.%bugfix/alleg-jackdigi.so
%files -n %libname-arts
%_libdir/allegro/%major.%minor.%bugfix/alleg-artsdigi.so
%files -n %libname-esound
%_libdir/allegro/%major.%minor.%bugfix/alleg-esddigi.so
%files -n %libname-devel
%doc docs/txt/*
%_bindir/*
%_includedir/*
%_datadir/aclocal/allegro.m4
%_libdir/liballeg_unsharable.a
%if_enabled static
%files -n %libname-devel-static
%_libdir/*.a
%exclude %_libdir/liballeg_unsharable.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь
%define _optlevel 3
%def_disable static
%set_verify_elf_method unresolved=relaxed,textrel=relaxed
%define major 4
%define minor 2
%define bugfix 2
Name: allegro
Version: %major.%minor.%bugfix
Release: alt1
Group: System/Libraries
Summary: Game programming library
License: Giftware
URL: http://alleg.sourceforge.net
Packager: Pavlov Konstantin <thresh at altlinux.ru>
Source0: http://sunsite.auc.dk/allegro/%name-%version.tar
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: esound-devel gcc-c++ glib2-devel libalsa-devel
BuildRequires: libarts-devel libaudiofile-devel pkgconfig
BuildRequires: xorg-x11-devel
%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
%if_enabled static
%package -n %libname-devel-static
Group: Development/C
Summary: Game programming library static development files
Requires: %libname-devel = %version-%release
%endif
%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.
%if_enabled static
%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.
%endif
%prep
%setup -q -n allegro-%version
%build
%configure \
--enable-fbcon=no \
--enable-shared \
%{subst_enable static} \
--enable-sse=no \
--enable-linux=no \
--enable-asm=no \
--enable-mmx=no \
--enable-modules=yes \
--enable-esddigi=yes \
--enable-alsadigi=yes \
--enable-artsdigi=yes \
--enable-ossdigi=yes \
--enable-alsamidi=yes \
--enable-svgalib=no
%make
%install
%makeinstall modulebasedir=%buildroot/%_libdir/allegro
ln -s liballeg-%major.%minor.%bugfix.so %buildroot/%_libdir/liballeg.so
mkdir -p %buildroot%_datadir/doc/%name-devel-%version
%post -n %libname
%post_ldconfig
%postun -n %libname
%postun_ldconfig
%files -n %libname
%doc readme.txt
%dir %_libdir/allegro
%dir %_libdir/allegro/%major.%minor.%bugfix
%_libdir/*.so*
%_libdir/allegro/%major.%minor.%bugfix/alleg-dga2.so
%_libdir/allegro/%major.%minor.%bugfix/modules.lst
%_libdir/allegro/%major.%minor.%bugfix/alleg-alsadigi.so
%_libdir/allegro/%major.%minor.%bugfix/alleg-alsamidi.so
%_libdir/allegro/%major.%minor.%bugfix/alleg-jackdigi.so
%files -n %libname-arts
%_libdir/allegro/%major.%minor.%bugfix/alleg-artsdigi.so
%files -n %libname-esound
%_libdir/allegro/%major.%minor.%bugfix/alleg-esddigi.so
%files -n %libname-devel
%doc docs/txt/*
%_bindir/*
%_includedir/*
%_datadir/aclocal/allegro.m4
%_libdir/liballeg_unsharable.a
%if_enabled static
%files -n %libname-devel-static
%_libdir/*.a
%exclude %_libdir/liballeg_unsharable.a
%endif
%changelog
…
Полный changelog можно просмотреть здесь