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