2024-01-06 07:03:46 +01:00
|
|
|
%define dirver %(echo %version | cut -d. -f1-3)
|
2024-06-27 09:23:38 +02:00
|
|
|
%define git_commit %(echo %version | cut -d. -f5)
|
2024-01-06 07:03:46 +01:00
|
|
|
Name: megaglest
|
2024-06-27 09:23:38 +02:00
|
|
|
Version: 3.13.0.20240416git.201457d
|
|
|
|
Release: 1mamba
|
2024-01-06 07:03:46 +01:00
|
|
|
Summary: 3D real time strategy game
|
|
|
|
Group: Applications/Games
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
2024-06-27 09:23:38 +02:00
|
|
|
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
|
|
|
|
URL: https://megaglest.org/
|
|
|
|
Source: https://github.com/MegaGlest/megaglest-source.git/develop@%{git_commit}/megaglest-source-%{version}.tar.bz2
|
2024-01-06 07:03:46 +01:00
|
|
|
Patch2: megaglest-3.9.0.4-link-libX11.patch
|
|
|
|
License: GPL
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libICE-devel
|
2024-06-27 09:23:38 +02:00
|
|
|
BuildRequires: libSDL2-devel
|
2024-01-06 07:03:46 +01:00
|
|
|
BuildRequires: libSM-devel
|
|
|
|
BuildRequires: libX11-devel
|
|
|
|
BuildRequires: libXext-devel
|
|
|
|
BuildRequires: libcurl-devel
|
|
|
|
BuildRequires: libfontconfig-devel
|
|
|
|
BuildRequires: libfreetype-devel
|
|
|
|
BuildRequires: libfribidi-devel
|
|
|
|
BuildRequires: libftgl-devel
|
|
|
|
BuildRequires: libgcc
|
|
|
|
BuildRequires: libglew-devel
|
|
|
|
BuildRequires: libglib-devel
|
2024-06-27 09:23:38 +02:00
|
|
|
BuildRequires: libglu-devel
|
|
|
|
BuildRequires: libglvnd-devel
|
2024-01-06 07:03:46 +01:00
|
|
|
BuildRequires: libircclient-devel
|
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: liblua-devel
|
2024-06-27 09:23:38 +02:00
|
|
|
BuildRequires: libminiupnpc-devel
|
2024-01-06 07:03:46 +01:00
|
|
|
BuildRequires: libopenal-devel
|
2024-06-27 09:23:38 +02:00
|
|
|
BuildRequires: libopenssl-devel
|
2024-01-06 07:03:46 +01:00
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libstdc++6-devel
|
|
|
|
BuildRequires: libvorbis-devel
|
2024-06-27 09:23:38 +02:00
|
|
|
BuildRequires: wxwidgets-devel
|
|
|
|
BuildRequires: wxwidgets-gtk3-devel
|
2024-01-06 07:03:46 +01:00
|
|
|
## AUTOBUILDREQ-END
|
2024-06-27 09:23:38 +02:00
|
|
|
BuildRequires: libminiupnpc-devel >= 0:2.2.8-1mamba
|
2024-01-06 07:03:46 +01:00
|
|
|
BuildRequires: libvlc-devel >= 3.0.6-1mamba
|
|
|
|
Requires: megaglest-data >= 3.13.0
|
|
|
|
Provides: glest
|
|
|
|
Obsoletes: glest
|
|
|
|
|
|
|
|
%description
|
|
|
|
Glest is a free 3D real time strategy game, that can be modified using XML and a set of tools.
|
|
|
|
Glest takes place in a context which could be compared to that of the pre-renaissance Europe, with the licence that magic forces exist in the environment and can be controlled.
|
|
|
|
|
|
|
|
%prep
|
2024-06-27 09:23:38 +02:00
|
|
|
%setup -q -n megaglest-source-%{version}
|
|
|
|
%patch 2 -p1
|
2024-01-06 07:03:46 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
%cmake -d build \
|
|
|
|
-DLUA_INCLUDE_DIR="`pkg-config --variable=includedir lua`" \
|
|
|
|
-DLUA_LIBRARY="%{_libdir}/liblua.so.5.3" \
|
|
|
|
-DEXTERNAL_LIBS="-lX11"
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
%makeinstall -C build
|
|
|
|
|
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_bindir}/megaglest
|
|
|
|
%{_bindir}/megaglest_editor
|
|
|
|
%{_bindir}/megaglest_g3dviewer
|
2024-06-27 09:23:38 +02:00
|
|
|
%{_datadir}/applications/megaglest.desktop
|
|
|
|
%{_datadir}/applications/megaglest_editor.desktop
|
|
|
|
%{_datadir}/applications/megaglest_g3dviewer.desktop
|
|
|
|
%{_metainfodir}/megaglest.appdata.xml
|
|
|
|
%{_metainfodir}/megaglest_editor.appdata.xml
|
2024-01-06 07:03:46 +01:00
|
|
|
%dir %{_datadir}/megaglest
|
|
|
|
%{_datadir}/megaglest/*
|
2024-06-27 09:23:38 +02:00
|
|
|
%{_datadir}/pixmaps/megaglest.png
|
|
|
|
%{_datadir}/pixmaps/megaglest.xpm
|
2024-01-06 07:03:46 +01:00
|
|
|
%{_mandir}/man6/megaglest.6*
|
|
|
|
%{_mandir}/man6/megaglest_editor.6*
|
|
|
|
%{_mandir}/man6/megaglest_g3dviewer.6*
|
|
|
|
|
|
|
|
%changelog
|
2024-06-27 09:23:38 +02:00
|
|
|
* Wed Jun 26 2024 Silvan Calarco <silvan.calarco@mambasoft.it> 3.13.0.20240416git.201457d-1mamba
|
|
|
|
- update to 3.13.0.20240416git.201457d
|
|
|
|
|
|
|
|
* Tue Jun 25 2024 Automatic Build System <autodist@mambasoft.it> 3.13.0-3mamba
|
|
|
|
- rebuilt by autoport with build requirements: libminiupnpc-devel>=0:2.2.8-1mamba
|
|
|
|
|
2024-01-06 07:03:46 +01:00
|
|
|
* Sun Feb 03 2019 Silvan Calarco <silvan.calarco@mambasoft.it> 3.13.0-2mamba
|
|
|
|
- rebuilt with libvlc 3.0.6
|
|
|
|
|
|
|
|
* Tue Aug 21 2018 Silvan Calarco <silvan.calarco@mambasoft.it> 3.13.0-1mamba
|
|
|
|
- update to 3.13.0
|
|
|
|
|
|
|
|
* Sun Mar 22 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 3.9.0.4-2mamba
|
|
|
|
- rebuilt by autoport with build requirements: libvlc-devel>=2.2.0-1mamba
|
|
|
|
|
|
|
|
* Sun Mar 15 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 3.9.0.4-1mamba
|
|
|
|
- update to 3.9.0.4
|
|
|
|
|
|
|
|
* Sun Mar 15 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.1-4mamba
|
|
|
|
- rebuilt by autoport with build requirements: miniupnpc-devel>=1.9.20150206-1mamba
|
|
|
|
|
|
|
|
* Mon Jul 07 2014 Automatic Build System <autodist@mambasoft.it> 3.7.1-3mamba
|
|
|
|
- rebuilt by autoport with build requirements: miniupnpc-devel>=1.9.20140610-1mamba
|
|
|
|
|
|
|
|
* Sat Oct 26 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.1-2mamba
|
|
|
|
- rebuilt with vlc 2.1.0
|
|
|
|
|
|
|
|
* Mon Jul 29 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 3.7.1-1mamba
|
|
|
|
- update to 3.7.1
|
|
|
|
|
|
|
|
* Mon Jul 06 2009 Automatic Build System <autodist@mambasoft.it> 3.2.2-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
|
|
|
* Thu Apr 16 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.1-2mamba
|
|
|
|
- automatic rebuild by autodist
|
|
|
|
|
|
|
|
* Tue Mar 03 2009 Silvan Calarco <silvan.calarco@mambasoft.it> 3.2.1-1mamba
|
|
|
|
- automatic update to 3.2.1 by autodist
|
|
|
|
|
|
|
|
* Sat Sep 27 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.2-2mamba
|
|
|
|
- added requirement for glest-data
|
|
|
|
- added patch to fix build with gcc 4.3
|
|
|
|
|
|
|
|
* Tue Jul 29 2008 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 3.1.2-1mamba
|
|
|
|
- correct some bug in the spec file
|
|
|
|
|
|
|
|
* Tue Jul 29 2008 gil <puntogil@libero.it> 3.1.2-1mamba
|
|
|
|
- first build
|
|
|
|
- added desktop files for: glest, glest_editor
|