]> git.pld-linux.org Git - packages/nomacs.git/blob - nomacs.spec
- started update to 3.0.0, quazip linking fix needed
[packages/nomacs.git] / nomacs.spec
1 # TODO: system qpsd (http://sourceforge.net/projects/libqpsd/)
2 #
3 Summary:        Lightweight image viewer
4 Summary(pl.UTF-8):      Lekka przeglądarka obrazków
5 Name:           nomacs
6 Version:        3.0.0
7 Release:        0.1
8 License:        GPL v3+
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
13 Patch0:         cmake.patch
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)
33
34 %description
35 nomacs is image viewer based on Qt library.
36
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
41 show the progress).
42
43 %description -l pl.UTF-8
44 nomacs to przeglądarka obrazków oparta na bibliotece Qt.
45
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.
51
52 %prep
53 %setup -q
54 %patch0 -p1
55
56 dos2unix Readme/*
57
58 %{__rm} -r 3rdparty/libwebp
59 %{__rm} -r 3rdparty/quazip-0.7
60
61 %build
62 install -d build
63 cd build
64 %cmake \
65         -DENABLE_RAW=1 \
66         -DUSE_SYSTEM_WEBP=ON \
67         -DUSE_SYSTEM_QUAZIP=ON \
68         ..
69 # -DUSE_SYSTEM_LIBQPSD=ON
70 %{__make}
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74
75 %{__make} -C build install \
76         DESTDIR=$RPM_BUILD_ROOT
77
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
81
82 desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
83
84 install -d $RPM_BUILD_ROOT%{_datadir}/appdata
85 cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
86
87 %find_lang %{name} --with-qm --without-mo
88
89 %clean
90 rm -rf $RPM_BUILD_ROOT
91
92 %post
93 %update_desktop_database
94
95 %postun
96 %update_desktop_database
97
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
This page took 0.068861 seconds and 3 git commands to generate.