- aggiunto LICENSE (MIT, Carlo Baratto) e installato col pacchetto in /usr/share/doc/harbour-thinq/ - nome nel launcher e nel centro notifiche: Thinq-like; il marchio LG resta solo nella descrizione, dove e' lecito citarlo - README: nota su nome e licenza
102 lines
3.5 KiB
RPMSpec
102 lines
3.5 KiB
RPMSpec
Name: harbour-thinq
|
|
Summary: Control an LG ThinQ washing machine
|
|
Version: 0.2.2
|
|
Release: 1
|
|
Group: Qt/Qt
|
|
License: MIT
|
|
URL: https://git.hackatoniclife.com/kaneda/harbour-thinq
|
|
Source0: %{name}-%{version}.tar.gz
|
|
Source1: %{name}.desktop
|
|
|
|
Requires: sailfishsilica-qt5 >= 0.10.9
|
|
BuildRequires: pkgconfig(sailfishapp) >= 1.0.2
|
|
BuildRequires: pkgconfig(Qt5Core)
|
|
BuildRequires: pkgconfig(Qt5Qml)
|
|
BuildRequires: pkgconfig(Qt5Quick)
|
|
BuildRequires: pkgconfig(Qt5Network)
|
|
BuildRequires: qt5-qttools-linguist
|
|
BuildRequires: desktop-file-utils
|
|
|
|
%global debug_package %{nil}
|
|
|
|
%description
|
|
The app shows the state of an LG ThinQ washing machine and lets you start,
|
|
stop and power it off, with a delayed stop. It talks straight to the LG
|
|
ThinQ Connect cloud from the phone: no server in between. The access token
|
|
is stored only on the device, in the app private configuration file.
|
|
|
|
%changelog
|
|
* Mon Oct 12 2026 Carlo - 0.2.2-1
|
|
- nome mostrato nel launcher: Thinq-like (il marchio LG resta solo nella
|
|
descrizione, dove e' lecito: l'app non e' di LG)
|
|
- aggiunto il file di licenza MIT, installato col pacchetto
|
|
|
|
* Mon Oct 12 2026 Carlo - 0.2.1-1
|
|
- l'elenco delle macchine si aggiorna davvero: stato, fase e tempo rimanente
|
|
erano letti con funzioni, che in QML non si aggiornano da sole (si vedevano i
|
|
nomi ma nessuno stato)
|
|
|
|
* Mon Oct 12 2026 Carlo - 0.2.0-1
|
|
- la schermata principale chiede la chiave una volta sola, poi mostra tutte le
|
|
macchine dell'account con lo stato di ciascuna
|
|
- avviso di sistema a fine lavaggio (anche se il ciclo e' finito mentre l'app
|
|
era chiusa)
|
|
- comandi per singola macchina: avvio/stop, spegnimento, risveglio, stop ritardato
|
|
- multilingua italiano/inglese
|
|
|
|
* Mon Oct 12 2026 Carlo - 0.1.2-1
|
|
- nome mostrato nel launcher: ThinQ
|
|
|
|
* Mon Oct 12 2026 Carlo - 0.1.1-1
|
|
- intestazioni obbligatorie del cloud LG (api-key e service-phase): senza, ogni
|
|
richiesta tornava 401 con corpo vuoto e l'app non trovava le macchine
|
|
- la chiave incollata con spazi o ritorni a capo viene ripulita
|
|
|
|
* Mon Oct 12 2026 Carlo - 0.1.0-1
|
|
- prima release
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%build
|
|
%qmake5
|
|
make %{?_smp_mflags}
|
|
|
|
TS=$(find %{_builddir}/.. -maxdepth 4 -name '%{name}-it.ts' 2>/dev/null | head -1)
|
|
if [ -z "$TS" ]; then
|
|
echo "ERROR: %{name}-it.ts not found" >&2
|
|
exit 1
|
|
fi
|
|
lrelease "$TS" -qm %{_builddir}/%{name}_it.qm
|
|
|
|
%install
|
|
make install INSTALL_ROOT=%{buildroot}
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
|
|
DESKTOP=$(find %{_builddir}/.. -maxdepth 4 -name '%{name}.desktop' 2>/dev/null | head -1)
|
|
if [ -z "$DESKTOP" ] && [ -f %{SOURCE1} ]; then DESKTOP=%{SOURCE1}; fi
|
|
if [ -z "$DESKTOP" ]; then
|
|
echo "ERROR: %{name}.desktop not found" >&2
|
|
exit 1
|
|
fi
|
|
install -m 0644 "$DESKTOP" %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop || true
|
|
|
|
mkdir -p %{buildroot}%{_datadir}/%{name}/translations
|
|
install -m 0644 %{_builddir}/%{name}_it.qm %{buildroot}%{_datadir}/%{name}/translations/
|
|
|
|
# La licenza viaggia col pacchetto: e' la prima cosa che uno store controlla.
|
|
install -D -m 0644 LICENSE %{buildroot}%{_docdir}/%{name}/LICENSE
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_docdir}/%{name}/LICENSE
|
|
%{_datadir}/icons/hicolor/86x86/apps/%{name}.png
|
|
%{_datadir}/icons/hicolor/108x108/apps/%{name}.png
|
|
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
|
|
%{_datadir}/icons/hicolor/172x172/apps/%{name}.png
|
|
%{_datadir}/%{name}/qml
|
|
%{_datadir}/%{name}/translations/%{name}*.qm
|