Sophie

Sophie

distrib > Mageia > 9 > armv7hl > media > core-release-src > by-pkgid > ecd812a1f6a31fae8a0704467f98fe28 > files > 3

pioneerspacesim-20230203-1.mga9.src.rpm

%define game    pioneer

Name:           pioneerspacesim
Version:        20230203
Release:        %mkrel 1
Summary:        Pioneer - A game of lonely space adventure
License:        GPLv3 and CC BY-SA 3.0
Group:          Games/Strategy
URL:            https://pioneerspacesim.net
Source0:        https://github.com/pioneerspacesim/pioneer/archive/%{version}/%{game}-%{version}.tar.gz
Patch0:         use_system_fmt.patch
Patch1:         0001-Handle-the-case-when-size_t-and-unsigned-int-are-the-same-type.patch

BuildRequires:  cmake
BuildRequires:  pkgconfig(assimp)
BuildRequires:  pkgconfig(fmt) >= 9
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glew)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(sigc++-2.0)
BuildRequires:  pkgconfig(vorbisfile)
Requires:       %{name}-data = %{version}-%{release}

%description
Pioneer is a space adventure game set in our galaxy at the turn of the
31st century.

The game is open-ended, and you are free to eke out whatever kind of
space-faring existence you can think of. Look for fame or fortune by
exploring the millions of star systems. Turn to a life of crime as a
pirate, smuggler or bounty hunter. Forge and break alliances with the
various factions fighting for power, freedom or self-determination.
The universe is whatever you make of it.

%package data
Summary:        Data files for the Pioneer game
BuildArch:      noarch

%description data
This package contains arch-independent data files for the Pioneer game.

%prep
%autosetup -p1 -n %{game}-%{version}

%build
%cmake \
    -DBUILD_SHARED_LIBS=OFF \
    -DCMAKE_INSTALL_BINDIR=%{_gamesbindir} \
    -DPIONEER_DATA_DIR=%{_gamesdatadir}/%{name} \
    -DUSE_PIONEER_THIRDPARTY=OFF \
    -DUSE_SYSTEM_LIBGLEW=ON \
    -DUSE_SYSTEM_LIBLUA=OFF
# Can't use system lua anymore, they mandate version 5.2.
%cmake_build -- all build-data

%install
%cmake_install

%files
%doc AUTHORS.txt Changelog.txt README.md
%{_datadir}/appdata/net.pioneerspacesim.Pioneer.appdata.xml
%{_datadir}/applications/net.pioneerspacesim.Pioneer.desktop
%{_gamesbindir}/%{game}
%{_gamesbindir}/modelcompiler
%{_gamesbindir}/savegamedump
%{_iconsdir}/hicolor/*/apps/net.pioneerspacesim.Pioneer.png

%files data
%{_gamesdatadir}/%{name}/


%changelog
* Sun Feb 05 2023 daviddavid <daviddavid> 20230203-1.mga9
+ Revision: 1938414
- new version: 20230203

* Tue Apr 05 2022 umeabot <umeabot> 20220203-2.mga9
+ Revision: 1844152
- Mageia 9 Mass Rebuild

* Thu Feb 17 2022 akien <akien> 20220203-1.mga9
+ Revision: 1779149
- Version 20220203

* Wed Jun 23 2021 akien <akien> 20210203-3.mga9
+ Revision: 1732047
- Fix libfmt.so.6 dep again (vendored lib, made static)
- Fix missing build-data files

* Sun Jun 06 2021 akien <akien> 20210203-2.mga9
+ Revision: 1729901
- Rebuild for libfmt.so.7 (no clue why?)

* Fri Jun 04 2021 akien <akien> 20210203-1.mga9
+ Revision: 1729650
- Version 20210203
- Use bundled lua5.2, we now only provide 5.1 and 5.4

* Wed Dec 02 2020 luigiwalser <luigiwalser> 20200203-3.mga8
+ Revision: 1651368
- rebuild for glew

* Fri Feb 21 2020 umeabot <umeabot> 20200203-2.mga8
+ Revision: 1547794
- Mageia 8 Mass Rebuild

* Mon Feb 10 2020 daviddavid <daviddavid> 20200203-1.mga8
+ Revision: 1488406
- new version: 20200203
+ wally <wally>
- build with new cmake macros

* Fri Apr 26 2019 akien <akien> 20190203-1.mga7
+ Revision: 1395484
- Version 20190203
- Switch to CMake buildsystem, recommended

* Wed Nov 14 2018 akien <akien> 20180203-1.mga7
+ Revision: 1329967
- Version 20180203

* Sun Sep 30 2018 umeabot <umeabot> 20170813-2.mga7
+ Revision: 1312588
- Mageia 7 Mass Rebuild

* Sat Aug 26 2017 akien <akien> 20170813-1.mga7
+ Revision: 1148091
- Require lua5.2 explicitly
- Version 20170813

* Wed Apr 26 2017 akien <akien> 20170415-1.mga6
+ Revision: 1097637
- Version 20170415

* Sun Mar 05 2017 akien <akien> 20170304-1.mga6
+ Revision: 1088744
- Version 20170304

* Sat Oct 29 2016 akien <akien> 20161028-1.mga6
+ Revision: 1063922
- Version 20161028

* Sat May 28 2016 akien <akien> 20160525-1.mga6
+ Revision: 1019259
- Version 20160525

* Sat Jan 09 2016 akien <akien> 20160106-1.mga6
+ Revision: 920737
- Version 20160106

* Tue Feb 03 2015 akien <akien> 20150201-1.mga5
+ Revision: 813242
- Version 20150201
- Move data to a noarch data package

* Wed Oct 15 2014 umeabot <umeabot> 20140908-3.mga5
+ Revision: 747591
- Second Mageia 5 Mass Rebuild

* Tue Sep 16 2014 umeabot <umeabot> 20140908-2.mga5
+ Revision: 687603
- Mageia 5 Mass Rebuild

* Mon Sep 08 2014 akien <akien> 20140908-1.mga5
+ Revision: 673806
- Version 20140908

* Sat Jun 07 2014 akien <akien> 20140528-1.mga5
+ Revision: 634302
- imported package pioneerspacesim