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 URL: http://nomacs.org/
15 BuildRequires: cmake >= 2.6
16 BuildRequires: desktop-file-utils
17 BuildRequires: dos2unix
18 BuildRequires: exiv2-devel >= 0.20
19 BuildRequires: libraw-devel >= 0.12.0
20 BuildRequires: libtiff-devel
21 BuildRequires: libwebp-devel >= 0.3.1
22 BuildRequires: opencv-devel >= 2.1.0
23 BuildRequires: pkgconfig
24 BuildRequires: Qt5Core-devel >= 5
25 BuildRequires: Qt5Gui-devel >= 5
26 BuildRequires: Qt5Network-devel >= 5
27 BuildRequires: Qt5Concurrent-devel
28 BuildRequires: qt5-build >= 5
29 BuildRequires: qt5-linguist >= 5
30 BuildRequires: qt5-qmake >= 5
31 BuildRequires: quazip-qt5-devel >= 0.7
32 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35 nomacs is image viewer based on Qt library.
37 nomacs is small, fast and able to handle the most common image
38 formats. Additionally it is possible to synchronize multiple viewers
39 running on the same computer or via LAN is possible. It allows to
40 compare images and spot the differences e.g. schemes of architects to
43 %description -l pl.UTF-8
44 nomacs to przeglądarka obrazków oparta na bibliotece Qt.
46 nomacs jest mała, szybka i potrafi obsłużyć większość popularnych
47 formatów obrazów. Ponadto możliwa jest synchronizacja wielu
48 przeglądarek działających na tym samym komputerze lub poprzez sieć
49 lokalną. Przeglądarka pozwala porównywać obrazki i wskazywać różnice,
50 np. projekty architektów w celu pokazania postępów.
58 %{__rm} -r 3rdparty/libwebp
59 %{__rm} -r 3rdparty/quazip-0.7
66 -DUSE_SYSTEM_WEBP=ON \
67 -DUSE_SYSTEM_QUAZIP=ON \
69 # -DUSE_SYSTEM_LIBQPSD=ON
73 rm -rf $RPM_BUILD_ROOT
75 %{__make} -C build install \
76 DESTDIR=$RPM_BUILD_ROOT
78 # translation to German "Vorarlbergerisch" dialect - should be de_AT@Vorarlberg?
79 # ("als" is wrong code - it's Tosk Albanian in iso-639-3)
80 %{__rm} $RPM_BUILD_ROOT%{_datadir}/%{name}/translations/nomacs_als.qm
82 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
84 install -d $RPM_BUILD_ROOT%{_datadir}/appdata
85 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
87 %find_lang %{name} --with-qm --without-mo
90 rm -rf $RPM_BUILD_ROOT
93 %update_desktop_database
96 %update_desktop_database
98 %files -f %{name}.lang
99 %defattr(644,root,root,755)
100 %doc Readme/{COPYRIGHT,LICENSE.OPENCV,README}
101 %attr(755,root,root) %{_bindir}/%{name}
102 %{_mandir}/man1/%{name}.1*
103 %dir %{_datadir}/%{name}
104 %dir %{_datadir}/%{name}/translations
105 %{_datadir}/appdata/%{name}.appdata.xml
106 %{_desktopdir}/%{name}.desktop
107 %{_pixmapsdir}/%{name}.png