]> git.pld-linux.org Git - packages/nomacs.git/blame - nomacs.spec
- fix building with system quazip
[packages/nomacs.git] / nomacs.spec
CommitLineData
cd4112e8
JB
1# TODO: system qpsd (http://sourceforge.net/projects/libqpsd/)
2#
baec5b45 3Summary: Lightweight image viewer
cd4112e8 4Summary(pl.UTF-8): Lekka przeglądarka obrazków
baec5b45 5Name: nomacs
afd8e3bd 6Version: 3.0.0
7ca6d37a 7Release: 1
baec5b45
ER
8License: GPL v3+
9Group: X11/Applications
afd8e3bd
JR
10Source0: https://github.com/nomacs/nomacs/releases/download/%{version}/%{name}-%{version}-source.tar.bz2
11# Source0-md5: e1630a4371d0e0f8aba9358ab20d43e5
8861805b 12Source1: %{name}.appdata.xml
afd8e3bd 13Patch0: cmake.patch
7ca6d37a 14Patch1: quazip-qt5.patch
baec5b45 15URL: http://nomacs.org/
cd4112e8 16BuildRequires: cmake >= 2.6
baec5b45
ER
17BuildRequires: desktop-file-utils
18BuildRequires: dos2unix
19BuildRequires: exiv2-devel >= 0.20
20BuildRequires: libraw-devel >= 0.12.0
21BuildRequires: libtiff-devel
22BuildRequires: libwebp-devel >= 0.3.1
23BuildRequires: opencv-devel >= 2.1.0
8861805b 24BuildRequires: pkgconfig
cd4112e8
JB
25BuildRequires: Qt5Core-devel >= 5
26BuildRequires: Qt5Gui-devel >= 5
27BuildRequires: Qt5Network-devel >= 5
afd8e3bd 28BuildRequires: Qt5Concurrent-devel
cd4112e8
JB
29BuildRequires: qt5-build >= 5
30BuildRequires: qt5-linguist >= 5
31BuildRequires: qt5-qmake >= 5
32BuildRequires: quazip-qt5-devel >= 0.7
baec5b45
ER
33BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
34
35%description
afd8e3bd 36nomacs is image viewer based on Qt library.
baec5b45
ER
37
38nomacs is small, fast and able to handle the most common image
39formats. Additionally it is possible to synchronize multiple viewers
40running on the same computer or via LAN is possible. It allows to
41compare images and spot the differences e.g. schemes of architects to
42show the progress).
43
cd4112e8 44%description -l pl.UTF-8
afd8e3bd 45nomacs to przeglądarka obrazków oparta na bibliotece Qt.
cd4112e8
JB
46
47nomacs jest mała, szybka i potrafi obsłużyć większość popularnych
48formatów obrazów. Ponadto możliwa jest synchronizacja wielu
49przeglądarek działających na tym samym komputerze lub poprzez sieć
50lokalną. Przeglądarka pozwala porównywać obrazki i wskazywać różnice,
51np. 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
58dos2unix Readme/*
59
cd4112e8
JB
60%{__rm} -r 3rdparty/libwebp
61%{__rm} -r 3rdparty/quazip-0.7
baec5b45
ER
62
63%build
64install -d build
65cd 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
76rm -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
85desktop-file-validate $RPM_BUILD_ROOT%{_desktopdir}/%{name}.desktop
86
87install -d $RPM_BUILD_ROOT%{_datadir}/appdata
88cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml
89
90%find_lang %{name} --with-qm --without-mo
91
92%clean
93rm -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
This page took 0.071287 seconds and 4 git commands to generate.