File freedink-dfarc.spec of Package freedink-dfarc

#
# spec file for package freedink-dfarc
#
# Copyright (c) 2019 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 http://bugs.opensuse.org/
#


Name:           freedink-dfarc
Version:        3.14
Release:        0
Summary:        Frontend and .dmod installer for GNU FreeDink
License:        GPL-3.0-or-later
Group:          Amusements/Games/RPG
URL:            https://www.freedink.org/
Source0:        ftp://ftp.gnu.org/gnu/freedink/dfarc-%{version}.tar.gz
# PATCH-FIX-OPENSUSE bz2-check-visible-symbol.patch -- Fix bzip2 detection when compiled with -fvisibility=hidden and -Wl,-version-script
Patch0:         bz2-check-visible-symbol.patch
# PATCH-FIX-OPENSUSE fix-wxString.patch -- Fix wxString to const char* conversion issue
Patch1:         fix-wxString.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  bzip2
BuildRequires:  desktop-file-utils
BuildRequires:  gcc-c++
BuildRequires:  gettext
BuildRequires:  intltool
BuildRequires:  pkgconfig
BuildRequires:  update-desktop-files
BuildRequires:  wxWidgets-devel >= 3.0
BuildRequires:  pkgconfig(bzip2)
Requires:       xdg-utils

%description
DFArc makes it easy to play and manage the Dink Smallwood game and
it's numerous Dink Modules (or D-Mods).

%prep
%setup -q -n dfarc-%{version}
%patch -P0 -p1
%patch -P1 -p1

%build
autoreconf -vfi
%configure
make %{?_smp_mflags}

%install
make install DESTDIR=%{buildroot} INSTALL="install -p"

%find_lang dfarc

%files -f dfarc.lang
%license COPYING
%doc AUTHORS NEWS README THANKS TODO TRANSLATIONS.txt ChangeLog
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/mime/packages/*
%{_datadir}/pixmaps/*
# Don't include system directories, only added files:
%{_datadir}/icons/hicolor/32x32/mimetypes/*
%{_mandir}/man1/*

%changelog
openSUSE Build Service is sponsored by