74 lines
1.8 KiB
RPMSpec
Executable File
74 lines
1.8 KiB
RPMSpec
Executable File
%global framework kcrash
|
|
|
|
Name: kf5-%{framework}
|
|
Version: 5.55.0
|
|
Release: 1
|
|
Summary: KDE Frameworks 5 Tier 2 addon for handling application crashes
|
|
|
|
License: LGPLv2+
|
|
URL: https://cgit.kde.org/%{framework}.git
|
|
|
|
%global majmin %(echo %{version} | cut -d. -f1-2)
|
|
%global revision %(echo %{version} | cut -d. -f3)
|
|
%if %{revision} >= 50
|
|
%global stable unstable
|
|
%else
|
|
%global stable stable
|
|
%endif
|
|
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
|
|
|
|
## upstream patches
|
|
|
|
BuildRequires: extra-cmake-modules >= %{majmin} kf5-kcoreaddons-devel >= %{majmin} kf5-kwindowsystem-devel >= %{majmin} kf5-rpm-macros libX11-devel qt5-qtbase-devel qt5-qtx11extras-devel
|
|
|
|
%description
|
|
KCrash provides support for intercepting and handling application crashes.
|
|
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Requires: qt5-qtbase-devel
|
|
%description devel
|
|
The %{name}-devel package contains libraries and header files for
|
|
developing applications that use %{name}.
|
|
|
|
|
|
%prep
|
|
%autosetup -n %{framework}-%{version} -p1
|
|
|
|
|
|
%build
|
|
mkdir %{_target_platform}
|
|
pushd %{_target_platform}
|
|
%{cmake_kf5} .. \
|
|
-DKCRASH_CORE_PATTERN_RAISE:BOOL=OFF
|
|
popd
|
|
|
|
%make_build -C %{_target_platform}
|
|
|
|
|
|
%install
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%files
|
|
%doc README.md
|
|
%license COPYING.LIB
|
|
%{_kf5_sysconfdir}/xdg/%{framework}.*
|
|
%{_kf5_libdir}/libKF5Crash.so.*
|
|
|
|
%files devel
|
|
%{_kf5_includedir}/kcrash_version.h
|
|
%{_kf5_includedir}/KCrash/
|
|
%{_kf5_libdir}/libKF5Crash.so
|
|
%{_kf5_libdir}/cmake/KF5Crash/
|
|
%{_kf5_archdatadir}/mkspecs/modules/qt_KCrash.pri
|
|
|
|
|
|
%changelog
|
|
* Mon Aug 17 2020 yeqinglong <yeqinglong@uniontech.com> - 5.55.0-1
|
|
- Initial release for OpenEuler
|