harbour-books/rpm/org.monich.harbour.books.spec
2023-11-19 21:30:19 +03:00

67 lines
1.8 KiB
RPMSpec

Name: org.monich.harbour.books
Summary: E-book reader
Version: 1.1.5
Release: 2
License: BSD
Group: Applications/File
URL: https://github.com/sprainbrains/harbour-books/tree/auroraos
Source0: %{name}-%{version}.tar.gz
Requires: sailfishsilica-qt5
Requires: qt5-qtsvg-plugin-imageformat-svg
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(auroraapp)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(mlite5)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(libudev)
BuildRequires: file-devel
BuildRequires: bzip2-devel
BuildRequires: desktop-file-utils
BuildRequires: qt5-qttools-linguist
BuildRequires: librsvg-tools
%{!?qtc_qmake5:%define qtc_qmake5 %qmake5}
%{!?qtc_make:%define qtc_make make}
%{?qtc_builddir:%define _builddir %qtc_builddir}
%description
FBReader-based e-book reader.
%prep
%setup -q -n %{name}-%{version}
%build
%qtc_qmake5 %{name}.pro
%qtc_make %{?_smp_mflags}
%install
rm -rf %{buildroot}
cd app
%qmake5_install
desktop-file-install --delete-original \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/*.desktop
for size in 86 108 128 172
do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/
rsvg-convert --width=${size} --height=${size} --output \
%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png \
%{_sourcedir}/../app/icons/harbour-books.svg
done
%check
#make -C test test
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png