feat(rnote): use cargo macros (#5565)

* feat(rnote): use cargo macros

Signed-off-by: madomado <madonuko@outlook.com>

* Update rnote.spec

Signed-off-by: madomado <madonuko@outlook.com>

* call meson too?

Signed-off-by: madomado <madonuko@outlook.com>

* try meson install I guess

Signed-off-by: madomado <madonuko@outlook.com>

* Update rnote.spec

Signed-off-by: madomado <madonuko@outlook.com>

* call meson twice real

Signed-off-by: madomado <madonuko@outlook.com>

* did I cook?

Signed-off-by: madomado <madonuko@outlook.com>

* !??

Signed-off-by: madomado <madonuko@outlook.com>

* cleanup(rnote): Remove macro recursion

Signed-off-by: Gilver <rockgrub@disroot.org>

* chore: Add prep macro so Mold linker is still enabled

Signed-off-by: Gilver <rockgrub@disroot.org>

* da funny thank roachy

Signed-off-by: madomado <madonuko@outlook.com>

* Update rnote.spec

Signed-off-by: madomado <madonuko@outlook.com>

* Update rnote.spec

* ?

Signed-off-by: madomado <madonuko@outlook.com>

* actually

Signed-off-by: madomado <madonuko@outlook.com>

* fix: fix sed command

* kill me

Signed-off-by: madomado <madonuko@outlook.com>

---------

Signed-off-by: madomado <madonuko@outlook.com>
Signed-off-by: Gilver <rockgrub@disroot.org>
Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
madomado
2025-07-08 12:18:11 +08:00
committed by GitHub
parent 64a249aae4
commit b83fea0e83
+23 -15
View File
@@ -1,15 +1,17 @@
%global build_rustflags %build_rustflags -C link-arg=-fuse-ld=mold
%global rustflags_debuginfo 1
Name: rnote
Version: 0.12.0
Release: 1%?dist
Summary: Sketch and take handwritten notes.
Release: 2%?dist
Summary: Sketch and take handwritten notes
License: GPL-3.0
URL: https://github.com/flxzt/rnote
Packager: madonuko <mado@fyralabs.com>
Source0: %{url}/archive/refs/tags/v%version.tar.gz
Requires: gtk4
BuildRequires: cargo meson cmake libappstream-glib gcc-c++ pkgconfig(alsa) alsa-lib clang-devel python desktop-file-utils mold
Recommends: rnote-cli = %evr
BuildRequires: rust-packaging
BuildRequires: cargo meson cmake libappstream-glib gcc-c++ alsa-lib clang-devel python desktop-file-utils mold
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(glib-2.0) >= 2.66
BuildRequires: pkgconfig(gtk4) >= 4.7
BuildRequires: pkgconfig(libadwaita-1) >= 1.2
@@ -21,12 +23,22 @@ notes and to annotate documents and pictures. Targeted at students, teachers
and those who own a drawing tablet, it provides features like PDF and picture
import/export, an infinite canvas and an adaptive UI for big and small screens.
%package cli
Summary: The cli version of rnote (`rnote-cli`)
License: GPL-3.0
%description cli
This provides the `rnote-cli` binary. For more information, see the `rnote` package.
%prep
%autosetup -n rnote-%{version}
%cargo_prep_online
%build
%meson
%cargo_license_summary_online
%{cargo_license_online} > LICENSE.dependencies
%meson_build
@@ -36,8 +48,7 @@ import/export, an infinite canvas and an adaptive UI for big and small screens.
%files
%doc README.md
%license LICENSE
%_bindir/rnote-cli
%license LICENSE LICENSE.dependencies
%_bindir/rnote
%_datadir/thumbnailers/rnote.thumbnailer
%_datadir/applications/com.github.flxzt.rnote.desktop
@@ -51,10 +62,7 @@ import/export, an infinite canvas and an adaptive UI for big and small screens.
%_datadir/rnote/
%_datadir/fonts/rnote-fonts/
%changelog
* Wed Nov 2 2022 windowsboy111 <windowsboy111@fyralabs.com> - 0.5.7-1
- Fix requires
* Sun Oct 23 2022 windowsboy111 <windowsboy111@fyralabs.com> - 0.5.7-1
- Initial package
%files cli
%doc README.md
%license LICENSE LICENSE.dependencies
%_bindir/rnote-cli