format spec

This commit is contained in:
yeqinglong 2020-08-22 11:24:51 +08:00
parent 330a85d149
commit 1e88890002

View File

@ -1,13 +1,13 @@
%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
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
License: LGPLv2
URL: https://cgit.kde.org/%{framework}.git
%global majmin %(echo %{version} | cut -d. -f1-2)
%global revision %(echo %{version} | cut -d. -f3)
@ -16,9 +16,7 @@ URL: https://cgit.kde.org/%{framework}.git
%else
%global stable stable
%endif
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
## upstream patches
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
## downstream patches
# adds the Administration menu from redhat-menus which equals System + Settings
@ -30,19 +28,7 @@ Patch100: kservice-5.15.0-xdg-menu.patch
# 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
BuildRequires: extra-cmake-modules >= %{majmin} kf5-kconfig-devel >= %{majmin} kf5-kcoreaddons-devel >= %{majmin} kf5-kcrash-devel >= %{majmin} kf5-kdbusaddons-devel >= %{majmin} kf5-kdoctools-devel >= %{majmin} kf5-ki18n-devel >= %{majmin} kf5-rpm-macros qt5-qtbase-devel flex bison
# for the Administration category
Requires: redhat-menus
@ -52,9 +38,8 @@ introspection.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: kf5-kconfig-devel >= %{majmin}
Requires: kf5-kcoreaddons-devel >= %{majmin}
Requires: %{name}%{?_isa} = %{version}-%{release} kf5-kconfig-devel >= %{majmin} kf5-kcoreaddons-devel >= %{majmin}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
@ -110,3 +95,4 @@ mkdir -p %{buildroot}%{_kf5_datadir}/kservicetypes5
%changelog
* Mon Aug 17 2020 yeqinglong <yeqinglong@uniontech.com> - 5.55.0-1
- Initial release for OpenEuler