]>
Commit | Line | Data |
---|---|---|
be1bae43 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
e6c01ee8 | 4 | %define kdeappsver 22.08.0 |
4121b446 WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
03effd67 AM |
7 | %define kaname gwenview |
8 | Summary: Simple image viewer | |
9 | Name: ka5-%{kaname} | |
e6c01ee8 | 10 | Version: 22.08.0 |
478f220f | 11 | Release: 4 |
03effd67 AM |
12 | License: GPL v2+/LGPL v2.1+ |
13 | Group: X11/Libraries | |
0349762c | 14 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
e6c01ee8 | 15 | # Source0-md5: 95fc52fbf1ac6b8efc82ce54aab3f4c6 |
1c7bc95e | 16 | Patch0: %{name}-exiv2.patch |
03effd67 AM |
17 | URL: http://www.kde.org/ |
18 | BuildRequires: Qt5Core-devel >= %{qtver} | |
1c7bc95e | 19 | BuildRequires: cfitsio-devel |
03effd67 AM |
20 | BuildRequires: cmake >= 2.8.12 |
21 | BuildRequires: exiv2-devel | |
22 | BuildRequires: gettext-tools | |
e6c01ee8 | 23 | BuildRequires: kImageAnnotator-devel |
eb02349b WF |
24 | BuildRequires: ka5-libkdcraw-devel >= %{kdeappsver} |
25 | BuildRequires: ka5-libkipi-devel >= %{kdeappsver} | |
1c7bc95e | 26 | BuildRequires: kf5-baloo-devel >= %{kframever} |
eb02349b WF |
27 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
28 | BuildRequires: kf5-kactivities-devel >= %{kframever} | |
29 | BuildRequires: kf5-kdelibs4support-devel >= %{kframever} | |
30 | BuildRequires: kf5-kio-devel >= %{kframever} | |
03effd67 | 31 | BuildRequires: lcms2-devel |
1247c4b2 | 32 | BuildRequires: libjpeg-devel |
03effd67 | 33 | BuildRequires: libpng-devel |
40367b97 | 34 | BuildRequires: ninja |
03effd67 AM |
35 | BuildRequires: pkgconfig |
36 | BuildRequires: python | |
37 | BuildRequires: qt5-build >= %{qtver} | |
38 | BuildRequires: rpmbuild(macros) >= 1.164 | |
39 | BuildRequires: tar >= 1:1.22 | |
40 | BuildRequires: xz | |
41 | BuildRequires: zlib-devel | |
42 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
43 | ||
44 | %description | |
45 | Gwenview is an image viewer for KDE. | |
46 | ||
47 | It features a folder tree window and a file list window to provide | |
48 | easy navigation in your file hierarchy. Image loading is done by the | |
49 | Qt library, so it supports all image formats your Qt installation | |
50 | supports. | |
51 | ||
d64bd434 WF |
52 | %description -l pl.UTF-8 |
53 | Gwenview to przeglądarka obrazków dla KDE. | |
54 | ||
207115e3 WF |
55 | Wyświetla ona drzewiastą strukturę folderów i okno z listą |
56 | plików do łatwego nawigowania po hieracrchi plików. Ładowanie | |
57 | obrazków jest wykonywane przez bibliotę Qt, więc obsługiwane są | |
58 | wszystkie formaty obrazów, które wspiera Qt. | |
d64bd434 | 59 | |
03effd67 AM |
60 | %prep |
61 | %setup -q -n %{kaname}-%{version} | |
0349762c | 62 | #%patch0 |
03effd67 AM |
63 | |
64 | %build | |
65 | install -d build | |
66 | cd build | |
67 | %cmake \ | |
40367b97 | 68 | -G Ninja \ |
be1bae43 | 69 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
eb02349b | 70 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
03effd67 AM |
71 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
72 | .. | |
40367b97 | 73 | %ninja_build |
03effd67 | 74 | |
be1bae43 WF |
75 | %if %{with tests} |
76 | ctest | |
77 | %endif | |
78 | ||
79 | ||
03effd67 AM |
80 | %install |
81 | rm -rf $RPM_BUILD_ROOT | |
40367b97 | 82 | %ninja_install -C build |
03effd67 | 83 | |
eb02349b | 84 | rm -rf $RPM_BUILD_ROOT%{_kdedocdir}/sr |
1247c4b2 | 85 | %find_lang %{kaname} --all-name --with-kde |
0349762c WF |
86 | sed -i -e 's#/usr/bin/env perl#/usr/bin/perl#' \ |
87 | $RPM_BUILD_ROOT%{_datadir}/kconf_update/gwenview-imageview-alphabackgroundmode-update.pl | |
03effd67 AM |
88 | |
89 | %clean | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %post -p /sbin/ldconfig | |
93 | %postun -p /sbin/ldconfig | |
94 | ||
1247c4b2 | 95 | %files -f %{kaname}.lang |
03effd67 | 96 | %defattr(644,root,root,755) |
03effd67 AM |
97 | %attr(755,root,root) %{_bindir}/gwenview |
98 | %attr(755,root,root) %{_libdir}/libgwenviewlib.so.*.*.* | |
2407421a | 99 | %ghost %{_libdir}/libgwenviewlib.so.5 |
0349762c WF |
100 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/parts/gvpart.so |
101 | %{_datadir}/qlogging-categories5/gwenview.categories | |
03effd67 AM |
102 | %{_desktopdir}/org.kde.gwenview.desktop |
103 | %{_datadir}/gwenview | |
104 | %{_iconsdir}/hicolor/*/actions/document-share.png | |
105 | %{_iconsdir}/hicolor/*/apps/gwenview.png | |
03effd67 | 106 | %{_datadir}/kservices5/gvpart.desktop |
1247c4b2 WF |
107 | %attr(755,root,root) %{_bindir}/gwenview_importer |
108 | %{_datadir}/metainfo/org.kde.gwenview.appdata.xml | |
109 | %{_datadir}/solid/actions/gwenview_importer.desktop | |
110 | %{_datadir}/solid/actions/gwenview_importer_camera.desktop | |
c46bb5be | 111 | %attr(755,root,root) %{_datadir}/kconf_update/gwenview-imageview-alphabackgroundmode-update.pl |
7c051516 | 112 | %{_datadir}/kconf_update/gwenview.upd |
2407421a | 113 | %{_libdir}/qt5/plugins/kf5/kfileitemaction/slideshowfileitemaction.so |
207115e3 | 114 | %{_desktopdir}/org.kde.gwenview_importer.desktop |