File gap-FlexiSheet.spec of Package gap-FlexiSheet
#
# spec file for package gap-FlexiSheet
#
# 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 FlexiSheet
Name: gap-FlexiSheet
Version: 0.5.7
Release: 0
Summary: A Quantrix-like spreadsheet
License: BSD-3-Clause
Group: Productivity/Office/Spreadsheets
URL: http://gap.nongnu.org/flexisheet/index.html
# git clone https://github.com/gnustep/gap.git
# cd gap/user-apps/FlexiSheet/
# git archive --format tar.gz --prefix FlexiSheet-0.5.7/ HEAD >../../../FlexiSheet-0.5.7.tar.gz
Source: %{_name}-%{version}.tar.gz
BuildRequires: fdupes
BuildRequires: gcc-objc
BuildRequires: gnustep-base-devel
BuildRequires: gnustep-gui-devel
BuildRequires: gnustep-make
BuildRequires: libSimpleWebKit-devel
BuildRequires: update-desktop-files
Requires: gnustep-back
%description
FlexiSheet is a multi-dimensional spreadsheet in the spirit of Lotus Improv.
%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
%fdupes -s %{buildroot}%{_libdir}/GNUstep/Applications/%{_name}.app/Resources/
sed -i 's|usr/local|usr|;s/\.tiff/\.icns/' %{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 -N "%{_name}" -G "A Quantrix-like spreadsheet" %{_name} X-GNUstep Office Spreadsheet
%files
%if 0%{?suse_version} < 1500
%doc License.txt
%else
%license License.txt
%endif
%doc ChangeLog TODO
%{_bindir}/%{_name}
%{_datadir}/applications/%{_name}.desktop
%{_libdir}/GNUstep
%changelog