forked from pool/snapshot
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
This commit is contained in:
commit
fedc10d9ae
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -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
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
8
_constraints
Normal file
8
_constraints
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<constraints>
|
||||
<hardware>
|
||||
<disk>
|
||||
<size unit="G">10</size>
|
||||
</disk>
|
||||
</hardware>
|
||||
</constraints>
|
27
_service
Normal file
27
_service
Normal file
@ -0,0 +1,27 @@
|
||||
<?xml version="1.0"?>
|
||||
<services>
|
||||
<service name="obs_scm" mode="manual">
|
||||
<param name="url">https://gitlab.gnome.org/Incubator/snapshot.git</param>
|
||||
<param name="scm">git</param>
|
||||
<param name="revision">b81780b4</param>
|
||||
<!-- <param name="versionformat">@PARENT_TAG@+@TAG_OFFSET@</param> -->
|
||||
<param name="versionformat">0.0.1~%cd.%h</param>
|
||||
<!-- <param name="versionrewrite-pattern">(.*)\+0</param> -->
|
||||
<!-- <param name="versionrewrite-replacement">\1</param> -->
|
||||
<!-- <param name="changesgenerate">enable</param> -->
|
||||
</service>
|
||||
<service name="set_version" mode="manual"/>
|
||||
<service name="tar" mode="buildtime"/>
|
||||
<service name="recompress" mode="buildtime">
|
||||
<param name="file">*.tar</param>
|
||||
<param name="compression">xz</param>
|
||||
</service>
|
||||
<service name="cargo_vendor" mode="manual">
|
||||
<param name="srcdir">snapshot</param>
|
||||
<param name="update">true</param>
|
||||
</service>
|
||||
<service name="cargo_audit" mode="manual">
|
||||
<param name="srcdir">snapshot</param>
|
||||
</service>
|
||||
</services>
|
||||
|
5
cargo_config
Normal file
5
cargo_config
Normal file
@ -0,0 +1,5 @@
|
||||
[source.crates-io]
|
||||
replace-with = "vendored-sources"
|
||||
|
||||
[source.vendored-sources]
|
||||
directory = "vendor"
|
3
snapshot-0.0.1~20230413.b81780b.obscpio
Normal file
3
snapshot-0.0.1~20230413.b81780b.obscpio
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:5e305517cd7f049665736e390c049dd2632aa0d28e9651b55b977204c873961d
|
||||
size 685068
|
4
snapshot.changes
Normal file
4
snapshot.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Fri Mar 31 19:07:56 UTC 2023 - Bjørn Lie <bjorn.lie@gmail.com>
|
||||
|
||||
- Initial packaging for openSUSE.
|
4
snapshot.obsinfo
Normal file
4
snapshot.obsinfo
Normal file
@ -0,0 +1,4 @@
|
||||
name: snapshot
|
||||
version: 0.0.1~20230413.b81780b
|
||||
mtime: 1681408932
|
||||
commit: b81780b43569c264899a75b5e204c5e4df1ad1a8
|
85
snapshot.spec
Normal file
85
snapshot.spec
Normal file
@ -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
|
||||
|
3
vendor.tar.zst
Normal file
3
vendor.tar.zst
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:567bffd28fab5eeedb43a2255f97e7db0d458f1996bbe3ab7ca3bea91d64c06b
|
||||
size 44299589
|
Loading…
Reference in New Issue
Block a user