113 lines
3.2 KiB
RPMSpec
113 lines
3.2 KiB
RPMSpec
%global framework kservice
|
|
|
|
Name: kf5-%{framework}
|
|
Summary: KDE Frameworks 5 Tier 3 solution for advanced plugin and service introspection
|
|
Version: 5.55.0
|
|
Release: 1
|
|
|
|
# mixture of LGPLv2 and LGPLv2+ (mostly the latter)
|
|
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
|
|
|
|
## downstream patches
|
|
# adds the Administration menu from redhat-menus which equals System + Settings
|
|
# This prevents the stuff getting listed twice, under both System and Settings.
|
|
Patch100: kservice-5.15.0-xdg-menu.patch
|
|
|
|
# kbuildsycoca5 always gives:
|
|
# kf5.kservice.sycoca: Parse error in "$HOME/.config/menus/applications-merged/xdg-desktop-menu-dummy.menu" , line 1 , col 1 : "unexpected end of file"
|
|
# hide that by default, make it qCDebug instead (of qCWarning)
|
|
Patch101: kservice-5.17.0-vfolder_spam.patch
|
|
|
|
BuildRequires: extra-cmake-modules >= %{majmin}
|
|
BuildRequires: kf5-kconfig-devel >= %{majmin}
|
|
BuildRequires: kf5-kcoreaddons-devel >= %{majmin}
|
|
BuildRequires: kf5-kcrash-devel >= %{majmin}
|
|
BuildRequires: kf5-kdbusaddons-devel >= %{majmin}
|
|
BuildRequires: kf5-kdoctools-devel >= %{majmin}
|
|
BuildRequires: kf5-ki18n-devel >= %{majmin}
|
|
BuildRequires: kf5-rpm-macros
|
|
BuildRequires: qt5-qtbase-devel
|
|
|
|
BuildRequires: flex
|
|
BuildRequires: bison
|
|
|
|
# for the Administration category
|
|
Requires: redhat-menus
|
|
|
|
%description
|
|
KDE Frameworks 5 Tier 3 solution for advanced plugin and service
|
|
introspection.
|
|
|
|
%package devel
|
|
Summary: Development files for %{name}
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
Requires: kf5-kconfig-devel >= %{majmin}
|
|
Requires: kf5-kcoreaddons-devel >= %{majmin}
|
|
%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} ..
|
|
popd
|
|
|
|
%make_build -C %{_target_platform}
|
|
|
|
|
|
%install
|
|
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
|
|
|
%find_lang %{name} --all-name --with-man
|
|
|
|
mv %{buildroot}%{_kf5_sysconfdir}/xdg/menus/applications.menu \
|
|
%{buildroot}%{_kf5_sysconfdir}/xdg/menus/kf5-applications.menu
|
|
|
|
mkdir -p %{buildroot}%{_kf5_datadir}/kservices5
|
|
mkdir -p %{buildroot}%{_kf5_datadir}/kservicetypes5
|
|
|
|
|
|
%ldconfig_scriptlets
|
|
|
|
%files -f %{name}.lang
|
|
%doc README.md
|
|
%license COPYING.LIB
|
|
# this is not a config file, despite rpmlint complaining otherwise -- rex
|
|
%{_kf5_sysconfdir}/xdg/menus/kf5-applications.menu
|
|
%{_kf5_sysconfdir}/xdg/%{framework}.*
|
|
%{_kf5_bindir}/kbuildsycoca5
|
|
%{_kf5_libdir}/libKF5Service.so.5*
|
|
%{_kf5_datadir}/kservicetypes5/
|
|
%{_kf5_datadir}/kservices5/
|
|
%{_kf5_mandir}/man8/*.8*
|
|
|
|
%files devel
|
|
%{_kf5_includedir}/kservice_version.h
|
|
%{_kf5_includedir}/KService/
|
|
%{_kf5_libdir}/libKF5Service.so
|
|
%{_kf5_libdir}/cmake/KF5Service/
|
|
%{_kf5_archdatadir}/mkspecs/modules/qt_KService.pri
|
|
|
|
|
|
%changelog
|
|
* Mon Aug 17 2020 yeqinglong <yeqinglong@uniontech.com> - 5.55.0-1
|
|
- Initial release for OpenEuler
|