update to 2020.3.8 [release 2020.3.8-1mamba;Sun Apr 11 2021]

This commit is contained in:
Silvan Calarco 2024-01-05 17:43:26 +01:00
parent 91fd987b09
commit 582f97075f

View File

@ -1,16 +1,16 @@
%define majver %(echo %version | cut -d. -f1-2)
Name: FlightGear
Version: 2016.1.1
Version: 2020.3.8
Release: 1mamba
Summary: Flight Simulator
Group: Graphical Desktop/Applications/Games
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.flightgear.org/
Source0: http://heanet.dl.sourceforge.net/project/flightgear/release-%{majver}/flightgear-%{version}.tar.bz2
URL: https://www.flightgear.org/
Source0: https://downloads.sourceforge.net/project/flightgear/release-%{majver}/flightgear-%{version}.tar.bz2
#Source0: http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Source/flightgear-%{version}.tar.bz2
Source1: http://netcologne.dl.sourceforge.net/project/flightgear/release-%{majver}/FlightGear-%{version}-data.tar.bz2
Source1: https://downloads.sourceforge.net/project/flightgear/release-%{majver}/FlightGear-%{version}-data.txz
#Source1: http://mirrors.ibiblio.org/pub/mirrors/flightgear/ftp/Shared/%{name}-data-%{majver}.0.tar.bz2
Source2: flight.png
Patch0: FlightGear-3.4.0-fgviewer-find-lX11.patch
@ -24,16 +24,17 @@ BuildRequires: libICE-devel
BuildRequires: libSM-devel
BuildRequires: libX11-devel
BuildRequires: libXext-devel
BuildRequires: libXft-devel
BuildRequires: libXi-devel
BuildRequires: libXinerama-devel
BuildRequires: libXmu-devel
BuildRequires: libbzip2-devel
BuildRequires: libcurl-devel
BuildRequires: libdbus-devel
BuildRequires: libfltk-devel
BuildRequires: libevent-devel
BuildRequires: libfreeglut-devel
BuildRequires: libfreetype-devel
BuildRequires: libgcc
BuildRequires: libglew-devel
BuildRequires: libgsm-devel
BuildRequires: liblzma-devel
BuildRequires: libopenal-devel
BuildRequires: libplib-devel
BuildRequires: libpng-devel
@ -48,7 +49,6 @@ BuildRequires: libfltk-devel >= 1.3.3-2mamba
BuildRequires: OpenSceneGraph >= 3.4.0
Requires: %{name}-data
Requires: alsa-oss
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
The FlightGear flight simulator project is an open-source, multi-platform, cooperative flight simulator development project.
@ -81,34 +81,8 @@ This package contains maps and scenary for FlightGear.
install -d 644 %{buildroot}%{_libdir}/%{name}
cp -r fgdata/* %{buildroot}%{_libdir}/%{name}
#install -D -m0755 ./build/src/Canvas/ShivaVG/src/libShivaVG.so %{buildroot}%{_libdir}/libShivaVG.so
install -D -m0755 ./build/utils/fgadmin/src/libFGAdminUI.so %{buildroot}%{_libdir}/libFGAdminUI.so
install -D -m0755 ./build/3rdparty/sqlite3/libfgsqlite3.so %{buildroot}%{_libdir}/libfgsqlite3.so
install -D -m0755 ./build/src/GUI/libfglauncher.so %{buildroot}%{_libdir}/libfglauncher.so
# fix wrong permissions
find %{buildroot}%{_libdir}/%{name} \
-type d -exec chmod 755 {} \;
#Icon
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -D -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/flight.png
# Create the system menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
GenericName=Flight Simulator
GenericName[it]=Simulatore di volo in 3D
Comment=Flight Simulator
Exec=fgfs
Icon=%{_datadir}/pixmaps/flight.png
Terminal=0
Type=Application
X-KDE-StartupNotify=false
Categories=Game;Simulation;
EOF
install -D -m0755 ./build/src/GUI/libfglauncherd.so %{buildroot}%{_libdir}/libfglauncherd.so
install -D -m0755 ./build/src/GUI/libfgqmluid.so %{buildroot}%{_libdir}/libfgqmluid.so
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
@ -116,17 +90,21 @@ EOF
%files
%defattr(-,root,root)
%{_bindir}/*
%{_libdir}/libFGAdminUI.so
%{_libdir}/libfgsqlite3.so
%{_libdir}/libfglauncher.so
%{_datadir}/applications/FlightGear.desktop
%{_datadir}/pixmaps/flight.png
#%dir %{_datadir}/flightgear
#%{_datadir}/flightgear/positions.txt
#%{_datadir}/flightgear/special_frequencies.txt
%{_mandir}/man1/*
%{_libdir}/libfglauncherd.so
%{_libdir}/libfgqmluid.so
%dir %{_libdir}/FlightGear
%{_libdir}/FlightGear/*
%{_datadir}/applications/org.flightgear.FlightGear.desktop
%{_datadir}/metainfo/org.flightgear.FlightGear.metainfo.xml
%{_datadir}/bash-completion/completions/fgfs
%{_datadir}/zsh/site-functions/_fgfs
%{_datadir}/icons/hicolor/*/apps/flightgear.png
%{_datadir}/icons/hicolor/scalable/apps/flightgear.svg
%{_mandir}/man1/*.1*
%{_mandir}/man5/*.5*
%lang(it) %{_mandir}/it/man1/*.1*
%lang(it) %{_mandir}/it/man5/*.5*
%doc AUTHORS COPYING
#ChangeLog NEWS README
%files data
%defattr(-,root,root)
@ -134,6 +112,9 @@ EOF
%{_libdir}/%{name}/*
%changelog
* Sun Apr 11 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 2020.3.8-1mamba
- update to 2020.3.8
* Fri Mar 04 2016 Ercole 'ercolinux' Carpanetto <ercole69@gmail.com> 2016.1.1-1mamba
- update to 2016.1.1