2024-01-06 03:36:26 +01:00
|
|
|
%define majver %(echo %version | cut -d. -f 1-2)
|
|
|
|
%define minver %(echo %version | cut -d. -f 3)
|
|
|
|
Name: lgeneral
|
2024-01-06 03:36:26 +01:00
|
|
|
Epoch: 1
|
2024-01-06 03:36:27 +01:00
|
|
|
Version: 1.2.6
|
|
|
|
Release: 1mamba
|
2024-01-06 03:36:26 +01:00
|
|
|
Summary: A turn-based strategy engine
|
2024-01-06 03:36:26 +01:00
|
|
|
Group: Graphical Desktop/Applications/Educational
|
|
|
|
Vendor: openmamba
|
|
|
|
Distribution: openmamba
|
|
|
|
Packager: Tiziana Ferro <tiziana.ferro@email.it>
|
|
|
|
URL: http://lgames.sourceforge.net/index.php?project=LGeneral
|
2024-01-06 03:36:26 +01:00
|
|
|
Source0: http://downloads.sourceforge.net/sourceforge/lgeneral/lgeneral-%{version}.tar.gz
|
2024-01-06 03:36:26 +01:00
|
|
|
Source1: lgeneral.png
|
|
|
|
License: GPL
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
Requires: lgeneral-data
|
|
|
|
## AUTOBUILDREQ-BEGIN
|
|
|
|
BuildRequires: glibc-devel
|
|
|
|
BuildRequires: libSDL-devel
|
|
|
|
BuildRequires: libSDL_mixer-devel
|
|
|
|
## AUTOBUILDREQ-END
|
2024-01-06 03:36:26 +01:00
|
|
|
BuildRequires: lgeneral-data
|
2024-01-06 03:36:26 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
LGeneral is a turn-based strategy engine heavily inspired by Panzer General. You play single scenarios or whole campaigns turn by turn against a human player or the AI. Entrenchment, rugged defense, defensive fire, surprise contacts, surrender, unit supply, weather influence, reinforcements and other implementations contribute to the tactical and strategic depth of the game.
|
|
|
|
The engine itself has no playable data but there is a converter for Panzer General (DOS version). If you do not own this game, download the package pg-data.tar.gz, which I provide in the sense of abandon ware.
|
|
|
|
|
|
|
|
%prep
|
2024-01-06 03:36:26 +01:00
|
|
|
%setup -q
|
2024-01-06 03:36:26 +01:00
|
|
|
|
|
|
|
%build
|
2024-01-06 03:36:26 +01:00
|
|
|
%configure \
|
2024-01-06 03:36:26 +01:00
|
|
|
--prefix=%{_prefix} \
|
|
|
|
--mandir=%{_mandir}
|
|
|
|
|
|
|
|
%make
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
|
|
|
%makeinstall
|
|
|
|
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/pixmaps
|
|
|
|
install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
|
|
|
|
|
|
|
|
# Create the system menu entry
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
|
|
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
|
|
|
|
[Desktop Entry]
|
|
|
|
Encoding=UTF-8
|
|
|
|
Name=%{name}
|
|
|
|
GenericName=turn-based strategy engine
|
|
|
|
GenericName[it]=simulatore di battaglie
|
|
|
|
Comment=LGeneral is a turn-based strategy engine
|
|
|
|
Comment[it]=LGeneral è un gioco di simulazione di battaglie e campagne militari della Seconda Guerra Mondiale
|
|
|
|
Exec=lgeneral
|
|
|
|
Icon=lgeneral.png
|
|
|
|
Terminal=false
|
|
|
|
Type=Application
|
|
|
|
Categories=Game;StrategyGame;
|
|
|
|
X-KDE-StartupNotify=false
|
|
|
|
EOF
|
|
|
|
|
2024-01-06 03:36:26 +01:00
|
|
|
%find_lang %{name}
|
|
|
|
%find_lang pg
|
|
|
|
cat pg.lang >> %{name}.lang
|
|
|
|
|
2024-01-06 03:36:26 +01:00
|
|
|
%clean
|
|
|
|
[ "%{buildroot}" != / ] && rm -rf %{buildroot}
|
|
|
|
|
2024-01-06 03:36:26 +01:00
|
|
|
%files -f %{name}.lang
|
2024-01-06 03:36:26 +01:00
|
|
|
%defattr(-,root,root)
|
2024-01-06 03:36:26 +01:00
|
|
|
%{_bindir}/lgc-pg
|
|
|
|
%{_bindir}/lged
|
|
|
|
%{_bindir}/lgeneral
|
|
|
|
%{_bindir}/ltrextract
|
|
|
|
%{_bindir}/shptool
|
|
|
|
%dir %{_datadir}/lgeneral
|
|
|
|
%dir %{_datadir}/lgeneral/campaigns
|
|
|
|
%{_datadir}/lgeneral/campaigns/PG
|
|
|
|
%dir %{_datadir}/lgeneral/convdata
|
|
|
|
%{_datadir}/lgeneral/convdata/*
|
|
|
|
%dir %{_datadir}/lgeneral/gfx
|
|
|
|
%{_datadir}/lgeneral/gfx/*
|
|
|
|
%dir %{_datadir}/lgeneral/themes
|
|
|
|
%dir %{_datadir}/lgeneral/themes/default
|
|
|
|
%{_datadir}/lgeneral/themes/default/*
|
2024-01-06 03:36:26 +01:00
|
|
|
%{_datadir}/applications/lgeneral.desktop
|
2024-01-06 03:36:27 +01:00
|
|
|
%{_datadir}/icons/hicolor/*/apps/lgeneral.png
|
2024-01-06 03:36:26 +01:00
|
|
|
%{_datadir}/pixmaps/lgeneral.png
|
2024-01-06 03:36:26 +01:00
|
|
|
%{_mandir}/man1/lgc-pg.1*
|
|
|
|
%{_mandir}/man6/lgeneral.6*
|
|
|
|
%doc AUTHORS COPYING
|
|
|
|
#ChangeLog README.lgc-pg README.lgeneral README.redit TODO
|
2024-01-06 03:36:26 +01:00
|
|
|
|
|
|
|
%changelog
|
2024-01-06 03:36:27 +01:00
|
|
|
* Sat Mar 21 2015 Automatic Build System <autodist@mambasoft.it> 1.2.6-1mamba
|
|
|
|
- automatic update by autodist
|
|
|
|
|
2024-01-06 03:36:26 +01:00
|
|
|
* Fri Jan 02 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.4-2mamba
|
|
|
|
- bump epoch
|
|
|
|
|
|
|
|
* Thu Nov 06 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2.4-1mamba
|
|
|
|
- update to 1.2.4
|
|
|
|
|
2024-01-06 03:36:26 +01:00
|
|
|
* Sun May 30 2010 Automatic Build System <autodist@mambasoft.it> 1.2beta.14-1mamba
|
|
|
|
- update to 1.2beta.14
|
|
|
|
|
|
|
|
* Fri Dec 12 2008 Silvan Calarco <silvan.calarco@mambasoft.it> 1.2beta.13-1mamba
|
|
|
|
- update to 1.2beta.13
|
|
|
|
|
|
|
|
* Tue Jun 24 2008 Tiziana Ferro <tiziana.ferro@email.it> 1.2-3mamba
|
|
|
|
- update to beta13
|
|
|
|
- update system menu entry
|
|
|
|
- update Vendor, Distribution, mantainer
|
|
|
|
|
|
|
|
* Mon Aug 29 2005 Massimo Pintore <massimo.pintore@qilinux.it> 1.2-2qilnx
|
|
|
|
- Added lgeneral-data as requirement
|
|
|
|
|
|
|
|
* Wed Jul 13 2005 Alessandro Ramazzina <alessandro.ramazzina@qilinux.it> 1.2-1qilnx
|
|
|
|
- package created by autospec
|