File aisleriot.spec of Package aisleriot

# spec file for package aisleriot
# Copyright (c) 2018 SUSE LINUX 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

Name:           aisleriot
Version:        3.22.5
Release:        0
Summary:        Solitaire Card Games for GNOME
License:        GPL-3.0-or-later
Group:          Amusements/Games/Board/Card
BuildRequires:  fdupes
BuildRequires:  guile-devel
BuildRequires:  intltool
BuildRequires:  lsb-release
BuildRequires:  pkgconfig
# Needed to get lsb data
BuildRequires:  update-desktop-files
BuildRequires:  yelp-tools
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(gconf-2.0) >= 2.0
BuildRequires:  pkgconfig(gobject-2.0) >= 2.32.0
BuildRequires:  pkgconfig(gtk+-3.0) >= 3.4.0
BuildRequires:  pkgconfig(libcanberra-gtk3)
BuildRequires:  pkgconfig(librsvg-2.0)
Requires:       guile
Recommends:     %{name}-lang

Aisleriot is a compilation of 80 different solitaire card games.

%package themes
Summary:        Extra themes for the Aisleriot solitaire card game program
Group:          Amusements/Games/Board/Card
Requires:       %{name} = %{version}
Enhances:       %{name}
BuildArch:      noarch

%description themes
Aisleriot is a compilation of 80 different solitaire card games.

This package provides extra themes for Aisleriot.


%setup -q

# Hack up configure. This allows us not having to rely on openSUSE-release, which is a daily changing package
sed -i 's:DISTRO="unknown":DISTRO="opensuse":' configure
%configure \
    --disable-schemas-install \
    --disable-static \
    --enable-sound \
make %{?_smp_mflags}

%fdupes -s %{buildroot}%{_datadir}/help
%suse_update_desktop_file -N "AisleRiot" -G "Solitaire" sol
%find_lang %{name} %{?no_lang_C}

%pre -f aisleriot.schemas_pre
%posttrans -f aisleriot.schemas_posttrans
%preun -f aisleriot.schemas_preun

%files -f aisleriot.schemas_list
%doc AUTHORS ChangeLog
%if 0%{?suse_version} <= 1140
%doc %dir %{_datadir}/help
%doc %dir %{_datadir}/help/C
%doc %{_datadir}/help/C/aisleriot/
%dir %{_datadir}/metainfo
%dir %{_libdir}/aisleriot
%dir %{_libdir}/aisleriot/guile
%dir %{_libdir}/aisleriot/guile/*
%dir %{_libdir}/aisleriot/guile/*/aisleriot
%if "%{_libdir}" != "%{_libexecdir}"
%dir %{_libexecdir}/aisleriot
# Kind of ugly to own the valgrind directory, but the other solutions (a dep on
# valgrind, a subpackage, etc.) are not worth it
%dir %{_libdir}/valgrind
# Exclude files that are in themes
%exclude %{_datadir}/aisleriot/cards/anglo.svgz
%exclude %{_datadir}/aisleriot/cards/anglo_bitmap.svgz
%exclude %{_datadir}/aisleriot/cards/bellot.svgz
%exclude %{_datadir}/aisleriot/cards/bonded.svgz
%exclude %{_datadir}/aisleriot/cards/dondorf.svgz
%exclude %{_datadir}/aisleriot/cards/gnomangelo_bitmap.svgz
%exclude %{_datadir}/aisleriot/cards/ornamental.svgz

%files themes

%files lang -f aisleriot.lang

openSUSE Build Service is sponsored by