1 |
%define srcdir ImageLounge |
2 |
|
3 |
Name: nomacs |
4 |
Version: 3.16.224 |
5 |
Release: %mkrel 5 |
6 |
Summary: A fast and small image viewer |
7 |
License: GPLv3 |
8 |
Group: Graphics/Viewers |
9 |
Url: http://www.nomacs.org |
10 |
# From https://github.com/nomacs/nomacs/ - only ImageLounge directory repacked |
11 |
# Memo: tar Jcvf nomacs-%%{version}.tar.xz nomacs-%%{version}/ |
12 |
Source0: %{name}-%{version}.tar.xz |
13 |
Patch0: 0001-fixed-build-with-quazip-1.0.patch |
14 |
|
15 |
BuildRequires: cmake |
16 |
BuildRequires: lcov |
17 |
BuildRequires: qttools5 |
18 |
BuildRequires: cmake(QuaZip-Qt5) |
19 |
BuildRequires: pkgconfig(Qt5Concurrent) |
20 |
BuildRequires: pkgconfig(Qt5Core) |
21 |
BuildRequires: pkgconfig(Qt5Gui) |
22 |
BuildRequires: pkgconfig(Qt5Help) |
23 |
BuildRequires: pkgconfig(Qt5Network) |
24 |
BuildRequires: pkgconfig(Qt5PrintSupport) |
25 |
BuildRequires: pkgconfig(Qt5Svg) |
26 |
BuildRequires: pkgconfig(Qt5Widgets) |
27 |
BuildRequires: pkgconfig(libraw) |
28 |
BuildRequires: pkgconfig(opencv) |
29 |
BuildRequires: pkgconfig(exiv2) |
30 |
BuildRequires: pkgconfig(libtiff-4) |
31 |
BuildRequires: pkgconfig(zlib) |
32 |
|
33 |
%description |
34 |
nomacs is an image viewer based on the Qt5 library. It is free, small, fast and |
35 |
is able to handle the most common image formats including RAW images. |
36 |
|
37 |
Additionally, synchronization of viewers running on the same computer or via |
38 |
LAN is possible, which allows one to compare images and spot the differences. |
39 |
|
40 |
%prep |
41 |
%setup -q |
42 |
%autopatch -p2 |
43 |
|
44 |
# fix SVG icon install path |
45 |
sed -i cmake/UnixBuildTarget.cmake -e 's@share/pixmaps@share/icons/hicolor/scalable/apps@' |
46 |
|
47 |
%build |
48 |
%cmake_qt5 \ |
49 |
-DUSE_SYSTEM_QUAZIP=ON \ |
50 |
-DENABLE_TRANSLATIONS=ON \ |
51 |
-DENABLE_PLUGINS=OFF |
52 |
|
53 |
%cmake_build |
54 |
|
55 |
%install |
56 |
%cmake_install |
57 |
|
58 |
# we don't want unneeded devel files |
59 |
find %{buildroot} -name '*.so' -delete |
60 |
|
61 |
%files |
62 |
%doc README.md |
63 |
%license license/LICENSE.GPLv3 |
64 |
%{_bindir}/%{name} |
65 |
%{_libdir}/lib%{name}*.so* |
66 |
%{_datadir}/%{name}/ |
67 |
%{_datadir}/applications/org.%{name}.ImageLounge.desktop |
68 |
%{_datadir}/metainfo/org.%{name}.ImageLounge.appdata.xml |
69 |
%{_iconsdir}/hicolor/scalable/*/org.%{name}.ImageLounge.svg |
70 |
%{_mandir}/man1/%{name}.1.* |