commit 13452b0afa7692b7871f4debcf95ce596c85322925ff9fd725511964d5dfa33c Author: Richard Rahl Date: Thu Jun 6 08:41:18 2024 +0000 OBS-URL: https://build.opensuse.org/package/show/X11:COSMIC:Factory/cosmic-notifications?expand=0&rev=1 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/_service b/_service new file mode 100644 index 0000000..eabe545 --- /dev/null +++ b/_service @@ -0,0 +1,20 @@ + + + + https://github.com/pop-os/cosmic-notifications.git + git + master + 0.1.0+git%cd.%h + yes + + + + *.tar + zstd + + + cosmic-notifications + false + + + diff --git a/cosmic-notifications-0.1.0+git20240520.34f44eb.obscpio b/cosmic-notifications-0.1.0+git20240520.34f44eb.obscpio new file mode 100644 index 0000000..deae789 --- /dev/null +++ b/cosmic-notifications-0.1.0+git20240520.34f44eb.obscpio @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:5a9bffc6675f2ebe73d31590ab54b46a6d143c79b1845a1c6b3aad5349d5b864 +size 456203 diff --git a/cosmic-notifications.changes b/cosmic-notifications.changes new file mode 100644 index 0000000..5f5831e --- /dev/null +++ b/cosmic-notifications.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Thu Mar 14 01:07:43 UTC 2024 - Richard Rahl + +- initial packaging diff --git a/cosmic-notifications.obsinfo b/cosmic-notifications.obsinfo new file mode 100644 index 0000000..a10c038 --- /dev/null +++ b/cosmic-notifications.obsinfo @@ -0,0 +1,4 @@ +name: cosmic-notifications +version: 0.1.0+git20240520.34f44eb +mtime: 1716252384 +commit: 34f44eb013e5b3a94f7b14336bf244b33622369d diff --git a/cosmic-notifications.spec b/cosmic-notifications.spec new file mode 100644 index 0000000..f5efb4f --- /dev/null +++ b/cosmic-notifications.spec @@ -0,0 +1,65 @@ +# +# spec file for package cosmic-notifications +# +# Copyright (c) 2024 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/ +# + + +%define appname com.system76.CosmicNotifications +Name: cosmic-notifications +Version: 0.1.0+git20240520.34f44eb +Release: 0 +Summary: Layer for COSMIC Notifications +License: GPL-3.0-only +URL: https://github.com/pop-os/cosmic-notifications +Source0: %{name}-%{version}.tar.zst +Source1: vendor.tar.zst +Patch0: switch-to-mold.patch +BuildRequires: appstream-glib +BuildRequires: cargo-packaging +BuildRequires: desktop-file-utils +BuildRequires: hicolor-icon-theme +BuildRequires: intltool +BuildRequires: just +BuildRequires: mold +BuildRequires: pkgconfig +BuildRequires: update-desktop-files +BuildRequires: pkgconfig(wayland-client) +BuildRequires: pkgconfig(xkbcommon) + +%description +Layer Shell notifications daemon which integrates with COSMIC. + +%prep +%autosetup -p1 -a1 + +%build +just build-release + +%install +just rootdir=%{buildroot} prefix=%{_prefix} install +%suse_update_desktop_file %{appname} + +%check +%{cargo_test} + +%files +%license LICENSE.md +%doc README.md +%{_bindir}/%{name} +%{_datadir}/applications/%{appname}.desktop +%{_iconsdir}/hicolor/scalable/apps/%{appname}.svg +%{_datadir}/metainfo/%{appname}.metainfo.xml + +%changelog diff --git a/switch-to-mold.patch b/switch-to-mold.patch new file mode 100644 index 0000000..defeb12 --- /dev/null +++ b/switch-to-mold.patch @@ -0,0 +1,15 @@ +Binary files cosmic-notifications/.git/index and cosmic-notifications-patched/.git/index differ +diff -rub cosmic-notifications/justfile cosmic-notifications-patched/justfile +--- cosmic-notifications/justfile 2024-03-16 03:28:27.812540497 +0100 ++++ cosmic-notifications-patched/justfile 2024-03-16 21:29:33.248355375 +0100 +@@ -12,8 +12,8 @@ + bin-dst := base-dir / 'bin' / name + + # Use lld linker if available +-ld-args := if `which lld || true` != '' { +- '-C link-arg=-fuse-ld=lld -C link-arg=-Wl,--build-id=sha1 -Clink-arg=-Wl,--no-rosegment' ++ld-args := if `which mold || true` != '' { ++ '-C link-arg=-fuse-ld=mold -C link-arg=-Wl,--build-id=sha1 -Clink-arg=-Wl,--no-rosegment' + } else { + '' + } diff --git a/vendor.tar.zst b/vendor.tar.zst new file mode 100644 index 0000000..a6ce7f4 --- /dev/null +++ b/vendor.tar.zst @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:c362d7ad40ecc904465b1739117bcfe9374dd515aef13a3a9cc84743b6f10c31 +size 57020040