2024-01-06 03:45:36 +01:00
|
|
|
%define majver %(echo %version | cut -d. -f1-3)
|
|
|
|
Name: liballegro
|
2024-01-06 03:45:39 +01:00
|
|
|
Version: 5.2.9.0
|
2024-01-06 03:45:36 +01:00
|
|
|
Release: 1mamba
|
|
|
|
Summary: A game programming library
|
|
|
|
Group: System/Libraries
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
2024-01-06 03:45:37 +01:00
|
|
|
URL: https://liballeg.org/
|
2024-01-06 03:45:37 +01:00
|
|
|
Source: https://github.com/liballeg/allegro5.git/%{version}/allegro5-%{version}.tar.bz2
|
2024-01-06 03:45:36 +01:00
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libICE-devel
|
|
|
|
BuildRequires: libSM-devel
|
|
|
|
BuildRequires: libX11-devel
|
2024-01-06 03:45:37 +01:00
|
|
|
BuildRequires: libXScrnSaver-devel
|
2024-01-06 03:45:36 +01:00
|
|
|
BuildRequires: libXcursor-devel
|
|
|
|
BuildRequires: libXext-devel
|
2024-01-06 03:45:37 +01:00
|
|
|
BuildRequires: libXi-devel
|
|
|
|
BuildRequires: libXinerama-devel
|
|
|
|
BuildRequires: libXrandr-devel
|
|
|
|
BuildRequires: libalsa-devel
|
2024-01-06 03:45:39 +01:00
|
|
|
BuildRequires: libat-spi2-core-devel
|
2024-01-06 03:45:37 +01:00
|
|
|
BuildRequires: libcairo-devel
|
|
|
|
BuildRequires: libflac-devel
|
|
|
|
BuildRequires: libfreetype-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libgdk-pixbuf-devel
|
|
|
|
BuildRequires: libglib-devel
|
2024-01-06 03:45:39 +01:00
|
|
|
BuildRequires: libglu-devel
|
2024-01-06 03:45:37 +01:00
|
|
|
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
|
2024-01-06 03:45:36 +01:00
|
|
|
## 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.
|
2024-01-06 03:45:39 +01:00
|
|
|
This package contains static libraries and header files needed for development.
|
2024-01-06 03:45:36 +01:00
|
|
|
|
|
|
|
%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}.
|
|
|
|
|
2024-01-06 03:45:39 +01:00
|
|
|
%debug_package
|
|
|
|
|
2024-01-06 03:45:36 +01:00
|
|
|
%prep
|
2024-01-06 03:45:37 +01:00
|
|
|
%setup -q -n allegro5-%{version}
|
2024-01-06 03:45:39 +01:00
|
|
|
sed -i "s|\"lib/cmake|\"%{_lib}/cmake|" CMakeLists.txt
|
2024-01-06 03:45:36 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 03:45:36 +01:00
|
|
|
%cmake -d build
|
|
|
|
|
2024-01-06 03:45:36 +01:00
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
2024-01-06 03:45:36 +01:00
|
|
|
%makeinstall -C build
|
2024-01-06 03:45:36 +01:00
|
|
|
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.*
|
2024-01-06 03:45:36 +01:00
|
|
|
%{_libdir}/liballegro_*.so.*
|
2024-01-06 03:45:36 +01:00
|
|
|
%doc CONTRIBUTORS.txt LICENSE.txt
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/liballegro.so
|
2024-01-06 03:45:36 +01:00
|
|
|
%{_libdir}/liballegro_*.so
|
2024-01-06 03:45:36 +01:00
|
|
|
%dir %{_includedir}/allegro5
|
|
|
|
%{_includedir}/allegro5/*
|
|
|
|
%{_libdir}/pkgconfig/allegro*.pc
|
2024-01-06 03:45:39 +01:00
|
|
|
%{_libdir}/cmake/allegro
|
|
|
|
%{_libdir}/cmake/allegro/Allegro*.cmake
|
2024-01-06 03:45:36 +01:00
|
|
|
%{_mandir}/man3/*
|
|
|
|
#%doc CHANGES-*.txt README.txt
|
|
|
|
|
|
|
|
%changelog
|
2024-01-06 03:45:39 +01:00
|
|
|
* Mon Nov 27 2023 Automatic Build System <autodist@mambasoft.it> 5.2.9.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:45:37 +01:00
|
|
|
* Tue Jun 07 2022 Automatic Build System <autodist@mambasoft.it> 5.2.8.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:45:37 +01:00
|
|
|
* Mon Sep 27 2021 Automatic Build System <autodist@mambasoft.it> 5.2.7.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:45:37 +01:00
|
|
|
* Wed Mar 11 2020 Automatic Build System <autodist@mambasoft.it> 5.2.6.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:45:37 +01:00
|
|
|
* Fri Mar 15 2019 Automatic Build System <autodist@mambasoft.it> 5.2.5-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:45:37 +01:00
|
|
|
* Sat Mar 24 2018 Automatic Build System <autodist@mambasoft.it> 5.2.4-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:45:37 +01:00
|
|
|
* Sun Dec 31 2017 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.3.0-1mamba
|
|
|
|
- update to 5.2.3.0
|
|
|
|
|
2024-01-06 03:45:36 +01:00
|
|
|
* Sat Jan 21 2017 Automatic Build System <autodist@mambasoft.it> 5.2.2-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:45:36 +01:00
|
|
|
* Wed Dec 07 2016 Automatic Build System <autodist@mambasoft.it> 5.2.1.1-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:45:36 +01:00
|
|
|
* Sun Aug 07 2016 Automatic Build System <autodist@mambasoft.it> 5.2.1.0-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:45:36 +01:00
|
|
|
* Wed May 04 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.0.0-1mamba
|
|
|
|
- update to 5.2.0.0
|
|
|
|
|
2024-01-06 03:45:36 +01:00
|
|
|
* Thu Jan 15 2015 Automatic Build System <autodist@mambasoft.it> 5.0.11-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
2024-01-06 03:45:36 +01:00
|
|
|
* Tue Oct 29 2013 Automatic Build System <autodist@mambasoft.it> 5.0.10-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Apr 15 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.9-3mamba
|
|
|
|
- added postplug update script to remove previous liballegro packages broken in postun script
|
|
|
|
|
|
|
|
* Fri Mar 01 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 5.0.9-2mamba
|
|
|
|
- fixed postun script
|
|
|
|
|
|
|
|
* Mon Feb 18 2013 Automatic Build System <autodist@mambasoft.it> 5.0.9-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Sat Dec 01 2012 Automatic Build System <autodist@mambasoft.it> 5.0.8-1mamba
|
|
|
|
- automatic version update by autodist
|
|
|
|
|
|
|
|
* Mon Apr 04 2011 Automatic Build System <autodist@mambasoft.it> 5.0.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Wed Aug 25 2010 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.0.1-1mamba
|
|
|
|
- update to 4.4.0.1
|
|
|
|
|
|
|
|
* Fri Aug 15 2008 gil <puntogil@libero.it> 4.2.2-1mamba
|
|
|
|
- package created by autospec
|