48 lines
1.6 KiB
RPMSpec
48 lines
1.6 KiB
RPMSpec
Name: harbour-calibreweb
|
|
Summary: Client OPDS per Calibre Web
|
|
Version: 0.1.0
|
|
Release: 1
|
|
Group: Qt/Qt
|
|
License: MIT
|
|
URL: https://github.com/kaneda/harbour-calibreweb
|
|
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: desktop-file-utils
|
|
|
|
%description
|
|
Client per navigare e scaricare libri da un'istanza Calibre Web
|
|
(o dal Content Server di Calibre) tramite il protocollo OPDS.
|
|
Supporta autenticazione di base, ricerca, copertine e download
|
|
in tutti i formati disponibili sulla libreria.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%build
|
|
%qmake5
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install INSTALL_ROOT=%{buildroot}
|
|
mkdir -p %{buildroot}%{_datadir}/applications
|
|
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/86x86/apps
|
|
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/108x108/apps
|
|
install -m 0644 icons/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/86x86/apps/%{name}.png
|
|
install -m 0644 icons/%{name}-108.png %{buildroot}%{_datadir}/icons/hicolor/108x108/apps/%{name}-108.png
|
|
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop || true
|
|
|
|
%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}/%{name}/qml
|