]>
Commit | Line | Data |
---|---|---|
cd4112e8 JB |
1 | # TODO: system qpsd (http://sourceforge.net/projects/libqpsd/) |
2 | # | |
baec5b45 | 3 | Summary: Lightweight image viewer |
cd4112e8 | 4 | Summary(pl.UTF-8): Lekka przeglądarka obrazków |
baec5b45 | 5 | Name: nomacs |
afd8e3bd | 6 | Version: 3.0.0 |
7ca6d37a | 7 | Release: 1 |
baec5b45 ER |
8 | License: GPL v3+ |
9 | Group: X11/Applications | |
afd8e3bd JR |
10 | Source0: https://github.com/nomacs/nomacs/releases/download/%{version}/%{name}-%{version}-source.tar.bz2 |
11 | # Source0-md5: e1630a4371d0e0f8aba9358ab20d43e5 | |
8861805b | 12 | Source1: %{name}.appdata.xml |
afd8e3bd | 13 | Patch0: cmake.patch |
7ca6d37a | 14 | Patch1: quazip-qt5.patch |
baec5b45 | 15 | URL: http://nomacs.org/ |
cd4112e8 | 16 | BuildRequires: cmake >= 2.6 |
baec5b45 ER |
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 | |
8861805b | 24 | BuildRequires: pkgconfig |
cd4112e8 JB |
25 | BuildRequires: Qt5Core-devel >= 5 |
26 | BuildRequires: Qt5Gui-devel >= 5 | |
27 | BuildRequires: Qt5Network-devel >= 5 | |
afd8e3bd | 28 | BuildRequires: Qt5Concurrent-devel |
cd4112e8 JB |
29 | BuildRequires: qt5-build >= 5 |
30 | BuildRequires: qt5-linguist >= 5 | |
31 | BuildRequires: qt5-qmake >= 5 | |
32 | BuildRequires: quazip-qt5-devel >= 0.7 | |
baec5b45 ER |
33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
34 | ||
35 | %description | |
afd8e3bd | 36 | nomacs is image viewer based on Qt library. |
baec5b45 ER |
37 | |
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 | |
42 | show the progress). | |
43 | ||
cd4112e8 | 44 | %description -l pl.UTF-8 |
afd8e3bd | 45 | nomacs to przeglądarka obrazków oparta na bibliotece Qt. |
cd4112e8 JB |
46 | |
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. | |
52 | ||
baec5b45 ER |
53 | %prep |
54 | %setup -q | |
afd8e3bd | 55 | %patch0 -p1 |
7ca6d37a | 56 | %patch1 -p1 |
baec5b45 ER |
57 | |
58 | dos2unix Readme/* | |
59 | ||
cd4112e8 JB |
60 | %{__rm} -r 3rdparty/libwebp |
61 | %{__rm} -r 3rdparty/quazip-0.7 | |
baec5b45 ER |
62 | |
63 | %build | |
64 | install -d build | |
65 | cd build | |
66 | %cmake \ | |
7ca6d37a | 67 | -DENABLE_PLUGINS=ON \ |
baec5b45 ER |
68 | -DENABLE_RAW=1 \ |
69 | -DUSE_SYSTEM_WEBP=ON \ | |
70 | -DUSE_SYSTEM_QUAZIP=ON \ | |
71 | .. | |
cd4112e8 | 72 | # -DUSE_SYSTEM_LIBQPSD=ON |
baec5b45 ER |
73 | %{__make} |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
baec5b45 ER |
77 | |
78 | %{__make} -C build install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
cd4112e8 JB |
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 | |
baec5b45 ER |
84 | |
85 | desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop | |
86 | ||
87 | install -d $RPM_BUILD_ROOT%{_datadir}/appdata | |
88 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml | |
89 | ||
90 | %find_lang %{name} --with-qm --without-mo | |
91 | ||
92 | %clean | |
93 | rm -rf $RPM_BUILD_ROOT | |
94 | ||
95 | %post | |
7ca6d37a | 96 | /sbin/ldconfig |
baec5b45 ER |
97 | %update_desktop_database |
98 | ||
99 | %postun | |
7ca6d37a | 100 | /sbin/ldconfig |
baec5b45 ER |
101 | %update_desktop_database |
102 | ||
103 | %files -f %{name}.lang | |
104 | %defattr(644,root,root,755) | |
cd4112e8 | 105 | %doc Readme/{COPYRIGHT,LICENSE.OPENCV,README} |
baec5b45 | 106 | %attr(755,root,root) %{_bindir}/%{name} |
7ca6d37a | 107 | %attr(755,root,root) %{_libdir}/libnomacslib.so |
cd4112e8 | 108 | %{_mandir}/man1/%{name}.1* |
baec5b45 ER |
109 | %dir %{_datadir}/%{name} |
110 | %dir %{_datadir}/%{name}/translations | |
111 | %{_datadir}/appdata/%{name}.appdata.xml | |
112 | %{_desktopdir}/%{name}.desktop | |
113 | %{_pixmapsdir}/%{name}.png |