From fedc10d9aeeca86116b7556c78669f3c5a744c3b35d466607a8d0a6e0e23b3c2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Lie?= Date: Mon, 17 Apr 2023 14:11:38 +0000 Subject: [PATCH] Accepting request 1079924 from GNOME:Next OBS-URL: https://build.opensuse.org/request/show/1079924 OBS-URL: https://build.opensuse.org/package/show/GNOME:Factory/snapshot?expand=0&rev=1 --- .gitattributes | 23 +++++++ .gitignore | 1 + _constraints | 8 +++ _service | 27 ++++++++ cargo_config | 5 ++ snapshot-0.0.1~20230413.b81780b.obscpio | 3 + snapshot.changes | 4 ++ snapshot.obsinfo | 4 ++ snapshot.spec | 85 +++++++++++++++++++++++++ vendor.tar.zst | 3 + 10 files changed, 163 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _constraints create mode 100644 _service create mode 100644 cargo_config create mode 100644 snapshot-0.0.1~20230413.b81780b.obscpio create mode 100644 snapshot.changes create mode 100644 snapshot.obsinfo create mode 100644 snapshot.spec create mode 100644 vendor.tar.zst diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_constraints b/_constraints new file mode 100644 index 0000000..a275540 --- /dev/null +++ b/_constraints @@ -0,0 +1,8 @@ + + + + + 10 + + + diff --git a/_service b/_service new file mode 100644 index 0000000..8a86092 --- /dev/null +++ b/_service @@ -0,0 +1,27 @@ + + + + https://gitlab.gnome.org/Incubator/snapshot.git + git + b81780b4 + + 0.0.1~%cd.%h + + + + + + + + *.tar + xz + + + snapshot + true + + + snapshot + + + diff --git a/cargo_config b/cargo_config new file mode 100644 index 0000000..6fb4ff4 --- /dev/null +++ b/cargo_config @@ -0,0 +1,5 @@ +[source.crates-io] +replace-with = "vendored-sources" + +[source.vendored-sources] +directory = "vendor" \ No newline at end of file diff --git a/snapshot-0.0.1~20230413.b81780b.obscpio b/snapshot-0.0.1~20230413.b81780b.obscpio new file mode 100644 index 0000000..a109b86 --- /dev/null +++ b/snapshot-0.0.1~20230413.b81780b.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5e305517cd7f049665736e390c049dd2632aa0d28e9651b55b977204c873961d +size 685068 diff --git a/snapshot.changes b/snapshot.changes new file mode 100644 index 0000000..88daabe --- /dev/null +++ b/snapshot.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Fri Mar 31 19:07:56 UTC 2023 - Bjørn Lie + +- Initial packaging for openSUSE. diff --git a/snapshot.obsinfo b/snapshot.obsinfo new file mode 100644 index 0000000..752d06e --- /dev/null +++ b/snapshot.obsinfo @@ -0,0 +1,4 @@ +name: snapshot +version: 0.0.1~20230413.b81780b +mtime: 1681408932 +commit: b81780b43569c264899a75b5e204c5e4df1ad1a8 diff --git a/snapshot.spec b/snapshot.spec new file mode 100644 index 0000000..59c4d70 --- /dev/null +++ b/snapshot.spec @@ -0,0 +1,85 @@ +# +# 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 + diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..8a5311c --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:567bffd28fab5eeedb43a2255f97e7db0d458f1996bbe3ab7ca3bea91d64c06b +size 44299589