2013-03-13 20:54:02 +01:00
|
|
|
#
|
2013-04-08 19:22:34 +02:00
|
|
|
# spec file for package gnome-nibbles
|
2013-03-13 20:54:02 +01:00
|
|
|
#
|
2014-04-03 22:42:21 +02:00
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2013-03-13 20:54:02 +01:00
|
|
|
#
|
|
|
|
# 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 http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-04-08 19:22:34 +02:00
|
|
|
|
2013-03-13 20:54:02 +01:00
|
|
|
Name: gnome-nibbles
|
2014-05-18 15:11:33 +02:00
|
|
|
Version: 3.12.2
|
2013-03-13 20:54:02 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Worm Game for GNOME
|
2013-04-08 19:22:34 +02:00
|
|
|
License: GPL-2.0+
|
2013-03-13 20:54:02 +01:00
|
|
|
Group: Amusements/Games/Action/Arcade
|
2013-04-08 19:22:34 +02:00
|
|
|
Url: https://live.gnome.org/Lightsoff
|
2014-04-03 22:42:21 +02:00
|
|
|
Source: http://download.gnome.org/sources/gnome-nibbles/3.12/%{name}-%{version}.tar.xz
|
2013-03-13 20:54:02 +01:00
|
|
|
BuildRequires: hicolor-icon-theme
|
2014-04-03 22:42:21 +02:00
|
|
|
BuildRequires: intltool >= 0.50
|
2013-03-13 20:54:02 +01:00
|
|
|
BuildRequires: update-desktop-files
|
2013-04-08 19:22:34 +02:00
|
|
|
BuildRequires: yelp-tools
|
2013-09-15 12:51:35 +02:00
|
|
|
BuildRequires: pkgconfig(clutter-1.0) >= 1.14.4
|
|
|
|
BuildRequires: pkgconfig(clutter-gtk-1.0) >= 1.2.0
|
2013-03-13 20:54:02 +01:00
|
|
|
BuildRequires: pkgconfig(glib-2.0)
|
2014-04-03 22:42:21 +02:00
|
|
|
BuildRequires: pkgconfig(gtk+-3.0) >= 3.10.0
|
2013-03-13 20:54:02 +01:00
|
|
|
BuildRequires: pkgconfig(libcanberra-gtk3) >= 0.26
|
|
|
|
BuildRequires: pkgconfig(librsvg-2.0) >= 2.32.0
|
|
|
|
Recommends: %{name}-lang
|
2013-09-24 22:07:23 +02:00
|
|
|
Requires(pre): pwdutils
|
2013-03-13 20:54:02 +01:00
|
|
|
# gnome-nibbles was part of gnome-games until 3.7.x and was called gnibbles
|
2013-04-08 19:22:34 +02:00
|
|
|
Obsoletes: gnibbles < %{version}
|
|
|
|
Obsoletes: gnibbles-lang < %{version}
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2013-03-13 20:54:02 +01:00
|
|
|
%glib2_gsettings_schema_requires
|
|
|
|
|
|
|
|
%description
|
|
|
|
Nibbles is a worm game for GNOME. The player controls a 2D worm while
|
|
|
|
trying to get food. Getting food gives points, but hitting anything
|
|
|
|
causes a loss of points. When all points are lost, the player loses.
|
|
|
|
|
|
|
|
%lang_package
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
%find_lang %{name} %{?no_lang_C}
|
2014-04-03 22:42:21 +02:00
|
|
|
%suse_update_desktop_file gnome-nibbles
|
2013-03-13 20:54:02 +01:00
|
|
|
|
2013-09-24 22:07:23 +02:00
|
|
|
%pre
|
|
|
|
getent group games >/dev/null || groupadd -r games
|
|
|
|
getent passwd games >/dev/null || useradd -r -g games -d /var/games -s /sbin/nologin
|
|
|
|
|
2014-04-03 22:42:21 +02:00
|
|
|
%post
|
2013-03-13 20:54:02 +01:00
|
|
|
%set_permissions %{_bindir}/%{name}
|
|
|
|
%glib2_gsettings_schema_post
|
|
|
|
%desktop_database_post
|
|
|
|
%icon_theme_cache_post
|
2013-03-27 10:30:32 +01:00
|
|
|
%icon_theme_cache_post HighContrast
|
2013-03-13 20:54:02 +01:00
|
|
|
|
|
|
|
%verifyscript
|
|
|
|
%verify_permissions -e %{_bindir}/%{name}
|
|
|
|
|
|
|
|
%postun
|
|
|
|
%glib2_gsettings_schema_postun
|
|
|
|
%desktop_database_postun
|
|
|
|
%icon_theme_cache_postun
|
2013-03-27 10:30:32 +01:00
|
|
|
%icon_theme_cache_postun HighContrast
|
2013-03-13 20:54:02 +01:00
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc COPYING NEWS
|
|
|
|
%doc %{_datadir}/help/C/%{name}/
|
|
|
|
%{_datadir}/%{name}/
|
2013-09-15 12:51:35 +02:00
|
|
|
%dir %{_datadir}/appdata
|
|
|
|
%{_datadir}/appdata/gnome-nibbles.appdata.xml
|
2014-04-03 22:42:21 +02:00
|
|
|
%{_datadir}/applications/gnome-nibbles.desktop
|
2013-03-13 20:54:02 +01:00
|
|
|
%{_datadir}/glib-2.0/schemas/org.gnome.nibbles.gschema.xml
|
|
|
|
%{_datadir}/icons/hicolor/*/apps/%{name}.*
|
2013-03-27 10:30:32 +01:00
|
|
|
%{_datadir}/icons/HighContrast/
|
2013-03-13 20:54:02 +01:00
|
|
|
%{_mandir}/man6/%{name}.6%{?ext_man}
|
|
|
|
%defattr (0755, games, games)
|
|
|
|
# WARNING: If you are modifying this list, don't forget to edit the
|
|
|
|
# %%post/%%verifyscript scripts for set_permissions/verify_permissions.
|
|
|
|
%verify(not mode) %{_bindir}/%{name}
|
|
|
|
%defattr (0664, games, games)
|
|
|
|
|
|
|
|
%files lang -f %{name}.lang
|
|
|
|
|
|
|
|
%changelog
|