%define majver %(echo %version | cut -d. -f1-3) Name: liballegro Version: 5.0.10 Release: 1mamba Summary: A game programming library Group: System/Libraries Vendor: openmamba Distribution: openmamba Packager: Silvan Calarco URL: http://www.talula.demon.co.uk/allegro/ Source: http://downloads.sourceforge.net/sourceforge/alleg/allegro-%{version}.tar.gz 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. 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} %build %cmake %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall 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_acodec.so.* %{_libdir}/liballegro_audio.so.* %{_libdir}/liballegro_color.so.* %{_libdir}/liballegro_dialog.so.* %{_libdir}/liballegro_font.so.* %{_libdir}/liballegro_image.so.* %{_libdir}/liballegro_main.so.* %{_libdir}/liballegro_memfile.so.* %{_libdir}/liballegro_physfs.so.* %{_libdir}/liballegro_primitives.so.* %{_libdir}/liballegro_ttf.so.* %doc CONTRIBUTORS.txt LICENSE.txt %files devel %defattr(-,root,root) %{_libdir}/liballegro.so %{_libdir}/liballegro_acodec.so %{_libdir}/liballegro_audio.so %{_libdir}/liballegro_color.so %{_libdir}/liballegro_dialog.so %{_libdir}/liballegro_font.so %{_libdir}/liballegro_image.so %{_libdir}/liballegro_main.so %{_libdir}/liballegro_memfile.so %{_libdir}/liballegro_physfs.so %{_libdir}/liballegro_primitives.so %{_libdir}/liballegro_ttf.so %dir %{_includedir}/allegro5 %{_includedir}/allegro5/* %{_libdir}/pkgconfig/allegro*.pc %{_mandir}/man3/* #%doc CHANGES-*.txt README.txt %changelog * 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