File wxformbuilder.spec of Package wxformbuilder

#
# spec file for package wxformbuilder
#
# Copyright (c) 2023 SUSE LLC
#
# 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:           wxformbuilder
Version:        3.10.1
Release:        0
Summary:        The OpenSource Designer, GUI Builder, and RAD Tool For wxWidgets
License:        GPL-2.0-or-later
Group:          Development/Tools/GUI Builders
URL:            https://github.com/wxFormBuilder/wxFormBuilder
Source:         %{url}/releases/download/v%{version}/wxFormBuilder-%{version}-source-full.tar.gz
# PATCH-FIX-UPSTREAM wxformbuilder-3.10.1-fix-build-with-wx-3.1.6.patch -- https://github.com/wxFormBuilder/wxFormBuilder/commit/8042f487aed39c287bb308e09fa3ea38bd9dfef4
Patch0:         wxformbuilder-3.10.1-fix-build-with-wx-3.1.6.patch
# PATCH-FIX-UPSTREAM wxFormBuilder-3.10.1-gcc-13.patch -- https://github.com/wxFormBuilder/wxFormBuilder/pull/777
Patch1:         wxFormBuilder-3.10.1-gcc-13.patch
BuildRequires:  boost-devel >= 1.71.0
BuildRequires:  cmake >= 3.21
BuildRequires:  gcc-c++
BuildRequires:  wxGTK3-devel >= 3.1.2

%description
wxFormBuilder aims to be an application that as well as enabling
visual development and generating the corresponding code, allow the
inclusion of non-graphical components, as well as providing
facilities for extending the set of widgets easily via plugins, like
other applications such as qt-designer.

An interesting aspect of wxFormBuilder, is the storage of the
information in XML documents instead of embedding it in the code
itself. This, as well as simplifying the application’s code, eases
the the further modification of both the properties of an object and
the generated code without needing to recompile.

%prep
%autosetup -p1 -n wxFormBuilder-%{version}

%build
%cmake
%make_build

%install
%cmake_install
# License is installed to a different directory using the license macro
rm -v %{buildroot}%{_datadir}/%{name}/LICENSE

%ldconfig_scriptlets

%files
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/org.wxformbuilder.wxFormBuilder.desktop
%{_datadir}/icons/hicolor/48x48/apps/org.wxformbuilder.wxFormBuilder.png
%{_datadir}/icons/hicolor/48x48/mimetypes/org.wxformbuilder.wxFormBuilder.application-x-wxformbuilder.png
%{_datadir}/metainfo/org.wxformbuilder.wxFormBuilder.metainfo.xml
%{_datadir}/mime/packages/org.wxformbuilder.wxFormBuilder.xml
%{_libdir}/%{name}

%changelog
openSUSE Build Service is sponsored by