liballegro/liballegro.spec

148 lines
4.6 KiB
RPMSpec
Raw Normal View History

%define majver %(echo %version | cut -d. -f1-3)
Name: liballegro
Version: 5.2.0.0
Release: 1mamba
Summary: A game programming library
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.talula.demon.co.uk/allegro/
Source: http://download.gna.org/allegro/allegro/%{majver}/allegro-%{majver}.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_*.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
%{_mandir}/man3/*
#%doc CHANGES-*.txt README.txt
%changelog
* Wed May 04 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 5.2.0.0-1mamba
- update to 5.2.0.0
* Thu Jan 15 2015 Automatic Build System <autodist@mambasoft.it> 5.0.11-1mamba
- automatic version update by autodist
* 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