harbour-books/rpm/org.monich.harbour.books.spec

68 lines
1.8 KiB
RPMSpec
Raw Normal View History

2023-11-17 01:21:05 +03:00
Name: org.monich.harbour.books
2015-06-28 14:22:35 +03:00
Summary: E-book reader
2022-10-31 19:05:25 +03:00
Version: 1.1.5
2023-11-19 21:27:21 +03:00
Release: 2
2016-07-27 23:29:03 +03:00
License: BSD
2015-06-28 14:22:35 +03:00
Group: Applications/File
2023-11-17 01:21:05 +03:00
URL: https://github.com/sprainbrains/harbour-books/tree/auroraos
2015-06-28 14:22:35 +03:00
Source0: %{name}-%{version}.tar.gz
Requires: sailfishsilica-qt5
Requires: qt5-qtsvg-plugin-imageformat-svg
2015-06-28 14:22:35 +03:00
BuildRequires: pkgconfig(glib-2.0)
2023-11-17 01:21:05 +03:00
BuildRequires: pkgconfig(auroraapp)
2015-06-28 14:22:35 +03:00
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(mlite5)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(libudev)
2015-07-07 12:47:07 +03:00
BuildRequires: file-devel
2015-06-28 14:22:35 +03:00
BuildRequires: bzip2-devel
BuildRequires: desktop-file-utils
BuildRequires: qt5-qttools-linguist
2023-11-17 11:29:25 +03:00
BuildRequires: librsvg-tools
2015-06-28 14:22:35 +03:00
%{!?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
2023-11-17 01:21:05 +03:00
%qtc_qmake5 %{name}.pro
2015-06-28 14:22:35 +03:00
%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
2023-11-17 01:21:05 +03:00
for size in 86 108 128 172
do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/
2023-11-19 21:27:21 +03:00
rsvg-convert --width=${size} --height=${size} --output \
2023-11-17 01:21:05 +03:00
%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png \
%{_sourcedir}/../app/icons/harbour-books.svg
done
%check
2022-11-02 01:31:16 +03:00
#make -C test test
2015-06-28 14:22:35 +03:00
%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png