%define majver %(echo %version | cut -d. -f1-3) Name: liballegro Version: 5.2.9.1 Release: 1mamba Summary: A game programming library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: https://liballeg.org/ Source: https://github.com/liballeg/allegro5.git/%{version}/allegro5-%{version}.tar.bz2 License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libICE-devel BuildRequires: libSM-devel BuildRequires: libX11-devel BuildRequires: libXScrnSaver-devel BuildRequires: libXcursor-devel BuildRequires: libXext-devel BuildRequires: libXi-devel BuildRequires: libXinerama-devel BuildRequires: libXrandr-devel BuildRequires: libalsa-devel BuildRequires: libat-spi2-core-devel BuildRequires: libcairo-devel BuildRequires: libflac-devel BuildRequires: libfreetype-devel BuildRequires: libgcc BuildRequires: libgdk-pixbuf-devel BuildRequires: libglib-devel BuildRequires: libglu-devel BuildRequires: libglvnd-devel BuildRequires: libgtk3-devel BuildRequires: libharfbuzz-devel BuildRequires: libjpeg-devel BuildRequires: libogg-devel BuildRequires: libopenal-devel BuildRequires: libopus-devel BuildRequires: libopusfile-devel BuildRequires: libpango-devel BuildRequires: libphysfs-devel BuildRequires: libpng-devel BuildRequires: libpulseaudio-devel BuildRequires: libstdc++6-devel BuildRequires: libtheora-devel BuildRequires: libvorbis-devel BuildRequires: libwebp-devel BuildRequires: libz-devel ## AUTOBUILDREQ-END Requires(post):%{__install_info} %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 needed 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}. %debug_package %prep %setup -q -n allegro5-%{version} sed -i "s|\"lib/cmake|\"%{_lib}/cmake|" CMakeLists.txt %build %cmake -d build %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall -C build install -D -m 644 allegro5.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} mv %{buildroot}%{_prefix}/man %{buildroot}%{_datadir} install -d %{buildroot}%{_sysconfdir}/postplug/updates.d cat > %{buildroot}%{_sysconfdir}/postplug/updates.d/liballegro-remove-broken.upd << _EOF rpm -e liballegro-5.0.9-1mamba --noscripts rpm -e liballegro-4.4.0.1-1mamba --noscripts exit 0 _EOF %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post %install_info allegro.info /sbin/ldconfig : %postun /sbin/ldconfig : %preun %uninstall_info allegro.info : %files %defattr(-,root,root) %config(noreplace) %{_sysconfdir}/allegrorc %{_sysconfdir}/postplug/updates.d/liballegro-remove-broken.upd %{_libdir}/liballegro.so.* %{_libdir}/liballegro_*.so.* %doc CONTRIBUTORS.txt LICENSE.txt %files devel %defattr(-,root,root) %{_libdir}/liballegro.so %{_libdir}/liballegro_*.so %dir %{_includedir}/allegro5 %{_includedir}/allegro5/* %{_libdir}/pkgconfig/allegro*.pc %{_libdir}/cmake/allegro %{_libdir}/cmake/allegro/Allegro*.cmake %{_mandir}/man3/* #%doc CHANGES-*.txt README.txt %changelog * Sun Jan 21 2024 Automatic Build System 5.2.9.1-1mamba - automatic version update by autodist * Mon Nov 27 2023 Automatic Build System 5.2.9.0-1mamba - automatic version update by autodist * Tue Jun 07 2022 Automatic Build System 5.2.8.0-1mamba - automatic version update by autodist * Mon Sep 27 2021 Automatic Build System 5.2.7.0-1mamba - automatic version update by autodist * Wed Mar 11 2020 Automatic Build System 5.2.6.0-1mamba - automatic version update by autodist * Fri Mar 15 2019 Automatic Build System 5.2.5-1mamba - automatic version update by autodist * Sat Mar 24 2018 Automatic Build System 5.2.4-1mamba - automatic version update by autodist * Sun Dec 31 2017 Silvan Calarco 5.2.3.0-1mamba - update to 5.2.3.0 * Sat Jan 21 2017 Automatic Build System 5.2.2-1mamba - automatic version update by autodist * Wed Dec 07 2016 Automatic Build System 5.2.1.1-1mamba - automatic version update by autodist * Sun Aug 07 2016 Automatic Build System 5.2.1.0-1mamba - automatic version update by autodist * Wed May 04 2016 Silvan Calarco 5.2.0.0-1mamba - update to 5.2.0.0 * Thu Jan 15 2015 Automatic Build System 5.0.11-1mamba - automatic version update by autodist * Tue Oct 29 2013 Automatic Build System 5.0.10-1mamba - automatic version update by autodist * Mon Apr 15 2013 Silvan Calarco 5.0.9-3mamba - added postplug update script to remove previous liballegro packages broken in postun script * Fri Mar 01 2013 Silvan Calarco 5.0.9-2mamba - fixed postun script * Mon Feb 18 2013 Automatic Build System 5.0.9-1mamba - automatic version update by autodist * Sat Dec 01 2012 Automatic Build System 5.0.8-1mamba - automatic version update by autodist * Mon Apr 04 2011 Automatic Build System 5.0.2-1mamba - automatic update by autodist * 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