Compare commits

..

No commits in common. "factory" and "factory" have entirely different histories.

10 changed files with 234 additions and 105 deletions

3
freeciv-3.0.10.tar.xz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:c185c8ea0d6a2e974a5ad12fb837ca3ceb9aed3e7e884355f01035f5e779d23c
size 43433812

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:14999bb903c4507cc287d5a8dd1b89eee623bb41b4e01e0836567fb5f13296e4
size 46674900

72
freeciv-gtk3.desktop Normal file
View File

@ -0,0 +1,72 @@
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Freeciv
Name[be]=Свабодная Цывілізацыя
Name[bg]=Цивилизация
Name[eo]=Libera Civilizludo
Name[fa]=تمدنآزاد
Name[nso]=civ yeo e lokollogilego
Name[sv]=Friciv
Name[ven]=civ ya Mahala
Name[vi]=Freeciv
Name[zh_CN]=
Name[zh_TW]=Freeciv 仿
Type=Application
GenericName=Strategy Game
GenericName[af]=Strategie Speletjie
GenericName[be]=Стратэгічная гульня
GenericName[bg]=Стратегическа Игра
GenericName[bs]=Strateška igra
GenericName[ca]=Joc d'estratègia
GenericName[cs]=Strategická hra
GenericName[da]=Strategispil
GenericName[de]=Strategiespiel
GenericName[el]=Παιχνίδι Στρατηγικής
GenericName[eo]=Strategiludo
GenericName[es]=Juego de estrategia
GenericName[et]=Strateegiamäng
GenericName[fa]=بازی استراتژیک
GenericName[fi]=Strategiapeli
GenericName[fo]=Strategispæl
GenericName[fr]=Jeu de stratégie
GenericName[he]=משחק אסטרטגיה
GenericName[hr]=Igra strategije
GenericName[hu]=stratégiai
GenericName[is]=Herkænskuleikur
GenericName[it]=Gioco di strategia
GenericName[ja]=
GenericName[lo]=
GenericName[lt]=Strateginis žaidimas
GenericName[lv]=Stratēģiskā Game
GenericName[mk]=Стратегиска игра
GenericName[mn]=Стратегийн тоглоом
GenericName[mt]=Logħba ta' strateġija
GenericName[nb]=Strategispill
GenericName[nl]=strategisch spel
GenericName[nn]=Strategispel
GenericName[nso]=Papadi ya Mokgwa wa Tharollo
GenericName[pl]=Gra strategiczna
GenericName[pt]=Jogo de Estratégia
GenericName[pt_BR]=Estratégia
GenericName[ro]=Joc de strategie
GenericName[ru]=Стратегическая игра
GenericName[se]=Strategiijaspeallu
GenericName[sk]=Strategická hra
GenericName[sl]=Strateška igra
GenericName[ss]=Umdlalo wekusebentisa indlela yekwenta
GenericName[sv]=Strategispel
GenericName[th]=
GenericName[tr]=Strateji Oyunu
GenericName[uk]=Гра на стратегію
GenericName[ven]=Mutambo wa maitele awo
GenericName[xh]=Indlela ethile Yomdlalo
GenericName[zh_CN]=
GenericName[zh_TW]=
GenericName[zu]=Umdlalo weplani
Exec=freeciv-gtk3
Icon=freeciv
Path=
Terminal=false
Categories=Game;StrategyGame

16
freeciv-manual Normal file
View File

@ -0,0 +1,16 @@
#!/bin/sh
tmplang="$LANG"
test "$LC_MESSAGES" != "" && tmplang="$LC_MESSAGES"
test "$LC_ALL" != "" && tmplang="$LC_ALL"
test "$LANGUAGE" != "" && tmplang="$LANGUAGE"
lang=`echo $tmplang|cut -d "_" -f 1`
if [ "$lang" == "de" ]; then
DOCFILE="http://de.freeciv.wikia.com/wiki/Spielanleitung"
else
DOCFILE="http://freeciv.wikia.com/wiki/Game_Manual"
fi
call-browser $DOCFILE

6
freeciv-manual.desktop Normal file
View File

@ -0,0 +1,6 @@
[Desktop Entry]
Type=Application
Name=FreeCiv Manual
Name[de]=FreeCiv Handbuch
Exec=freeciv-manual
Icon=freeciv-manual

3
freeciv-manual.png Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:84220d3f4e91c8c0c03949f903ca7ccddc54396f4c155467a5355f794e979586
size 1794

72
freeciv-qt.desktop Normal file
View File

@ -0,0 +1,72 @@
[Desktop Entry]
Encoding=UTF-8
Version=1.0
Name=Freeciv
Name[be]=Свабодная Цывілізацыя
Name[bg]=Цивилизация
Name[eo]=Libera Civilizludo
Name[fa]=تمدنآزاد
Name[nso]=civ yeo e lokollogilego
Name[sv]=Friciv
Name[ven]=civ ya Mahala
Name[vi]=Freeciv
Name[zh_CN]=
Name[zh_TW]=Freeciv 仿
Type=Application
GenericName=Strategy Game
GenericName[af]=Strategie Speletjie
GenericName[be]=Стратэгічная гульня
GenericName[bg]=Стратегическа Игра
GenericName[bs]=Strateška igra
GenericName[ca]=Joc d'estratègia
GenericName[cs]=Strategická hra
GenericName[da]=Strategispil
GenericName[de]=Strategiespiel
GenericName[el]=Παιχνίδι Στρατηγικής
GenericName[eo]=Strategiludo
GenericName[es]=Juego de estrategia
GenericName[et]=Strateegiamäng
GenericName[fa]=بازی استراتژیک
GenericName[fi]=Strategiapeli
GenericName[fo]=Strategispæl
GenericName[fr]=Jeu de stratégie
GenericName[he]=משחק אסטרטגיה
GenericName[hr]=Igra strategije
GenericName[hu]=stratégiai
GenericName[is]=Herkænskuleikur
GenericName[it]=Gioco di strategia
GenericName[ja]=
GenericName[lo]=
GenericName[lt]=Strateginis žaidimas
GenericName[lv]=Stratēģiskā Game
GenericName[mk]=Стратегиска игра
GenericName[mn]=Стратегийн тоглоом
GenericName[mt]=Logħba ta' strateġija
GenericName[nb]=Strategispill
GenericName[nl]=strategisch spel
GenericName[nn]=Strategispel
GenericName[nso]=Papadi ya Mokgwa wa Tharollo
GenericName[pl]=Gra strategiczna
GenericName[pt]=Jogo de Estratégia
GenericName[pt_BR]=Estratégia
GenericName[ro]=Joc de strategie
GenericName[ru]=Стратегическая игра
GenericName[se]=Strategiijaspeallu
GenericName[sk]=Strategická hra
GenericName[sl]=Strateška igra
GenericName[ss]=Umdlalo wekusebentisa indlela yekwenta
GenericName[sv]=Strategispel
GenericName[th]=
GenericName[tr]=Strateji Oyunu
GenericName[uk]=Гра на стратегію
GenericName[ven]=Mutambo wa maitele awo
GenericName[xh]=Indlela ethile Yomdlalo
GenericName[zh_CN]=
GenericName[zh_TW]=
GenericName[zu]=Umdlalo weplani
Exec=freeciv-qt
Icon=freeciv
Path=
Terminal=false
Categories=Game;StrategyGame

View File

@ -1,27 +1,3 @@
-------------------------------------------------------------------
Sun Feb 9 19:01:48 UTC 2025 - Andreas Stieger <andreas.stieger@gmx.de>
- Update to 3.1.4:
* not compatible with 3.0.x servers and vice versa.
* Player authentication is supported by default
* Max number of regular players (not counting barbarians) is now
500
* Rally Points can be set for the cities
* Previously silent generic actions now have event message types,
so can show up chat/messages/popup HRM#848791
* There has been many changes to what actions each keyboard key
does, as required by changes in the actions themselves. See
Controls in Help for updated info. Especially; Paradrop now
has a key distinct from Pollution cleaning
* Adding local nation definitions now works properly
* https://freeciv.fandom.com/wiki/NEWS-3.1.0
- Packaging changes:
* Introduce the Gtk4 front-end
* Switch the Gtk3 front-end to Gtk3.22 flavor
* Switch the Qt front-end to Qt6 on Tumbleweed
* Build with system LUA
* Use upstream .desktop files and simplify spec file
-------------------------------------------------------------------
Sat Feb 10 15:06:23 UTC 2024 - Carsten Ziepke <kieltux@gmail.com>

3
freeciv.png Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ef31ce15e8665df4cd86cc7195407c909454dcf0d129729aa647e8f6ca7b923c
size 1852

View File

@ -2,7 +2,6 @@
# spec file for package freeciv
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2025 Andreas Stieger <Andreas.Stieger@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -18,40 +17,39 @@
Name: freeciv
Version: 3.1.4
Version: 3.0.10
Release: 0
Summary: Free Civilization Clone
License: GPL-2.0-or-later
Group: Amusements/Games/Strategy/Turn Based
URL: https://www.freeciv.org
Source0: https://files.freeciv.org/stable/%{name}-%{version}.tar.xz
BuildRequires: c++_compiler
Source1: freeciv-gtk3.desktop
Source2: freeciv-qt.desktop
Source3: freeciv.png
Source4: freeciv-manual
Source5: freeciv-manual.desktop
Source6: freeciv-manual.png
BuildRequires: audiofile-devel
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: curl-devel >= 7.9.7
BuildRequires: fdupes
BuildRequires: gtk3-devel >= 3.22.0
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: pkgconfig(SDL2_mixer)
BuildRequires: pkgconfig(audiofile)
BuildRequires: pkgconfig(bzip2)
BuildRequires: pkgconfig(gtk4) >= 4.0.0
BuildRequires: pkgconfig(icu-uc)
BuildRequires: pkgconfig(libcurl) >= 7.9.7
BuildRequires: pkgconfig(liblzma)
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(lua) >= 5.4
BuildRequires: pkgconfig(sdl2) >= 2.0.0
BuildRequires: pkgconfig(sqlite3) >= 3.0.0
BuildRequires: pkgconfig(zlib)
Requires: freeciv_client-%{version}
%if 0%{?suse_version} > 1600
BuildRequires: pkgconfig(Qt6Core)
BuildRequires: pkgconfig(Qt6Gui)
BuildRequires: pkgconfig(Qt6Widgets)
%else
BuildRequires: gcc-c++
BuildRequires: gtk3-devel
BuildRequires: libbz2-devel
BuildRequires: libqt5-qtbase-common-devel
BuildRequires: libqt5-qtbase-devel
%endif
%lang_package
BuildRequires: libtool
BuildRequires: pkgconfig
BuildRequires: readline-devel
BuildRequires: update-desktop-files
BuildRequires: xz-devel
BuildRequires: zlib-devel
BuildRequires: pkgconfig(SDL2_mixer)
BuildRequires: pkgconfig(sdl2)
Requires: freeciv_client-%{version}
Recommends: freeciv-lang
%description
A clone of the well known game Civilization by Microprose.
@ -72,6 +70,15 @@ Provides: freeciv_client-%{version}
%description qt
Freeciv executable using Qt library
%package lang
Summary: Translation files for freeciv
Group: Amusements/Games/Strategy/Turn Based
Requires: freeciv = %{version}
BuildArch: noarch
%description lang
Translation files for freeciv main package and clients.
%package gtk3
Summary: Gtk3 client for freeciv
Group: Amusements/Games/Strategy/Turn Based
@ -81,44 +88,28 @@ Provides: freeciv_client-%{version}
%description gtk3
Freeciv executable using Gtk3 library
%package gtk4
Summary: Gtk4 client for freeciv
Group: Amusements/Games/Strategy/Turn Based
Requires: freeciv = %{version}
Provides: freeciv_client-%{version}
%description gtk4
Freeciv executable using Gtk4 library
%prep
%autosetup -p1
%setup -q
%build
export MOCCMD="moc-qt5"
autoreconf -fi
%configure \
--enable-client=gtk3.22,gtk4,qt \
--enable-fcmp=gtk3,gtk4,qt \
%if 0%{?suse_version} > 1600
--with-qtver=qt6 \
%else
--with-qtver=qt5 \
%endif
--enable-fcdb=sqlite3 \
--enable-ruleedit \
--with-readline \
--with-libbz2 \
--with-liblzma \
--with-libzstd \
--enable-sys-lua \
--disable-static \
--docdir=%{_docdir}/freeciv \
%{nil}
--enable-client=gtk3,qt \
--with-readline \
--disable-static \
--docdir=%{_docdir}/freeciv
%make_build
%install
%make_install
install -m 755 $RPM_SOURCE_DIR/freeciv-manual %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/pixmaps/
install -m 644 $RPM_SOURCE_DIR/*.png %{buildroot}%{_datadir}/pixmaps
%suse_update_desktop_file -i org.freeciv.gtk3 Game StrategyGame
%suse_update_desktop_file -i org.freeciv.qt Game StrategyGame
%suse_update_desktop_file -i freeciv-manual Game StrategyGame
rm %{buildroot}%{_docdir}/freeciv/COPYING
find %{buildroot} -type f -name "*.a" -print -delete
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}-core
%find_lang %{name}-nations
@ -130,6 +121,8 @@ find %{buildroot} -type f -name "*.la" -delete -print
%doc README
%license COPYING
%exclude %{_docdir}/freeciv/INSTALL*
%exclude %{_libdir}/*.a
%exclude %{_libdir}/*.la
%{_mandir}/man6/freeciv.6%{?ext_man}
%{_mandir}/man6/freeciv-*.6%{?ext_man}
%dir %{_sysconfdir}/%{name}
@ -138,6 +131,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_bindir}/freeciv-ruleup
%{_bindir}/freeciv-server
%{_bindir}/freeciv-manual
%{_datadir}/applications/freeciv-manual.desktop
%{_datadir}/applications/org.freeciv.server.desktop
%{_datadir}/applications/org.freeciv.ruledit.desktop
%{_datadir}/freeciv/
@ -146,39 +140,26 @@ find %{buildroot} -type f -name "*.la" -delete -print
%{_datadir}/icons/hicolor/*x*/apps/freeciv-modpack.png
%{_datadir}/icons/hicolor/*x*/apps/freeciv-ruledit.png
%{_datadir}/pixmaps/freeciv-client.png
%{_datadir}/pixmaps/freeciv-manual.png
%{_datadir}/pixmaps/freeciv-modpack.png
%{_datadir}/pixmaps/freeciv-ruledit.png
%{_datadir}/metainfo/org.freeciv.server.metainfo.xml
%{_datadir}/metainfo/org.freeciv.ruledit.metainfo.xml
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/metainfo/org.freeciv.server.appdata.xml
%{_datadir}/metainfo/org.freeciv.ruledit.appdata.xml
%files lang -f %{name}-core.lang -f %{name}-nations.lang -f %{name}-ruledit.lang
%license COPYING
%files gtk3
%license COPYING
%{_bindir}/freeciv-gtk3.22
%{_bindir}/freeciv-gtk3
%{_bindir}/freeciv-mp-gtk3
%{_datadir}/applications/org.freeciv.gtk322.desktop
%{_datadir}/applications/org.freeciv.gtk3.mp.desktop
%{_datadir}/metainfo/org.freeciv.gtk322.metainfo.xml
%{_datadir}/metainfo/org.freeciv.gtk3.mp.metainfo.xml
%files gtk4
%license COPYING
%{_bindir}/freeciv-gtk4
%{_bindir}/freeciv-mp-gtk4
%{_datadir}/applications/org.freeciv.gtk4.desktop
%{_datadir}/applications/org.freeciv.gtk4.mp.desktop
%{_datadir}/metainfo/org.freeciv.gtk4.metainfo.xml
%{_datadir}/metainfo/org.freeciv.gtk4.mp.metainfo.xml
%{_datadir}/applications/org.freeciv.gtk3.desktop
%{_datadir}/metainfo/org.freeciv.gtk3.appdata.xml
%{_datadir}/applications/org.freeciv.mp.gtk3.desktop
%{_datadir}/metainfo/org.freeciv.mp.gtk3.appdata.xml
%files qt
%license COPYING
%{_bindir}/freeciv-qt
%{_bindir}/freeciv-mp-qt
%{_datadir}/applications/org.freeciv.qt.desktop
%{_datadir}/applications/org.freeciv.qt.mp.desktop
%{_datadir}/metainfo/org.freeciv.qt.metainfo.xml
%{_datadir}/metainfo/org.freeciv.qt.mp.metainfo.xml
%{_datadir}/metainfo/org.freeciv.qt.appdata.xml
%changelog