2 |
|
|
3 |
Name: nomacs |
Name: nomacs |
4 |
Version: 3.16.224 |
Version: 3.16.224 |
5 |
Release: %mkrel 4 |
Release: %mkrel 5 |
6 |
Summary: A fast and small image viewer |
Summary: A fast and small image viewer |
7 |
License: GPLv3 |
License: GPLv3 |
8 |
Group: Graphics/Viewers |
Group: Graphics/Viewers |
10 |
# From https://github.com/nomacs/nomacs/ - only ImageLounge directory repacked |
# From https://github.com/nomacs/nomacs/ - only ImageLounge directory repacked |
11 |
# Memo: tar Jcvf nomacs-%%{version}.tar.xz nomacs-%%{version}/ |
# Memo: tar Jcvf nomacs-%%{version}.tar.xz nomacs-%%{version}/ |
12 |
Source0: %{name}-%{version}.tar.xz |
Source0: %{name}-%{version}.tar.xz |
13 |
|
Patch0: 0001-fixed-build-with-quazip-1.0.patch |
14 |
|
|
15 |
BuildRequires: cmake |
BuildRequires: cmake |
16 |
BuildRequires: lcov |
BuildRequires: lcov |
17 |
BuildRequires: qttools5 |
BuildRequires: qttools5 |
18 |
|
BuildRequires: cmake(QuaZip-Qt5) |
19 |
BuildRequires: pkgconfig(Qt5Concurrent) |
BuildRequires: pkgconfig(Qt5Concurrent) |
20 |
BuildRequires: pkgconfig(Qt5Core) |
BuildRequires: pkgconfig(Qt5Core) |
21 |
BuildRequires: pkgconfig(Qt5Gui) |
BuildRequires: pkgconfig(Qt5Gui) |
29 |
BuildRequires: pkgconfig(exiv2) |
BuildRequires: pkgconfig(exiv2) |
30 |
BuildRequires: pkgconfig(libtiff-4) |
BuildRequires: pkgconfig(libtiff-4) |
31 |
BuildRequires: pkgconfig(zlib) |
BuildRequires: pkgconfig(zlib) |
|
BuildRequires: quazip-devel |
|
32 |
|
|
33 |
%description |
%description |
34 |
nomacs is an image viewer based on the Qt5 library. It is free, small, fast and |
nomacs is an image viewer based on the Qt5 library. It is free, small, fast and |
39 |
|
|
40 |
%prep |
%prep |
41 |
%setup -q |
%setup -q |
42 |
%autopatch -p1 |
%autopatch -p2 |
43 |
|
|
44 |
# fix SVG icon install path |
# fix SVG icon install path |
45 |
sed -i cmake/UnixBuildTarget.cmake -e 's@share/pixmaps@share/icons/hicolor/scalable/apps@' |
sed -i cmake/UnixBuildTarget.cmake -e 's@share/pixmaps@share/icons/hicolor/scalable/apps@' |
47 |
%build |
%build |
48 |
%cmake_qt5 \ |
%cmake_qt5 \ |
49 |
-DUSE_SYSTEM_QUAZIP=ON \ |
-DUSE_SYSTEM_QUAZIP=ON \ |
|
-DQUAZIP_INCLUDE_DIR=%{_includedir}/quazip5 \ |
|
50 |
-DENABLE_TRANSLATIONS=ON \ |
-DENABLE_TRANSLATIONS=ON \ |
51 |
-DENABLE_PLUGINS=OFF |
-DENABLE_PLUGINS=OFF |
52 |
|
|