summaryrefslogtreecommitdiff
path: root/kdegraphics-thumbnailers.spec
blob: ae5eae89bc3f0d3fe585c7f5b14ad99c38e9ecdf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
%undefine __cmake_in_source_build
%global libraw 1

Name:          kdegraphics-thumbnailers
Summary:       Thumbnailers for various graphic types 
Version:       22.08.0
Release:       1

License:       GPLv2+
URL:           https://www.kde.org/applications/graphics/

%global revision %(echo %{version} | cut -d. -f3)

%if %{revision} >= 50
%global stable unstable
%else
%global stable stable
%endif

Source0:       http://download.kde.org/%{stable}/release-service/%{version}/src/%{name}-%{version}.tar.xz

BuildRequires: extra-cmake-modules
BuildRequires: kf5-rpm-macros
BuildRequires: cmake(KF5Archive)
BuildRequires: cmake(KF5KExiv2)
BuildRequires: cmake(KF5KIO)
BuildRequires: cmake(Qt5Gui)
%if 0%{?libraw}
BuildRequires: cmake(KF5KDcraw)
%endif

%description
%{summary}.


%prep
%autosetup


%build
mkdir %{_target_platform}
pushd %{_target_platform}
%{cmake_kf5} .. \
  -DDISABLE_MOBIPOCKET=TRUE
popd
%make_build -C %{_target_platform}


%install
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}


%files
%license COPYING*
%{_kf5_qtplugindir}/blenderthumbnail.so
%{_kf5_datadir}/kservices5/blenderthumbnail.desktop
%{_kf5_qtplugindir}/gsthumbnail.so
%{_kf5_datadir}/kservices5/gsthumbnail.desktop
%{_kf5_metainfodir}/org.kde.kdegraphics-thumbnailers.metainfo.xml
%if 0%{?libraw}
%{_kf5_qtplugindir}/rawthumbnail.so
%{_kf5_datadir}/kservices5/rawthumbnail.desktop
%endif


%changelog
* Tue Dec 20 2022 misaka00251 <liuxin@iscas.ac.cn> - 22.08.0-1
- Init package