]>
Commit | Line | Data |
---|---|---|
43bc3df7 WF |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with tests # build with tests | |
2149fad2 | 4 | # TODO: |
2149fad2 | 5 | # - runtime Requires if any |
8e092532 | 6 | %define kdeframever 5.102 |
f99c2c60 | 7 | %define qtver 5.15.2 |
c67c30f8 | 8 | %define kfname kcrash |
2149fad2 WF |
9 | |
10 | Summary: Graceful handling of application crashes | |
c67c30f8 | 11 | Name: kf5-%{kfname} |
8e092532 WF |
12 | Version: 5.102.0 |
13 | Release: 1 | |
2149fad2 WF |
14 | License: GPL v2+/LGPL v2.1+ |
15 | Group: X11/Libraries | |
60123ab2 | 16 | Source0: https://download.kde.org/stable/frameworks/%{kdeframever}/%{kfname}-%{version}.tar.xz |
8e092532 | 17 | # Source0-md5: da8a0a8f2f31e6ac54ae4423760e27a6 |
2149fad2 | 18 | URL: http://www.kde.org/ |
c67c30f8 | 19 | BuildRequires: Qt5Core-devel >= %{qtver} |
c67c30f8 AM |
20 | BuildRequires: Qt5Test-devel >= %{qtver} |
21 | BuildRequires: Qt5Widgets-devel >= %{qtver} | |
22 | BuildRequires: Qt5X11Extras-devel >= %{qtver} | |
f99c2c60 | 23 | BuildRequires: cmake >= 3.16 |
5a8c4df8 | 24 | BuildRequires: kf5-extra-cmake-modules >= %{version} |
2149fad2 WF |
25 | BuildRequires: kf5-kcoreaddons-devel >= %{version} |
26 | BuildRequires: kf5-kwindowsystem-devel >= %{version} | |
654a0d34 | 27 | BuildRequires: ninja |
c67c30f8 | 28 | BuildRequires: qt5-linguist >= %{qtver} |
a75b5749 | 29 | BuildRequires: rpmbuild(macros) >= 1.736 |
9f6989e1 | 30 | BuildRequires: tar >= 1:1.22 |
4e4b92f9 | 31 | BuildRequires: xorg-lib-libX11-devel |
9f6989e1 | 32 | BuildRequires: xz |
4e4b92f9 JP |
33 | Requires: Qt5Core >= %{qtver} |
34 | Requires: Qt5X11Extras >= %{qtver} | |
c51b1677 | 35 | Requires: kf5-dirs |
4e4b92f9 JP |
36 | Requires: kf5-kcoreaddons >= %{version} |
37 | Requires: kf5-kwindowsystem >= %{version} | |
2149fad2 WF |
38 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
39 | ||
40 | %define qt5dir %{_libdir}/qt5 | |
41 | ||
42 | %description | |
43 | KCrash provides support for intercepting and handling application | |
44 | crashes. | |
45 | ||
46 | %package devel | |
c67c30f8 AM |
47 | Summary: Header files for %{kfname} development |
48 | Summary(pl.UTF-8): Pliki nagłówkowe dla programistów używających %{kfname} | |
2149fad2 WF |
49 | Group: X11/Development/Libraries |
50 | Requires: %{name} = %{version}-%{release} | |
4e4b92f9 | 51 | Requires: Qt5Core-devel >= %{qtver} |
f99c2c60 | 52 | Requires: cmake >= 3.16 |
2149fad2 WF |
53 | |
54 | %description devel | |
c67c30f8 | 55 | Header files for %{kfname} development. |
2149fad2 WF |
56 | |
57 | %description devel -l pl.UTF-8 | |
c67c30f8 | 58 | Pliki nagłówkowe dla programistów używających %{kfname}. |
2149fad2 WF |
59 | |
60 | %prep | |
c67c30f8 | 61 | %setup -q -n %{kfname}-%{version} |
2149fad2 WF |
62 | |
63 | %build | |
64 | install -d build | |
65 | cd build | |
654a0d34 | 66 | %cmake -G Ninja \ |
43bc3df7 | 67 | %{!?with_tests:-DBUILD_TESTING=OFF} \ |
c67c30f8 | 68 | -DKDE_INSTALL_USE_QT_SYS_PATHS=ON \ |
2149fad2 | 69 | ../ |
654a0d34 | 70 | %ninja_build |
2149fad2 | 71 | |
43bc3df7 WF |
72 | %if %{with tests} |
73 | ctest | |
74 | %endif | |
75 | ||
76 | ||
2149fad2 WF |
77 | %install |
78 | rm -rf $RPM_BUILD_ROOT | |
654a0d34 | 79 | %ninja_install -C build |
2149fad2 WF |
80 | |
81 | %clean | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | %post -p /sbin/ldconfig | |
85 | %postun -p /sbin/ldconfig | |
86 | ||
87 | %files | |
88 | %defattr(644,root,root,755) | |
89 | %doc README.md | |
aac39e04 | 90 | %ghost %{_libdir}/libKF5Crash.so.5 |
56a1a3f1 | 91 | %attr(755,root,root) %{_libdir}/libKF5Crash.so.*.* |
832c08ff | 92 | %{_datadir}/qlogging-categories5/kcrash.categories |
bb715393 | 93 | %{_datadir}/qlogging-categories5/kcrash.renamecategories |
2149fad2 WF |
94 | |
95 | %files devel | |
96 | %defattr(644,root,root,755) | |
97 | %{_includedir}/KF5/KCrash | |
2149fad2 | 98 | %{_libdir}/cmake/KF5Crash |
aac39e04 | 99 | %{_libdir}/libKF5Crash.so |
2149fad2 | 100 | %{qt5dir}/mkspecs/modules/qt_KCrash.pri |