From f1073896dce69ff501415adbb1dbaa9bbc27559d Mon Sep 17 00:00:00 2001 From: Raboneko <119771935+raboneko@users.noreply.github.com> Date: Thu, 16 Jan 2025 05:06:10 -0800 Subject: [PATCH] add: sticky (#3012) (#3017) (cherry picked from commit 0e598c0d9cf946cbade4c4197cb569be93416548) Co-authored-by: sadlerm4 --- anda/apps/sticky/anda.hcl | 5 ++ ...executable-to-sitepackages-directory.patch | 9 +++ .../remove-meson-postinstall-script.patch | 9 +++ anda/apps/sticky/sticky.spec | 62 +++++++++++++++++++ 4 files changed, 85 insertions(+) create mode 100644 anda/apps/sticky/anda.hcl create mode 100644 anda/apps/sticky/point-executable-to-sitepackages-directory.patch create mode 100644 anda/apps/sticky/remove-meson-postinstall-script.patch create mode 100644 anda/apps/sticky/sticky.spec diff --git a/anda/apps/sticky/anda.hcl b/anda/apps/sticky/anda.hcl new file mode 100644 index 0000000000..7276d7e493 --- /dev/null +++ b/anda/apps/sticky/anda.hcl @@ -0,0 +1,5 @@ +project pkg { + rpm { + spec = "sticky.spec" + } +} diff --git a/anda/apps/sticky/point-executable-to-sitepackages-directory.patch b/anda/apps/sticky/point-executable-to-sitepackages-directory.patch new file mode 100644 index 0000000000..f198c26a41 --- /dev/null +++ b/anda/apps/sticky/point-executable-to-sitepackages-directory.patch @@ -0,0 +1,9 @@ +diff --git a/usr/bin/sticky b/usr/bin/sticky +index 7425e9c..a00e755 100755 +--- a/usr/bin/sticky ++++ b/usr/bin/sticky +@@ -1,3 +1,3 @@ + #!/bin/bash + +-/usr/lib/sticky/sticky.py $* ++/usr/lib/python3*/site-packages/sticky/sticky.py $* diff --git a/anda/apps/sticky/remove-meson-postinstall-script.patch b/anda/apps/sticky/remove-meson-postinstall-script.patch new file mode 100644 index 0000000000..3077ba8cee --- /dev/null +++ b/anda/apps/sticky/remove-meson-postinstall-script.patch @@ -0,0 +1,9 @@ +diff --git a/meson.build b/meson.build +index b25d642..435a6f0 100644 +--- a/meson.build ++++ b/meson.build +@@ -17,4 +17,3 @@ subdir('po') + install_subdir('etc', install_dir: sysconfdir, strip_directory: true) + install_subdir('usr', install_dir: prefix, strip_directory: true) + +-meson.add_install_script('meson/meson-postinstall.sh') diff --git a/anda/apps/sticky/sticky.spec b/anda/apps/sticky/sticky.spec new file mode 100644 index 0000000000..a2d328cfc0 --- /dev/null +++ b/anda/apps/sticky/sticky.spec @@ -0,0 +1,62 @@ +%global debug_package %{nil} + +Name: sticky +Version: 1.24 +Release: 1%{?dist} +Summary: A sticky notes app for the Linux desktop + +License: GPL-2.0 +URL: https://github.com/linuxmint/sticky +Source0: %{url}/archive/%{version}.tar.gz +Patch0: remove-meson-postinstall-script.patch +Patch1: point-executable-to-sitepackages-directory.patch + +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: meson +BuildRequires: gettext-devel + +Requires: python3 +Requires: glib2 +Requires: gspell +Requires: gtk3 +Requires: python3-gobject-base +Requires: python3-xapp +Requires: xapps + +Packager: sadlerm + +%description +Sticky is a note-taking app for the Linux desktop that simulates traditional "sticky note" style stationery on your desktop. Some of its features include basic text formatting (bold, italics, monospaced, etc.), spell-checking, a tray icon for controlling note visibility, color notes, manual and automatic backups, and a manager to organize your notes into groups. + +%prep +%autosetup -p1 + +%build +%meson +%meson_build + +%install +%meson_install +mkdir -p %{buildroot}%{python3_sitelib} +mv -v %{buildroot}%{_prefix}/lib/%{name} %{buildroot}%{python3_sitelib}/%{name} + +%files +%license COPYING +%doc README.md +%{_bindir}/%{name} +%{_datadir}/applications/%{name}.desktop +%{_datadir}/glib-2.0/schemas/org.x.%{name}.gschema.xml +%{_datadir}/icons/hicolor/scalable/apps/%{name}*.svg +%{_datadir}/icons/hicolor/scalable/status/%{name}*.svg +%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo +%{_datadir}/%{name}/* +%{_sysconfdir}/xdg/autostart/%{name}.desktop +%{_datadir}/dbus-1/services/org.x.%{name}.service +%{python3_sitelib}/%{name}/*.py +%{python3_sitelib}/%{name}/__pycache__/*.pyc + +%changelog +* Thu Jan 16 2025 sadlerm4 +- Initial package