diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b2510e1 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/raceintospace-1_1_0_fedora-c2.tar.gz diff --git a/README.md b/README.md index 0b4474d..169b723 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ -# raceintospace +# Race into Space game -The raceintospace package \ No newline at end of file +The raceintospace package repository. +Contains open-sourced game [Race into Space](http://raceintospace.org). +Development is done on [GitHub repository](https://github.com/raceintospace/raceintospace). diff --git a/raceintospace.spec b/raceintospace.spec new file mode 100644 index 0000000..d1de5d1 --- /dev/null +++ b/raceintospace.spec @@ -0,0 +1,143 @@ +%bcond_with copr +%bcond_with snapshot + +%global archive_suffix tar.gz +%global commit 623777f +%global date 20191012 + +%if %{without snapshot} && %{without copr} +%global gittag v1_1_0_fedora-c2 +# For use of github tag releases, not yet on main project +%global pkgversion %(echo %{gittag} | sed -e s/^v//) +%global github_owner pemensik +%else +# Use direct commits +%global github_owner raceintospace +%global snapinfo %{date}git%{commit} +%if %{with copr} +# Use fixed archive name, make srpm from current repository +%global pkgversion git +%else +%global pkgversion git%{commit} +%endif +%endif + +# Since gcc build is broken, use clang by default +%bcond_without clang + +Name: raceintospace +Version: 1.1.0 +Release: 2%{?snapinfo:.%{snapinfo}}%{?dist} +Summary: Race into Space game + +License: GPLv2+ +#URL: https://github.com/raceintospace/raceintospace +URL: http://www.raceintospace.org/ +#Source0: raceintospace-%%{pkgversion}.tar.bz2 +Source0: https://github.com/%{github_owner}/%{name}/archive/%{gittag}/%{name}-%{pkgversion}.%{archive_suffix} +#Patch1: 0001-Compile-under-clang.patch + +BuildRequires: cmake +BuildRequires: SDL-devel protobuf-devel boost-devel +BuildRequires: libogg-devel libvorbis-devel libtheora-devel jsoncpp-devel +BuildRequires: physfs-devel libpng-devel +BuildRequires: desktop-file-utils +BuildRequires: libappstream-glib +BuildRequires: pandoc +%if %{with clang} +BuildRequires: clang +%else +BuildRequires: gcc-c++ +%endif +Requires: %{name}-data = %{version}-%{release} + +%description +Relive the 1960s Space Race - be the first country to land a man on the Moon! + +Race into Space is the free software version of Interplay's +Buzz Aldrin's Race into Space. This is the reworked version following +the source release for the computer version of the Liftoff! board game +by Fritz Bronner. This was developed by Strategic Visions +and published by Interplay as a disk-based game in 1992 and a CD-ROM in 1994. + +%package data +BuildArch: noarch +Summary: Race into Space game data + +%description data +Race into Space is the free software version of Interplay's +Buzz Aldrin's Race into Space. This is the reworked version following +the source release for the computer version of the Liftoff! board game +by Fritz Bronner. This was developed by Strategic Visions +and published by Interplay as a disk-based game in 1992 and a CD-ROM in 1994. + +Contains platform independent game data. + +%package doc +BuildArch: noarch +Summary: Race into Space game manual + +%description doc +Race into Space is the free software version of Interplay's +Buzz Aldrin's Race into Space. This is the reworked version following +the source release for the computer version of the Liftoff! board game +by Fritz Bronner. This was developed by Strategic Visions +and published by Interplay as a disk-based game in 1992 and a CD-ROM in 1994. + +Contains game manual + +%prep +%if %{with clang} +export CC=clang CXX=clang++ +# Clang does not support this option +export CFLAGS=`echo '%optflags' | sed -e 's/ -fstack-clash-protection//'` +export CXXFLAGS="$CFLAGS" +%endif +%autosetup -p1 -n %{name}-%{pkgversion} +mkdir build +pushd build +%cmake -DBUILD_PHYSFS=OFF .. +popd + +%build +pushd build +%make_build +popd +pushd doc/manual +pandoc -o manual.html manual.md +popd + +%install +pushd build +%make_install +popd +install -d %{buildroot}%{_metainfodir} +install -m 0644 doc/raceintospace.appdata.xml %{buildroot}%{_metainfodir}/%{name}.appdata.xml + +%check +desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop +appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml + +%files +%doc AUTHORS README.md +%license COPYING +%{_bindir}/raceintospace +%{_datadir}/applications/%{name}.desktop +%{_datadir}/pixmaps/%{name}.* +%{_metainfodir}/%{name}.* + +%files data +%{_datadir}/%{name} + +%files doc +%doc doc/manual + +%changelog +* Sat Oct 12 2019 Petr Menšík - 1.1.0-2 +- Fix review comment #2 issues +- Fix appcheck, test installed files + +* Fri Jul 19 2019 Petr Menšík - 1.1.0-1.20190719gitbf6c86a +- Initial version + + diff --git a/sources b/sources new file mode 100644 index 0000000..15c6473 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (raceintospace-1_1_0_fedora-c2.tar.gz) = 26655febe86dbabad95af4676373af8f74cdeb30b36412fa8e35ae3820b8f0eeb8f827d76d2dd80a4b14f0e868bee26e29677dd8aa3742e70d38b2540f8a1f3d