2021-07-12 12:41:37 -05:00
|
|
|
%define gittag0 v0.9.14
|
2016-10-31 22:25:49 -07:00
|
|
|
|
|
|
|
Name: endless-sky
|
2021-07-12 12:41:37 -05:00
|
|
|
Version: 0.9.14
|
2021-07-21 22:00:24 +00:00
|
|
|
Release: 2%{?dist}
|
2016-10-31 22:25:49 -07:00
|
|
|
Summary: Space exploration, trading, and combat game
|
|
|
|
|
|
|
|
License: GPLv3
|
|
|
|
URL: https://%{name}.github.io
|
|
|
|
Source0: https://github.com/%{name}/%{name}/archive/%{gittag0}.tar.gz#/%{name}-%{version}.tar.gz
|
2019-08-22 07:31:10 -05:00
|
|
|
Source1: endless-sky-wrapper
|
2016-10-31 22:25:49 -07:00
|
|
|
# Replace /usr/games with /usr/bin and /usr/share/games with /usr/share per
|
|
|
|
# https://fedoraproject.org/wiki/SIGs/Games/Packaging.
|
|
|
|
# Patch not submitted upstream. Upstream conforms to Debian packaging
|
|
|
|
# standards where the use of /usr/games is acceptable.
|
2021-04-19 09:52:11 -05:00
|
|
|
Patch0: endless-sky-0.9.13-remove-games-path.patch
|
2017-01-01 22:30:56 -08:00
|
|
|
# Unset CCFLAGS override inside SConstruct.
|
2021-07-12 12:41:37 -05:00
|
|
|
Patch1: endless-sky-0.9.14-remove-additional-ccflags.patch
|
2016-10-31 22:25:49 -07:00
|
|
|
|
|
|
|
Requires: %{name}-data = %{version}-%{release}
|
|
|
|
BuildRequires: scons
|
|
|
|
BuildRequires: gcc-c++
|
|
|
|
BuildRequires: SDL2-devel
|
|
|
|
BuildRequires: openal-soft-devel
|
|
|
|
BuildRequires: glew-devel
|
|
|
|
BuildRequires: libpng-devel
|
|
|
|
BuildRequires: libjpeg-turbo-devel
|
|
|
|
BuildRequires: libappstream-glib
|
|
|
|
BuildRequires: desktop-file-utils
|
2017-02-25 21:36:07 -08:00
|
|
|
BuildRequires: libmad-devel
|
2016-10-31 22:25:49 -07:00
|
|
|
|
|
|
|
%description
|
|
|
|
Explore other star systems. Earn money by trading, carrying passengers, or
|
|
|
|
completing missions. Use your earnings to buy a better ship or to upgrade the
|
|
|
|
weapons and engines on your current one. Blow up pirates. Take sides in a civil
|
|
|
|
war. Or leave human space behind and hope to find some friendly aliens whose
|
|
|
|
culture is more civilized than your own...
|
|
|
|
|
|
|
|
|
|
|
|
%package data
|
|
|
|
Summary: Game data for %{name}
|
|
|
|
# Sound and images appear to be a mix of Public Domain and CC-BY-SA licensing
|
|
|
|
# See copyright for details.
|
|
|
|
License: Public Domain and CC-BY-SA
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
|
|
%description data
|
|
|
|
Images, sound, and game data for %{name}.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%autosetup -p0
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2017-09-13 21:15:04 -07:00
|
|
|
%ifarch ppc64le
|
|
|
|
sed -i 's/std=c++11/std=gnu++11/' SConstruct
|
|
|
|
%endif
|
2019-09-30 10:03:48 -05:00
|
|
|
CXXFLAGS="%{optflags}" \
|
2017-01-01 22:30:56 -08:00
|
|
|
LDFLAGS="%{?__global_ldflags}" \
|
2018-09-06 20:20:09 -04:00
|
|
|
/usr/bin/scons \
|
2016-12-31 21:54:32 -08:00
|
|
|
%{?_smp_mflags} \
|
2017-02-25 21:36:07 -08:00
|
|
|
PREFIX=%{_prefix}
|
2016-10-31 22:25:49 -07:00
|
|
|
|
|
|
|
%check
|
|
|
|
appstream-util validate-relax --nonet %{name}.appdata.xml
|
|
|
|
desktop-file-validate %{name}.desktop
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
2019-09-30 10:03:48 -05:00
|
|
|
CXXFLAGS="%{optflags}" \
|
2017-01-01 22:30:56 -08:00
|
|
|
LDFLAGS="%{?__global_ldflags}" \
|
2018-09-06 20:20:09 -04:00
|
|
|
/usr/bin/scons \
|
2016-12-31 21:54:32 -08:00
|
|
|
%{?_smp_mflags} \
|
|
|
|
PREFIX=%{_prefix} \
|
|
|
|
DESTDIR=%{buildroot} \
|
|
|
|
install
|
2016-10-31 22:25:49 -07:00
|
|
|
install -m644 -D endless-sky.appdata.xml %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
|
2019-08-22 07:31:10 -05:00
|
|
|
mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}.bin
|
|
|
|
install -m755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}
|
|
|
|
sed -i 's|/app|%{_prefix}|g' %{buildroot}%{_bindir}/%{name}
|
2016-10-31 22:25:49 -07:00
|
|
|
|
|
|
|
%files
|
|
|
|
%doc README.md
|
|
|
|
%license license.txt
|
2019-08-21 17:09:48 -05:00
|
|
|
%{_bindir}/%{name}*
|
2016-10-31 22:25:49 -07:00
|
|
|
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
|
|
|
|
%{_datadir}/icons/hicolor/22x22/apps/%{name}.png
|
|
|
|
%{_datadir}/icons/hicolor/24x24/apps/%{name}.png
|
|
|
|
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
|
|
|
|
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
|
|
|
|
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
|
2019-09-30 10:03:48 -05:00
|
|
|
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
|
|
|
|
%{_datadir}/icons/hicolor/512x512/apps/%{name}.png
|
2016-10-31 22:25:49 -07:00
|
|
|
%{_datadir}/applications/%{name}.desktop
|
|
|
|
%{_datadir}/appdata/%{name}.appdata.xml
|
|
|
|
%{_mandir}/man6/%{name}.6.gz
|
|
|
|
|
|
|
|
|
|
|
|
%files data
|
|
|
|
%license copyright
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2021-07-21 22:00:24 +00:00
|
|
|
* Wed Jul 21 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.14-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-07-12 12:41:37 -05:00
|
|
|
* Mon Jul 12 2021 Gwyn Ciesla <gwync@protonmail.com> - 0.9.14-1
|
|
|
|
- 0.9.14
|
|
|
|
|
2021-04-19 09:52:11 -05:00
|
|
|
* Mon Apr 19 2021 Gwyn Ciesla <gwync@protonmail.com> - 0.9.13-1
|
|
|
|
- 0.9.13
|
|
|
|
|
2021-01-26 04:37:01 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.12-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2020-10-14 07:33:56 -06:00
|
|
|
* Wed Oct 14 2020 Jeff Law <law@redhat.com> - 0.9.12-3
|
|
|
|
- Add missing #includes for gcc-11
|
|
|
|
|
2020-07-27 16:34:15 +00:00
|
|
|
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.12-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-05-02 14:25:20 -05:00
|
|
|
* Sat May 02 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.9.12-1
|
|
|
|
- 0.9.12
|
|
|
|
|
2020-02-25 09:31:37 -06:00
|
|
|
* Tue Feb 25 2020 Gwyn Ciesla <gwync@protonmail.com> - 0.9.11-1
|
|
|
|
- 0.9.11
|
|
|
|
|
2020-01-28 17:20:33 +00:00
|
|
|
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.10-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-12-14 10:28:39 -07:00
|
|
|
* Sat Dec 14 2019 Jeff Law <law@redhat.com> - 0.9.10-2
|
|
|
|
- Fix missing #include for gcc-10
|
|
|
|
|
2019-09-30 10:03:48 -05:00
|
|
|
* Mon Sep 30 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.9.10-1
|
|
|
|
- 0.9.10
|
|
|
|
- Environment patch upstreamed.
|
|
|
|
|
2019-08-21 17:09:48 -05:00
|
|
|
* Wed Aug 21 2019 Gwyn Ciesla <gwync@protonmail.com> - 0.9.8-12
|
|
|
|
- Add flatpak wrapper.
|
|
|
|
|
2019-07-24 23:30:22 +00:00
|
|
|
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8-11
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-01-31 18:40:26 +00:00
|
|
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8-10
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2019-01-15 10:44:32 -05:00
|
|
|
* Tue Jan 15 2019 fedora-toolbox <otaylor@redhat.com> - 0.9.8-9
|
|
|
|
- Pass the entire environment to build commands; fixes CPLUS_INCLUDE_PATH for
|
|
|
|
flatpaks.
|
|
|
|
|
2018-09-06 20:20:09 -04:00
|
|
|
* Fri Sep 7 2018 Owen Taylor <otaylor@redhat.com> - 0.9.8-8
|
|
|
|
- scons is in /usr/bin, even if we're compiling with a different %%{_prefix}
|
|
|
|
|
2018-08-23 13:27:33 +02:00
|
|
|
* Thu Aug 23 2018 Nicolas Chauvet <kwizart@gmail.com> - 0.9.8-7
|
|
|
|
- Rebuilt for glew 2.1.0
|
|
|
|
|
2018-07-12 23:53:03 +00:00
|
|
|
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-03-07 16:46:04 -08:00
|
|
|
* Wed Mar 07 2018 Adam Williamson <awilliam@redhat.com> - 0.9.8-5
|
|
|
|
- Rebuild to fix GCC 8 mis-compilation
|
|
|
|
See https://da.gd/YJVwk ("GCC 8 ABI change on x86_64")
|
|
|
|
|
2018-02-07 08:29:35 +00:00
|
|
|
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.8-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-11 14:50:04 +01:00
|
|
|
* Thu Jan 11 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.9.8-3
|
|
|
|
- Remove obsolete scriptlets
|
|
|
|
|
2017-09-13 21:15:04 -07:00
|
|
|
* Wed Sep 13 2017 Link Dupont <linkdupont@fedoraproject.org> - 0.9.8-2
|
|
|
|
- Remove GNU C++ extensions patch
|
|
|
|
- Only use GNU C++ extensions when building on ppc64le
|
|
|
|
|
2017-08-21 21:06:17 -07:00
|
|
|
* Mon Aug 21 2017 Link Dupont <linkdupont@fedoraproject.org> - 0.9.8-1
|
|
|
|
- New upstream release (RH#1473666)
|
|
|
|
|
2017-08-02 20:03:29 +00:00
|
|
|
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
|
|
2017-07-26 07:26:55 +00:00
|
|
|
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.6-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-05-15 20:20:51 +00:00
|
|
|
* Mon May 15 2017 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.6-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_27_Mass_Rebuild
|
|
|
|
|
2017-02-25 21:36:07 -08:00
|
|
|
* Sun Feb 26 2017 Link Dupont <linkdupont@fedoraproject.org> - 0.9.6-1
|
|
|
|
- New upstream release
|
|
|
|
|
2017-02-10 09:12:31 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.4-6
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2017-01-10 08:40:21 -07:00
|
|
|
* Tue Jan 10 2017 Orion Poplawski <orion@cora.nwra.com> - 0.9.4-5
|
|
|
|
- Rebuild for glew 2.0.0
|
|
|
|
|
2017-01-01 22:30:56 -08:00
|
|
|
* Sun Jan 1 2017 Link Dupont <linkdupont@fedoraproject.org> - 0.9.4-4
|
|
|
|
- Remove CCFLAGS override inside SConstruct
|
|
|
|
|
2016-12-31 21:54:32 -08:00
|
|
|
* Sat Dec 31 2016 Link Dupont <linkdupont@fedoraproject.org> - 0.9.4-3
|
|
|
|
- Build and install with identical CXXFLAGS (RH#1402807)
|
|
|
|
|
2016-12-08 21:23:37 -08:00
|
|
|
* Thu Dec 8 2016 Link Dupont <linkdupont@fedoraproject.org> - 0.9.4-2
|
|
|
|
- Build with $RPM_OPT_FLAGS (#1402807)
|
|
|
|
|
2016-10-31 22:25:49 -07:00
|
|
|
* Sat Oct 15 2016 Link Dupont <linkdupont@fedoraproject.org> - 0.9.4-1
|
|
|
|
- New upstream release
|
|
|
|
- Remove local appdata.xml file deferring to upstream
|
|
|
|
|
|
|
|
* Sat Aug 20 2016 Link Dupont <linkdupont@fedoraproject.org> - 0.9.2-1
|
|
|
|
- New upstream release
|
|
|
|
- Remove installation of 'extra' directory
|
|
|
|
|
|
|
|
* Sat Jan 16 2016 Link Dupont <linkdupont@fedoraproject.org> - 0.8.10-5
|
|
|
|
- Add strict version requirement to data package
|
|
|
|
- Document dual licensing characteristics of game data
|
|
|
|
- Add appdata validation
|
|
|
|
- Update icon cache on installation
|
|
|
|
|
|
|
|
* Mon Jan 11 2016 Link Dupont <linkdupont@fedoraproject.org> - 0.8.10-4
|
|
|
|
- Combine patches into single file
|
|
|
|
|
|
|
|
* Sun Jan 10 2016 Link Dupont <linkdupont@fedoraproject.org> - 0.8.10-3
|
|
|
|
- Patch game to load resources from /usr/share/endless-sky
|
|
|
|
|
|
|
|
* Sun Jan 10 2016 Link Dupont <linkdupont@fedoraproject.org> - 0.8.10-2
|
|
|
|
- Split data into separate package
|
|
|
|
- Patch game to avoid deprecated path /usr/games
|
|
|
|
|
|
|
|
* Sat Jan 9 2016 Link Dupont <linkdupont@fedoraproject.org> - 0.8.10-1
|
|
|
|
- New upstream release
|
|
|
|
- Added appdata.xml
|
|
|
|
|
|
|
|
* Sun Jan 3 2016 Link Dupont <linkdupont@fedoraproject.org> - 0.8.9-1
|
|
|
|
- Initial package
|