173 lines
5.2 KiB
RPMSpec
173 lines
5.2 KiB
RPMSpec
%define majver %(echo %version | cut -d. -f1-3)
|
|
Name: liballegro4
|
|
Version: 4.4.3
|
|
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: https://github.com/liballeg/allegro5/releases/download/%{version}/allegro-%{version}.tar.gz
|
|
#Source: http://downloads.sourceforge.net/sourceforge/alleg/allegro-%{version}.tar.gz
|
|
Patch0: allegro-4.2.2-flags1.patch
|
|
Patch1: allegro-4.2.2-autoconf1.patch
|
|
Patch2: allegro-4.2.2-exec-stack1.patch
|
|
Patch3: liballegro4-4.4.1.1-libpng-1.5.patch
|
|
Patch4: liballegro-4.4.1.1-add_dl_to_ldflags.patch
|
|
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.
|
|
|
|
%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}
|
|
#%patch0 -p1
|
|
#%patch1 -p1
|
|
#%patch2 -p1
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
|
|
%build
|
|
%cmake
|
|
|
|
%make
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall
|
|
#install -D -m 644 allegro.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}
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%post
|
|
%install_info allegro.info
|
|
/sbin/ldconfig
|
|
:
|
|
|
|
%preun
|
|
/sbin/ldconfig
|
|
%uninstall_info allegro.info
|
|
:
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
#%config(noreplace) %{_sysconfdir}/allegrorc
|
|
%dir %{_datadir}/allegro
|
|
%{_datadir}/allegro/*.dat
|
|
#%dir %{_libdir}/allegro/%{version}
|
|
#%{_libdir}/allegro/%{version}/alleg-*.so
|
|
#%{_libdir}/allegro/%{version}/modules.lst
|
|
%{_libdir}/*.so.*
|
|
%dir %{_libdir}/allegro
|
|
%dir %{_libdir}/allegro/%{majver}
|
|
%{_libdir}/allegro/%{majver}/alleg-alsadigi.so
|
|
%{_libdir}/allegro/%{majver}/alleg-alsamidi.so
|
|
%{_libdir}/allegro/%{majver}/alleg-dga2.so
|
|
%{_libdir}/allegro/%{majver}/alleg-jack.so
|
|
%{_libdir}/allegro/%{majver}/modules.lst
|
|
%{_infodir}/allegro.info.gz
|
|
%doc AUTHORS
|
|
|
|
%files tools
|
|
%defattr(-,root,root)
|
|
%{_bindir}/colormap
|
|
%{_bindir}/dat
|
|
%{_bindir}/dat2c
|
|
%{_bindir}/dat2s
|
|
%{_bindir}/exedat
|
|
%{_bindir}/grabber
|
|
%{_bindir}/pack
|
|
%{_bindir}/pat2dat
|
|
%{_bindir}/rgbmap
|
|
%{_bindir}/textconv
|
|
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%{_bindir}/allegro-config
|
|
%dir %{_includedir}/allegro
|
|
%{_includedir}/allegro/*.h
|
|
%dir %{_includedir}/allegro/inline
|
|
%{_includedir}/allegro/inline/*.inl
|
|
%dir %{_includedir}/allegro/internal
|
|
%{_includedir}/allegro/internal/*.h
|
|
%dir %{_includedir}/allegro/platform
|
|
%{_includedir}/allegro/platform/*.h
|
|
%dir %{_includedir}/allegrogl/GLext
|
|
%{_includedir}/allegrogl/GLext/*.h
|
|
%{_includedir}/allegrogl/*.h
|
|
%{_includedir}/*.h
|
|
#%{_libdir}/*.a
|
|
%{_libdir}/*.so
|
|
%{_libdir}/pkgconfig/allegro.pc
|
|
%{_libdir}/pkgconfig/allegrogl.pc
|
|
%{_libdir}/pkgconfig/jpgalleg.pc
|
|
%{_libdir}/pkgconfig/loadpng.pc
|
|
%{_libdir}/pkgconfig/logg.pc
|
|
%{_docdir}/allegro-%{majver}/
|
|
#%{_mandir}/man3/*.3.gz
|
|
#%{_datadir}/aclocal/allegro.m4
|
|
#%{_infodir}/allegro.info.gz
|
|
%doc CHANGES THANKS
|
|
%doc readme.txt docs/build/unix.txt docs/build/linux.txt
|
|
|
|
%changelog
|
|
* Fri Mar 01 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.3-1mamba
|
|
- update to 4.4.3
|
|
|
|
* Mon Apr 15 2013 Automatic Build System <autodist@mambasoft.it> 4.4.2-1mamba
|
|
- update to 4.4.2
|
|
|
|
* Fri Mar 01 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 4.4.1.1-1mamba
|
|
- update to 4.4.1.1
|
|
- rebuilt as legacy package
|
|
|
|
* 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
|