]>
Commit | Line | Data |
---|---|---|
4dd7a0a5 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
6d404232 | 4 | %define kdeappsver 22.12.3 |
9952975a WF |
5 | %define kframever 5.94.0 |
6 | %define qtver 5.15.2 | |
bc662c43 WF |
7 | %define kaname svgpart |
8 | Summary: svgpart | |
9 | Summary(pl.UTF-8): svgpart | |
10 | Name: ka5-%{kaname} | |
6d404232 | 11 | Version: 22.12.3 |
fd22a220 | 12 | Release: 1 |
bc662c43 WF |
13 | License: GPL v2+ |
14 | Group: X11/Libraries | |
d569d65f | 15 | Source0: https://download.kde.org/stable/release-service/%{kdeappsver}/src/%{kaname}-%{version}.tar.xz |
6d404232 | 16 | # Source0-md5: b922a1bddbb7e800444f27f9aaf7be08 |
bc662c43 WF |
17 | URL: http://www.kde.org/ |
18 | BuildRequires: Qt5Gui-devel >= 5.11.1 | |
19 | BuildRequires: Qt5Svg-devel | |
20 | BuildRequires: Qt5Widgets-devel | |
21 | BuildRequires: gettext-devel | |
9e14c0a6 WF |
22 | BuildRequires: kf5-extra-cmake-modules >= %{kframever} |
23 | BuildRequires: kf5-kcoreaddons-devel >= %{kframever} | |
24 | BuildRequires: kf5-kparts-devel >= %{kframever} | |
37576078 | 25 | BuildRequires: ninja |
bc662c43 WF |
26 | BuildRequires: qt5-build >= 5.5.0 |
27 | BuildRequires: rpmbuild(macros) >= 1.164 | |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
29 | ||
30 | %description | |
31 | Kpart for viewing SVGs. | |
32 | ||
33 | %prep | |
34 | %setup -q -n %{kaname}-%{version} | |
35 | ||
36 | %build | |
37 | install -d build | |
38 | cd build | |
39 | %cmake \ | |
37576078 | 40 | -G Ninja \ |
4dd7a0a5 | 41 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
9e14c0a6 | 42 | -DHTML_INSTALL_DIR=%{_kdedocdir} \ |
bc662c43 WF |
43 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
44 | .. | |
37576078 | 45 | %ninja_build |
bc662c43 | 46 | |
4dd7a0a5 WF |
47 | %if %{with tests} |
48 | ctest | |
49 | %endif | |
50 | ||
51 | ||
bc662c43 WF |
52 | %install |
53 | rm -rf $RPM_BUILD_ROOT | |
37576078 | 54 | %ninja_install -C build |
bc662c43 WF |
55 | |
56 | %find_lang %{kaname} --all-name --with-kde | |
57 | ||
58 | %clean | |
59 | rm -rf $RPM_BUILD_ROOT | |
60 | ||
61 | %files -f %{kaname}.lang | |
62 | %defattr(644,root,root,755) | |
9e14c0a6 | 63 | %attr(755,root,root) %{_libdir}/qt5/plugins/kf5/parts/svgpart.so |
bc662c43 | 64 | %{_datadir}/kservices5/svgpart.desktop |
5430f22e | 65 | %{_datadir}/metainfo/org.kde.svgpart.metainfo.xml |