format spec

This commit is contained in:
yeqinglong 2020-08-21 17:58:38 +08:00
parent f87b8d44c5
commit e0123e7f3b

View File

@ -1,19 +1,16 @@
%global framework syntax-highlighting
# uncomment to enable bootstrap mode
#global bootstrap 1
%if !0%{?bootstrap}
%global tests 1
%endif
Name: kf5-%{framework}
Version: 5.55.0
Release: 1
Summary: KDE Frameworks 5 Syntax highlighting engine for Kate syntax definitions
Name: kf5-%{framework}
Version: 5.55.0
Release: 1
Summary: KDE Frameworks 5 Syntax highlighting engine for Kate syntax definitions
License: MIT
URL: https://cgit.kde.org/%{framework}.git
License: MIT
URL: https://cgit.kde.org/%{framework}.git
%global majmin %(echo %{version} | cut -d. -f1-2)
%global revision %(echo %{version} | cut -d. -f3)
@ -22,22 +19,15 @@ URL: https://cgit.kde.org/%{framework}.git
%else
%global stable stable
%endif
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
Source0: http://download.kde.org/%{stable}/frameworks/%{majmin}/%{framework}-%{version}.tar.xz
## upstream fixes (lookaside cache)
BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-rpm-macros
BuildRequires: perl-interpreter
BuildRequires: qt5-qtbase-devel
BuildRequires: extra-cmake-modules >= %{majmin} kf5-rpm-macros perl-interpreter qt5-qtbase-devel
# optional deps
%if ! 0%{?bootstrap}
BuildRequires: qt5-qtxmlpatterns-devel
BuildRequires: qt5-qtxmlpatterns-devel
%endif
Requires: kf5-filesystem >= %{majmin}
Requires: kf5-filesystem >= %{majmin}
%description
%{summary}.
@ -96,3 +86,4 @@ make test ARGS="--output-on-failure --timeout 300" -C %{_target_platform} ||:
%changelog
* Mon Aug 17 2020 yeqinglong <yeqinglong@uniontech.com> - 5.55.0-1
- Initial release for OpenEuler