gnome-robots/gnome-robots.spec
Dominique Leuenberger cd07d1b697 Accepting request 1171409 from GNOME:Next
- Convert package to obs_scm service.
- Add gnome-robots-libm.patch: explicitly link against libm.
  Needed, as new librsvg no longer takes care of that for us (and
  robots wrongly relied on it).

OBS-URL: https://build.opensuse.org/request/show/1171409
OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/gnome-robots?expand=0&rev=78
2024-05-02 16:00:55 +00:00

78 lines
2.2 KiB
RPMSpec

#
# spec file for package gnome-robots
#
# Copyright (c) 2024 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
Name: gnome-robots
Version: 40.0
Release: 0
Summary: Robots Game for GNOME
License: GPL-3.0-or-later
Group: Amusements/Games/Action/Arcade
URL: https://live.gnome.org/Robots
Source0: %{name}-%{version}.tar.zst
# PATCH-FIX-UPSTREAM
Patch0: gnome-robots-libm.patch
BuildRequires: fdupes
BuildRequires: gnome-games-scripts
BuildRequires: itstool
BuildRequires: meson
BuildRequires: pkgconfig
BuildRequires: vala
BuildRequires: pkgconfig(gio-2.0) >= 2.32
BuildRequires: pkgconfig(glib-2.0) >= 2.32.0
BuildRequires: pkgconfig(gsound) >= 1.0.2
BuildRequires: pkgconfig(gtk+-3.0) >= 3.24.0
BuildRequires: pkgconfig(libgnome-games-support-1) >= 1.7.1
BuildRequires: pkgconfig(librsvg-2.0) >= 2.36.2
%description
Robots is a graphical version of the original text based robots game,
which can be found on a number of UNIX systems. The player must outwit
the robots chasing him/her by getting them to run into each other.
%lang_package
%prep
%autosetup -p1
%build
%meson \
%{nil}
%meson_build
%install
%meson_install
%find_lang %{name} %{?no_lang_C}
%fdupes %{buildroot}/%{_prefix}
%files
%license COPYING
%doc NEWS
%doc %{_datadir}/help/C/%{name}/
%{_datadir}/%{name}/
%{_datadir}/applications/org.gnome.Robots.desktop
%{_datadir}/dbus-1/services/org.gnome.Robots.service
%{_datadir}/glib-2.0/schemas/org.gnome.Robots.gschema.xml
%{_datadir}/icons/hicolor/
%{_datadir}/metainfo/org.gnome.Robots.appdata.xml
%{_mandir}/man6/%{name}.6%{?ext_man}
%{_bindir}/%{name}
%files lang -f %{name}.lang
%changelog