File xfreecell.spec of Package xfreecell

#
# spec file for package xfreecell
#
# Copyright (c) 2016 SUSE LINUX 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/
#


Name:           xfreecell
Version:        1.0.5b
Release:        0
Summary:        X11 FreeCell card game
License:        MIT
Group:          Amusements/Games/Board/Card
Url:            http://ftp.ussg.iu.edu/linux/gentoo/distfiles
Source:         %{name}-%{version}.tgz
Source1:        xfreecell.desktop
Patch0:         xfreecell-gentoo.patch
Patch1:         fix-makefile.patch
BuildRequires:  gcc-c++
BuildRequires:  libX11-devel
BuildRequires:  libXext-devel
BuildRequires:  update-desktop-files

%description
FreeCell card game implementation for X11.

%prep
%setup -q -n xfreecell
%patch0 -p1
%patch1 -p1

%build
export CXXFLAGS="%{optflags}"
make %{?_smp_mflags}

%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man6

make %{?_smp_mflags} DESTDIR=%{buildroot} install

%suse_update_desktop_file -i xfreecell Game CardGame

%files
%defattr(-,root,root)
%doc CHANGES README
%{_datadir}/applications/*
%{_mandir}/man6/xfreecell.6%{ext_man}
%{_bindir}/xfreecell

%changelog
openSUSE Build Service is sponsored by