forked from pool/snapshot
86 lines
2.6 KiB
RPMSpec
86 lines
2.6 KiB
RPMSpec
|
#
|
||
|
# spec file for package snapshot
|
||
|
#
|
||
|
# 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: snapshot
|
||
|
Version: 0.0.1~20230413.b81780b
|
||
|
Release: 0
|
||
|
Summary: Take pictures and videos
|
||
|
License: GPL-3.0-or-later
|
||
|
URL: https://gitlab.gnome.org/Incubator/snapshot
|
||
|
Source: %{name}-%{version}.tar.xz
|
||
|
Source2: vendor.tar.zst
|
||
|
Source3: cargo_config
|
||
|
|
||
|
BuildRequires: appstream-glib
|
||
|
BuildRequires: cargo-packaging
|
||
|
BuildRequires: desktop-file-utils
|
||
|
BuildRequires: libxml2-tools
|
||
|
BuildRequires: meson
|
||
|
BuildRequires: pkgconfig
|
||
|
BuildRequires: pkgconfig(glib-2.0) >= 2.75
|
||
|
BuildRequires: pkgconfig(gtk4) >= 4.9.0
|
||
|
BuildRequires: pkgconfig(libadwaita-1) >= 1.2.0
|
||
|
BuildRequires: pkgconfig(gstreamer-1.0) >= 1.20
|
||
|
BuildRequires: pkgconfig(gstreamer-video-1.0) >= 1.20
|
||
|
|
||
|
%description
|
||
|
%{summary}.
|
||
|
|
||
|
%lang_package
|
||
|
|
||
|
%prep
|
||
|
%autosetup -p1 -a2
|
||
|
mkdir .cargo
|
||
|
cp %{SOURCE3} .cargo/config
|
||
|
|
||
|
%build
|
||
|
export RUSTFLAGS="%{__rustflags}"
|
||
|
%meson
|
||
|
%meson_build
|
||
|
|
||
|
%install
|
||
|
export RUSTFLAGS="%{__rustflags}"
|
||
|
%meson_install
|
||
|
%find_lang %{name} %{?no_lang_C}
|
||
|
|
||
|
# Check disabled - no tests are run during cargo_test yet + failing manual tests...
|
||
|
#%%check
|
||
|
#export RUSTFLAGS="%%{__rustflags}"
|
||
|
#%%{cargo_test}
|
||
|
# Checks disabled as they both fail atm :-) - NO FWD to distro atm.
|
||
|
#desktop-file-validate %%{buildroot}%%{_datadir}/applications/org.gnome.Snapshot.desktop
|
||
|
#appstream-util validate-relax --nonet %%{buildroot}%%{_datadir}/metainfo/org.gnome.Snapshot.gschema.xml
|
||
|
|
||
|
%files
|
||
|
%license LICENSE
|
||
|
%doc README.md
|
||
|
%{_bindir}/%{name}
|
||
|
%{_datadir}/applications/org.gnome.Snapshot.desktop
|
||
|
%{_datadir}/glib-2.0/schemas/org.gnome.Snapshot.gschema.xml
|
||
|
%{_datadir}/icons/hicolor/scalable/apps/org.gnome.Snapshot.svg
|
||
|
%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.Snapshot-symbolic.svg
|
||
|
%{_datadir}/metainfo/org.gnome.Snapshot.metainfo.xml
|
||
|
# resources.gresource should probably not be packaged, but never mind this early in the development
|
||
|
%dir %{_datadir}/%{name}
|
||
|
%{_datadir}/%{name}/resources.gresource
|
||
|
|
||
|
%files lang -f %{name}.lang
|
||
|
|
||
|
%changelog
|
||
|
|