File flips.spec of Package flips

#
# spec file for package flips
#
# 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/
#


Name:           flips
Version:        1.31
Release:        0
Summary:        Tool to create/patch IPS/BPS patches
License:        GPL-3.0-or-later
Group:          Productivity/Archiving/Backup
URL:            http://www.smwcentral.net/?p=section&a=details&id=11474
Source:         %{name}-%{version}.zip
Source1:        %{name}.desktop
Source2:        %{name}.png
Source3:        %{name}.xml
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  unzip
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(gtk+-3.0)

%description
Floating IPS is a program that can apply, as well as create patches in BPS
and IPS format.

%prep
%setup -q -c

%build
make %{?_smp_mflags}

%install
install -Dm 755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -Dm 644 %{SOURCE3} %{buildroot}%{_datadir}/mime/packages/%{name}.xml
%suse_update_desktop_file -i %{name}

%files
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml

%changelog
openSUSE Build Service is sponsored by