Spec cleanup

This commit is contained in:
Andrey Bondrov 2018-05-29 17:46:26 +10:00
parent 2611eac801
commit dee43f0ada

View file

@ -3,44 +3,42 @@
%define status stable
%define uversion %{version}-%{status}
%ifarch %{ix86}
%ifarch %{ix86}
%define arch 32
%else
%define arch 64
%endif
Name: godot
Version: 2.1.3
Release: 2
Summary: Multi-platform 2D and 3D game engine with a feature rich editor
Group: Development/Tools
License: MIT
Url: https://godotengine.org
Source0: https://github.com/godotengine/godot/archive/%{uversion}/%{name}-%{uversion}.tar.gz
Source1: https://github.com/godotengine/godot-demo-projects/archive/%{uversion}/godot-demo-projects-%{uversion}.tar.gz
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(opusfile)
BuildRequires: pkgconfig(theora)
BuildRequires: pkgconfig(udev)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(vorbisfile)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcursor)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(zlib)
BuildRequires: scons
Suggests: %{name}-demos
Summary: Multi-platform 2D and 3D game engine with a feature rich editor
Name: godot
Version: 2.1.3
Release: 3
License: MIT
Group: Games/Other
Url: https://godotengine.org
Source0: https://github.com/godotengine/godot/archive/%{uversion}/%{name}-%{uversion}.tar.gz
Source1: https://github.com/godotengine/godot-demo-projects/archive/%{uversion}/godot-demo-projects-%{uversion}.tar.gz
BuildRequires: scons
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(glew)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libwebp)
BuildRequires: pkgconfig(ogg)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(opusfile)
BuildRequires: pkgconfig(theora)
BuildRequires: pkgconfig(udev)
BuildRequires: pkgconfig(vorbis)
BuildRequires: pkgconfig(vorbisfile)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xcursor)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(zlib)
Suggests: %{name}-demos
%description
Godot is an advanced, feature packed, multi-platform 2D and 3D game engine.
@ -60,46 +58,47 @@ down to the last line of engine code.
#----------------------------------------------------------------------
%package demos
Summary: Demo projects to learn how to use Godot Engine
BuildArch: noarch
%package demos
Summary: Demo projects to learn how to use Godot Engine
Group: Games/Other
BuildArch: noarch
%description demos
%description demos
This package contains the official demo projects to help new users to learn
the features of the game engine.
%files demos
%doc godot-demo-projects-2.1.3-stable/*.md
%files demos
%doc godot-demo-projects-%{version}-stable/*.md
%{_datadir}/%{name}/demos/
#----------------------------------------------------------------------
%if %{with server}
%package server
Summary: Godot headless binary for servers
Group: Games/Other
%package server
Summary: Godot headless binary for servers
Group: Games/Other
%description server
%description server
This package contains the headless binary for the Godot game engine,
particularly suited for running dedicated servers.
%files server
%files server
%doc *.md
%{_bindir}/%{name}-server
%endif
#----------------------------------------------------------------------
%package runner
Summary: Shared binary to play games developed with the Godot engine
Group: Games/Other
%package runner
Summary: Shared binary to play games developed with the Godot engine
Group: Games/Other
%description runner
%description runner
This package contains a godot-runner binary for the Linux X11 platform,
which can be used to run any game developed with the Godot engine simply
by pointing to the location of the game's data package.
%files runner
%files runner
%doc LICENSE.md README.md
%{_bindir}/%{name}-runner