Files
harbour-quill/rpm/harbour-quill.spec

157 lines
7.3 KiB
RPMSpec

Name: harbour-quill
Summary: Markdown notes client (Obsidian-like) for Sailfish OS
Version: 0.2.12
Release: 1
Group: Applications/Office
License: GPLv3
URL: https://git.hackatoniclife.com/kaneda/harbour-quill
Source: %{name}-%{version}.tar.gz
# Disable the auto-generated debuginfo subpackage: sfdk on the 5.1 kit
# elaborates spec files without Source0 in a way that produces a duplicate
# debuginfo package declaration ("debuginfo already exists" parse error).
%global debug_package %{nil}
Requires: sailfishsilica-qt5 >= 0.10.0
BuildRequires: sailfishsilica-qt5-devel
BuildRequires: qt5-qttools-linguist
%description
Quill: markdown notes stored in a WebDAV folder (e.g. a Nextcloud
directory). Browse, edit, and preview .md notes with automatic save.
%prep
%setup -q -n %{name}-%{version}
%build
%qmake5
make %{?_smp_mflags}
# Translation catalogue: generated explicitly with lrelease (the sailfishapp_i18n
# template does not produce the .qm reliably on the 5.1 kit). The .ts lives in
# the source dir (sibling of the build dir); the .qm goes straight into the
# build dir (no subfolder — it may not exist).
lrelease %{_builddir}/../%{name}-%{version}/translations/harbour-quill_it.ts -qm %{_builddir}/harbour-quill_it.qm
%install
rm -rf %{buildroot}
%qmake5_install
# Italian translation: installed in the app data dir (the RPM validator
# rejects /usr/share/translations); main.cpp loads it from there.
mkdir -p %{buildroot}%{_datadir}/%{name}/translations
install -m 0644 %{_builddir}/harbour-quill_it.qm %{buildroot}%{_datadir}/%{name}/translations/
# Desktop file installed from the spec, NOT via qmake INSTALLS: the 5.1 kit
# Makefile ignores the qmake desktop target, so rpmbuild fails with
# "File not found: .../usr/share/applications/harbour-quill.desktop".
# NB: sfdk uses the sources live (shadow build): the build dir sits next to
# the source dir, the tarball is NOT extracted into the build dir, and rpm/
# is NOT copied there either.
mkdir -p %{buildroot}/usr/share/applications
if [ -f %{_builddir}/../%{name}-%{version}/rpm/%{name}.desktop ]; then
install -m 0644 %{_builddir}/../%{name}-%{version}/rpm/%{name}.desktop %{buildroot}/usr/share/applications/
elif [ -f %{_builddir}/rpm/%{name}.desktop ]; then
install -m 0644 %{_builddir}/rpm/%{name}.desktop %{buildroot}/usr/share/applications/
elif [ -f %{_builddir}/%{name}-%{version}/rpm/%{name}.desktop ]; then
install -m 0644 %{_builddir}/%{name}-%{version}/rpm/%{name}.desktop %{buildroot}/usr/share/applications/
else
echo "ERROR: %{name}.desktop not found (checked sibling source, build dir, extracted source)" >&2
exit 1
fi
%files
%defattr(-,root,root,-)
/usr/bin/%{name}
/usr/share/%{name}/qml/
/usr/share/applications/%{name}.desktop
/usr/share/icons/hicolor/*/apps/%{name}.png
%{_datadir}/%{name}/translations/%{name}*.qm
%changelog
* Wed Aug 19 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.2.12-1
- Sandbox SailJail (Sailfish 4.4+/5.x): profilo X-Sailjail esplicito nel desktop
file (Internet, org harbour/app quill) e config in AppConfigLocation
(~/.config/harbour/quill/quill.conf, l'unica zona persistente della sandbox).
Senza profilo la sandbox nascondeva ~/.config/harbour e le impostazioni dal
launcher sparivano. Migrazione automatica dal vecchio file per-utente.
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.2.11-1
- App icon: smaller M, arrow detached further to the right
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.2.10-1
- App icon: markdown glyph with downward arrow on the right of the M
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.2.9-1
- App icon: violet gradient with markdown glyph, arrow moved to the right of the M
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.2.8-1
- New app icon: teardrop shape pointing right (Tooter style) with markdown glyph
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.2.7-1
- New app icon: dark panel with a coloured frame (Tooter/SubMusic style)
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.2.6-1
- New app icon: markdown M-down glyph on a bright violet gradient
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.2.5-1
- New app icon (Jolla-style gradient + document glyph)
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.2.4-1
- Fix crash entering a folder: search field accessed from the delegate (header ids not visible there)
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.2.3-1
- Toast banner anchored at the top (was clipped at the screen bottom)
- Note list shows all files (not only .md); added list diagnostics to the log
- Settings: language selector (system / English / Italiano), applied on restart
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.2.2-1
- Fix packaging: lrelease writes the .qm straight into the build dir (subfolder did not exist)
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.2.1-1
- Fix packaging: translation .qm built with lrelease and installed from the spec (5.1 template does not)
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.2.0-1
- V2: note search (title filter), navigable [[wiki-links]], inline images with local cache
- Localization: English default, Italian translation
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.12-1
- Fix links in preview: relative links resolved against the note's WebDAV folder; local file: links blocked with a banner
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.11-1
- New: GFM table rendering (delimiter row, column alignment, inline markup in cells)
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.10-1
- Fix preview render: JS files rewritten with top-level functions (QML namespace import exposes them directly)
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.9-1
- Fix preview: strip UTF-8 BOM in markdown render; log render errors instead of silent fallback
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.8-1
- Fix preview: import Markdown.js by file name (directory import exposes only .qml)
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.7-1
- Fix blank screen on launch: load QML via SailfishApp::pathTo (relative QUrl failed from the launcher)
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.6-1
- Fix packaging: desktop installed from sibling source dir (shadow build layout; qmake desktop target ignored by 5.1 kit)
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.5-1
- Fix packaging: removed section names from spec comments/changelog (parser saw a second install section)
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.4-1
- Fix packaging: desktop install path with fallback (sfdk does not extract the tarball)
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.3-1
- Fix sfdk 5.1 build-requires: added Source0 and disabled auto debuginfo (duplicate debuginfo package)
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.2-1
- Fix packaging: desktop file installed from the spec install section (independent of the qmake Makefile)
* Sun Aug 16 2026 Carlo Baratto <carlo@carlobaratto.it> - 0.1.1-1
- Fix packaging: desktop file installed via qmake INSTALLS (was missing from buildroot)
* Sun Aug 16 2026 Carlo Baratto <carlobaratto@it> - 0.1.0-1
- Initial release: WebDAV browsing, markdown editor, preview, new/delete notes