File xsolitaire.spec of Package xsolitaire

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


Summary:        X11 solitaire card game
Url:            http://users.dart.net.au/~leonard/software/xsolitaire/
License:        SUSE-Public-Domain
Group:          Amusements/Games/Board/Card 
Name:           xsolitaire
Version:        1.3
Release:        3
Source:         %{name}-%{version}.tar.gz
Source1:        xsolitaire.desktop
BuildRequires:  imake
BuildRequires:  libX11-devel
BuildRequires:  libXext-devel
BuildRequires:  libXpm-devel
BuildRequires:  libXt-devel
BuildRequires:  libXaw-devel
BuildRequires:  libXmu-devel
BuildRequires:  libSM-devel
BuildRequires:  libICE-devel
BuildRequires:  update-desktop-files

%description
xsolitaire is Xaw-based solitaire card game implementation for X11.

%prep
%setup

%build
xmkmf -a
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install
make DESTDIR=%{buildroot} install.man

%suse_update_desktop_file -i xsolitaire Game CardGame

%files
%defattr(-,root,root)
%doc NOTES LICENCE
%dir %{_datadir}/X11/app-defaults
%dir %{_includedir}/X11/pixmaps
%{_datadir}/applications/*
%{_datadir}/man/man1/xsolitaire.1x.gz
%{_datadir}/X11/app-defaults/Solitaire
%{_bindir}/xsolitaire
%{_includedir}/X11/pixmaps/*.xpm

%changelog
openSUSE Build Service is sponsored by