File gnome-mastermind.spec of Package gnome-mastermind

#
# spec file for package gnome-mastermind
#
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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/
#


Name:           gnome-mastermind
Version:        0.3.1
Release:        0
Summary:        GNOME Mastermind
License:        GPL-2.0
Group:          Amusements/Games/Logic
Url:            http://www.autistici.org/gnome-mastermind/
Source:         http://download.gna.org/gnome-mastermind/%{name}-%{version}.tar.bz2
BuildRequires:  fdupes
BuildRequires:  gnome-doc-utils-devel
BuildRequires:  perl-XML-Parser
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gconf-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The goal of this game is to break a hidden color code following
the hints that the game gives us. Check the game manual for a better
explanation about how the game works and is played.

%prep
%setup -q

%build
%configure --disable-scrollkeeper
make

%install
make DESTDIR=%{buildroot} install
%find_lang %{name}
rm -rf %{buildroot}%{_datadir}/pixmaps
rm -rf %{buildroot}%{_datadir}/icons/hicolor/*x*/apps/*.svg
%fdupes %{buildroot}%{_datadir}
%suse_update_desktop_file %{name}

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/gnome-mastermind/
# required for >= 13.1
%exclude /usr/share/omf

%changelog
openSUSE Build Service is sponsored by