- elenco delle macchine e stato in lettura, fasi tradotte in italiano - avvio, stop, spegnimento, ripresa e stop ritardato da 3 a 19 ore - chiave di accesso custodita solo sul telefono, nel file privato dell'app - 44 verifiche automatiche sul nucleo (scripts/test-core.sh) - interfaccia italiana o inglese secondo la lingua del telefono
80 lines
2.5 KiB
RPMSpec
80 lines
2.5 KiB
RPMSpec
Name: harbour-thinq
|
|
Summary: Control an LG ThinQ washing machine
|
|
Version: 0.1.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.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/
|
|
|
|
%files
|
|
%defattr(-,root,root,-)
|
|
%{_bindir}/%{name}
|
|
%{_datadir}/applications/%{name}.desktop
|
|
%{_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
|