Add rnote

This commit is contained in:
windowsboy111
2022-10-31 00:13:20 +08:00
parent 12c9272a96
commit b58aed10a3
5 changed files with 1302 additions and 0 deletions
+6
View File
@@ -0,0 +1,6 @@
project "pkg" {
rpm {
spec = "poppler.spec"
sources = "."
}
}
File diff suppressed because it is too large Load Diff
+6
View File
@@ -0,0 +1,6 @@
project "pkg" {
rpm {
spec = "rnote.spec"
sources = "."
}
}
+20
View File
@@ -0,0 +1,20 @@
import os
import requests
import re
NAME = 'rnote'
REPO = "flxzt/rnote"
REGEX_VER = r'Version:\s*([\.\d]+)\n'
SPEC = f"{NAME}.spec"
LINK = f'https://api.github.com/repos/{REPO}/releases/latest'
ver = requests.get(LINK).json()['tag_name']
ver = ver[1:] # starts with v
with open(SPEC, 'r') as f:
matches = re.findall(REGEX_VER, f.read())
if not len(matches): exit(f"{NAME}: Failed to match regex!")
cur = matches[0]
if ver == cur: exit(f'{NAME}: Up to date!')
print(f'{NAME}: {cur} -> {ver}')
os.system(f'rpmdev-bumpspec -n {ver} {SPEC}')
+48
View File
@@ -0,0 +1,48 @@
Name: rnote
Version: 0.5.7
Release: %autorelease
Summary: Sketch and take handwritten notes.
License: GPLv3
URL: https://github.com/flxzt/rnote
Source0: %{url}/releases/download/v%{version}/rnote-%{version}.tar.xz
Requires: libadwaita poppler-glib glib2-devel pkgconfig(gtk4)
BuildRequires: cargo meson cmake libappstream-glib gcc-c++ pkgconfig(alsa) alsa-lib clang-devel
BuildRequires: pkgconfig(glib-2.0) >= 2.66
BuildRequires: pkgconfig(gtk4) >= 4.7
BuildRequires: pkgconfig(libadwaita-1) >= 1.2
BuildRequires: pkgconfig(poppler-glib) >= 22.09
%description
Rnote is an open-source vector-based drawing app for sketching, handwritten 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 and export, an infinite canvas and an adaptive UI for big and small screens.
%prep
%autosetup -n rnote-%{version}
%build
%meson
%meson_build
%install
%meson_install
%files
%doc README.md
%license LICENSE
/usr/bin/rnote
/usr/lib/debug/usr/bin/rnote-0.5.7-1.fc37.x86_64.debug
/usr/share/applications/com.github.flxzt.rnote.desktop
/usr/share/glib-2.0/schemas/com.github.flxzt.rnote.gschema.xml
/usr/share/icons/hicolor/scalable/apps/com.github.flxzt.rnote.svg
/usr/share/icons/hicolor/symbolic/apps/com.github.flxzt.rnote-symbolic.svg
/usr/share/locale/*/LC_MESSAGES/rnote.mo
/usr/share/metainfo/com.github.flxzt.rnote.metainfo.xml
/usr/share/mime/packages/com.github.flxzt.rnote.xml
/usr/share/rnote/*
%changelog
* Sun Oct 23 2022 windowsboy111 <windowsboy111@fyralabs.com>
- Initial package