1 # TODO: system qpsd (http://sourceforge.net/projects/libqpsd/)
3 Summary: Lightweight image viewer
4 Summary(pl.UTF-8): Lekka przeglądarka obrazków
9 Group: X11/Applications
10 Source0: https://github.com/nomacs/nomacs/releases/download/%{version}/%{name}-%{version}-source.tar.bz2
11 # Source0-md5: e1630a4371d0e0f8aba9358ab20d43e5
12 Source1: %{name}.appdata.xml
14 Patch1: quazip-qt5.patch
15 URL: http://nomacs.org/
16 BuildRequires: cmake >= 2.6
17 BuildRequires: desktop-file-utils
18 BuildRequires: dos2unix
19 BuildRequires: exiv2-devel >= 0.20
20 BuildRequires: libraw-devel >= 0.12.0
21 BuildRequires: libtiff-devel
22 BuildRequires: libwebp-devel >= 0.3.1
23 BuildRequires: opencv-devel >= 2.1.0
24 BuildRequires: pkgconfig
25 BuildRequires: Qt5Core-devel >= 5
26 BuildRequires: Qt5Gui-devel >= 5
27 BuildRequires: Qt5Network-devel >= 5
28 BuildRequires: Qt5Concurrent-devel
29 BuildRequires: qt5-build >= 5
30 BuildRequires: qt5-linguist >= 5
31 BuildRequires: qt5-qmake >= 5
32 BuildRequires: quazip-qt5-devel >= 0.7
33 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
36 nomacs is image viewer based on Qt library.
38 nomacs is small, fast and able to handle the most common image
39 formats. Additionally it is possible to synchronize multiple viewers
40 running on the same computer or via LAN is possible. It allows to
41 compare images and spot the differences e.g. schemes of architects to
44 %description -l pl.UTF-8
45 nomacs to przeglądarka obrazków oparta na bibliotece Qt.
47 nomacs jest mała, szybka i potrafi obsłużyć większość popularnych
48 formatów obrazów. Ponadto możliwa jest synchronizacja wielu
49 przeglądarek działających na tym samym komputerze lub poprzez sieć
50 lokalną. Przeglądarka pozwala porównywać obrazki i wskazywać różnice,
51 np. projekty architektów w celu pokazania postępów.
60 %{__rm} -r 3rdparty/libwebp
61 %{__rm} -r 3rdparty/quazip-0.7
69 -DUSE_SYSTEM_WEBP=ON \
70 -DUSE_SYSTEM_QUAZIP=ON \
72 # -DUSE_SYSTEM_LIBQPSD=ON
76 rm -rf $RPM_BUILD_ROOT
78 %{__make} -C build install \
79 DESTDIR=$RPM_BUILD_ROOT
81 # translation to German "Vorarlbergerisch" dialect - should be de_AT@Vorarlberg?
82 # ("als" is wrong code - it's Tosk Albanian in iso-639-3)
83 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/translations/nomacs_als.qm
85 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
87 install -d $RPM_BUILD_ROOT%{_datadir}/appdata
88 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
90 %find_lang %{name} --with-qm --without-mo
93 rm -rf $RPM_BUILD_ROOT
97 %update_desktop_database
101 %update_desktop_database
103 %files -f %{name}.lang
104 %defattr(644,root,root,755)
105 %doc Readme/{COPYRIGHT,LICENSE.OPENCV,README}
106 %attr(755,root,root) %{_bindir}/%{name}
107 %attr(755,root,root) %{_libdir}/libnomacslib.so
108 %{_mandir}/man1/%{name}.1*
109 %dir %{_datadir}/%{name}
110 %dir %{_datadir}/%{name}/translations
111 %{_datadir}/appdata/%{name}.appdata.xml
112 %{_desktopdir}/%{name}.desktop
113 %{_pixmapsdir}/%{name}.png