File appiconpreview.spec of Package appiconpreview

#
# spec file for package shortwave
#
# Copyright (c) 2020 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/
#

%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
%define _lto_cflags %{nil}
%define _dirname app-icon-preview
%define _name AppIconPreview
Name:           appiconpreview
Version:        0BSD
Release:        0
Summary:        Tool for designing applications icons
License:        GPL-3.0-or-later
Url:            https://gitlab.gnome.org/World/design/app-icon-preview.git
Source0:        %{name}-%{version}.tar.gz
Source1:        vendor.tar.gz
Source2:        cargo_config
Patch1:         0001-fix-rsvg-dependency.patch
%if "%_repository" == "15.5"
BuildRequires:  python310-base-symlink
BuildRequires:  -python3-base
%endif
BuildRequires:  meson
BuildRequires:  git
BuildRequires:  rust
BuildRequires:  cargo
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(appstream)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(gtk4)
BuildRequires:  pkgconfig(libadwaita-1)

%description
Tool for designing applications icons.

%prep
%setup -qa1
%patch1 -p1
mkdir .cargo
cp %{SOURCE2} .cargo/config

%build
%meson
%meson_build

%install
%meson_install

%files
%license LICENSE
%dir %{_datadir}/%{_dirname}
%dir %{_datadir}/locale/fur
%dir %{_datadir}/locale/ka
%dir %{_datadir}/locale/kab
%dir %{_datadir}/locale/oc
%dir %{_datadir}/locale/fur/LC_MESSAGES
%dir %{_datadir}/locale/ka/LC_MESSAGES
%dir %{_datadir}/locale/kab/LC_MESSAGES
%dir %{_datadir}/locale/oc/LC_MESSAGES
%{_bindir}/%{_dirname}
%{_datadir}/%{_dirname}/resources.gresource
%{_datadir}/applications/org.gnome.design.%{_name}.desktop
%{_datadir}/dbus-1/services/org.gnome.design.%{_name}.service
%{_datadir}/glib-2.0/schemas/org.gnome.design.%{_name}.gschema.xml
%{_datadir}/icons/hicolor/scalable/apps/org.gnome.design.%{_name}.svg
%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.design.%{_name}-symbolic.svg
%{_datadir}/locale/*/LC_MESSAGES/%{_dirname}.mo
%{_datadir}/metainfo/org.gnome.design.%{_name}.metainfo.xml

%changelog
openSUSE Build Service is sponsored by