File animatch.spec of Package animatch

#
# spec file for package animatch
#
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# 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 https://bugs.opensuse.org/
#


Name:           animatch
Version:        1.0.3
Release:        0
Summary:        A match-three game with cute animals
License:        GPL-3.0-or-later
Group:          Amusements/Games/Action/Arcade
URL:            https://gitlab.com/HolyPangolin/animatch
Source:         %{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(allegro-5)
BuildRequires:  pkgconfig(allegro_acodec-5)
BuildRequires:  pkgconfig(allegro_audio-5)
BuildRequires:  pkgconfig(allegro_color-5)
BuildRequires:  pkgconfig(allegro_font-5)
BuildRequires:  pkgconfig(allegro_image-5)
BuildRequires:  pkgconfig(allegro_primitives-5)
BuildRequires:  pkgconfig(allegro_ttf-5)
BuildRequires:  pkgconfig(allegro_video-5)
####

%description
A match-three game with cute animals.

%prep
%setup -q

%build
%cmake -DCMAKE_SKIP_RPATH:BOOL=TRUE

%cmake_build

%install
%cmake_install
%fdupes %{buildroot}%{_datadir}

%files
%license COPYING
%doc README.md
%{_bindir}/animatch
%{_libdir}/libanimatch-*.so
%{_libdir}/libsuperderpy.so
%{_libdir}/libanimatch.so
%{_datadir}/applications/animatch.desktop
%{_datadir}/icons/hicolor/*/apps/animatch.png
%{_mandir}/man6/animatch.6%{?ext_man}
%{_datadir}/metainfo/com.holypangolin.Animatch.appdata.xml
%{_datadir}/pixmaps/animatch.png
%dir %{_datadir}/animatch/
%{_datadir}/animatch/data/
%exclude %{_datadir}/animatch/data/{animatch.desktop,com.holypangolin.Animatch.appdata.xml}

%changelog
openSUSE Build Service is sponsored by