File gnustep-StepBill.spec of Package gnustep-StepBill
#
# spec file for package gnustep-StepBill
#
# 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 https://bugs.opensuse.org/
#
%define _name StepBill
Name: gnustep-StepBill
Version: @SERVICE@
Release: 0
Summary: XBill for GNUstep (based on MacBill)
License: GPL-2.0-or-later
Group: Amusements/Games/Action/Arcade
URL: https://github.com/alexmyczko/StepBill.app
Source: %{_name}-%{version}.tar.gz
BuildRequires: gcc-objc
BuildRequires: gnustep-base-devel
BuildRequires: gnustep-gui-devel
BuildRequires: gnustep-make
BuildRequires: update-desktop-files
Requires: gnustep-back
%description
This is a port of the MacBill, which is based on xbill, source to GNUstep.
%prep
%setup -q -n %{_name}-%{version}
%build
. %{_datadir}/GNUstep/Makefiles/GNUstep.sh
make %{?_smp_mflags}
%install
. %{_datadir}/GNUstep/Makefiles/GNUstep.sh
%make_install GNUSTEP_INSTALLATION_DOMAIN=SYSTEM
chmod a-x %{buildroot}%{_libdir}/GNUstep/Applications/%{_name}.app/Resources/%{_name}.desktop
install -Dm 0644 %{buildroot}%{_libdir}/GNUstep/Applications/%{_name}.app/Resources/%{_name}.desktop \
%{buildroot}%{_datadir}/applications/%{_name}.desktop
%suse_update_desktop_file -r -G "XBill for GNUstep" %{_name} X-GNUstep Game ArcadeGame
sed -i 's|usr/local|usr|' %{buildroot}%{_datadir}/applications/%{_name}.desktop
%files
%doc ChangeLog StepBill-README
%{_bindir}/%{_name}
%{_datadir}/applications/%{_name}.desktop
%{_libdir}/GNUstep
%license COPYING
%changelog