138 lines
3.9 KiB
RPMSpec
138 lines
3.9 KiB
RPMSpec
%define scordir %{_datadir}/scorched3d
|
|
Name: scorched3d
|
|
Version: 44
|
|
Release: 1mamba
|
|
Summary: A 3D version of the classic DOS game Scorched Earth
|
|
Group: Applications/Games
|
|
Vendor: openmamba
|
|
Distribution: openmamba
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
URL: http://www.scorched3d.co.uk/
|
|
Source0: http://downloads.sourceforge.net/project/scorched3d/scorched3d/Version%20%{version}/Scorched3D-%{version}-src.tar.gz
|
|
Source1: %{name}.desktop
|
|
Source2: openal-config
|
|
Source3: scorched3d-appdata.xml
|
|
Patch0: %{name}-41.3-gcc43.patch
|
|
Patch1: scorched3d-43.3d-libpng-1.5.patch
|
|
Patch2: scorched3d-43.3d-gcc-4.7.patch
|
|
Patch3: scorched3d-44-syslibs.patch
|
|
Patch4: scorched3d-44-help.patch
|
|
Patch5: scorched3d-44-freetype-2.10.4-buildfix.patch
|
|
Patch6: scorched3d-44-sys-lua.patch
|
|
Patch7: scorched3d-44-returntype.patch
|
|
Patch8: scorched3d-44-wx3.0.patch
|
|
Patch9: scorched3d-44-lua54.patch
|
|
Patch10: scorched3d-44-fix-hang-on-fast-machines.patch
|
|
License: GPL
|
|
## AUTOBUILDREQ-BEGIN
|
|
BuildRequires: glibc-devel
|
|
BuildRequires: libGLU-devel
|
|
BuildRequires: libSDL-devel
|
|
BuildRequires: libSDL_net-devel
|
|
BuildRequires: libexpat-devel
|
|
BuildRequires: libfftw-devel
|
|
BuildRequires: libfreealut-devel
|
|
BuildRequires: libfreetype-devel
|
|
BuildRequires: libgcc
|
|
BuildRequires: libglew-devel
|
|
BuildRequires: libglvnd-devel
|
|
BuildRequires: libjpeg-devel
|
|
BuildRequires: liblua-devel
|
|
BuildRequires: libogg-devel
|
|
BuildRequires: libopenal-devel
|
|
BuildRequires: libpng-devel
|
|
BuildRequires: libstdc++6-devel
|
|
BuildRequires: libvorbis-devel
|
|
BuildRequires: libwx_baseu30-devel
|
|
BuildRequires: libwx_gtk3u30-devel
|
|
BuildRequires: libz-devel
|
|
## AUTOBUILDREQ-END
|
|
|
|
%description
|
|
Scorched 3D is a game based loosely (or actually quite heavily now) on the classic DOS game Scorched Earth.
|
|
Scorched 3D adds amongst other new features a 3D island environment and LAN and internet play.
|
|
|
|
%debug_package
|
|
|
|
%prep
|
|
%setup -q -c
|
|
#-D -T
|
|
#:<< _EOF
|
|
cd scorched
|
|
%patch3 -p1
|
|
%patch4 -p1
|
|
%patch5 -p1
|
|
%patch6 -p1
|
|
%patch7 -p0
|
|
%patch8 -p1
|
|
%patch9 -p1
|
|
%patch10 -p1
|
|
#sh ./autogen.sh
|
|
touch compile NEWS AUTHORS ChangeLog
|
|
autoreconf -ivf
|
|
install -m 755 %{SOURCE2} .
|
|
mkdir apoc
|
|
cp -a data/globalmods/apoc/*.txt apoc
|
|
# ensure we use the system versions of these
|
|
rm src/common/common/snprintf.c
|
|
rm src/common/lua/l*.{cpp,h}
|
|
rm src/common/lua/print.cpp
|
|
|
|
%build
|
|
#:<< _EOF
|
|
cd scorched
|
|
export OPENAL_CONFIG=$PWD/openal-config
|
|
|
|
%configure \
|
|
--datadir=%{scordir} \
|
|
--program-prefix=%{?_program_prefix} \
|
|
CXXFLAGS="%{optflags} `pkg-config --cflags lua`"
|
|
|
|
%make
|
|
|
|
# install scorched3d icon
|
|
convert -geometry 48x48 data/images/tank2.ico %{name}-48.png
|
|
|
|
%install
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
%makeinstall -C scorched
|
|
|
|
install -D -m 644 scorched/%{name}-48-0.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|
install -D -m 644 %{S:1} \
|
|
%{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
install -D -m 644 %{S:2} \
|
|
%{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
%clean
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%files
|
|
%defattr(-,root,root)
|
|
%{_bindir}/scorched3d
|
|
%{_bindir}/scorched3dc
|
|
%{_bindir}/scorched3ds
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
|
%{_datadir}/pixmaps/scorched3d.png
|
|
%dir %{scordir}
|
|
%dir %{scordir}/data
|
|
%{scordir}/data/*
|
|
%doc %{scordir}/documentation/*.txt
|
|
%doc scorched/COPYING scorched/AUTHORS
|
|
|
|
%changelog
|
|
* Sun Jun 06 2021 Automatic Build System <autodist@mambasoft.it> 44-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Mon May 13 2013 Automatic Build System <autodist@mambasoft.it> 43.3d-1mamba
|
|
- update to 43.3d
|
|
|
|
* Mon Jul 13 2009 Automatic Build System <autodist@mambasoft.it> 42.1-1mamba
|
|
- automatic update by autodist
|
|
|
|
* Mon Apr 20 2009 Automatic Build System <autodist@mambasoft.it> 41.3-2mamba
|
|
- automatic rebuild by autodist
|
|
|
|
* Sun May 18 2008 gil <puntogil@libero.it> src-1mamba
|
|
- package created by autospec
|