init package

This commit is contained in:
yeqinglong 2020-08-18 09:04:05 +08:00
parent 754e810365
commit d154c32dd6
3 changed files with 81 additions and 0 deletions

BIN
kcompletion-5.55.0.tar.xz Normal file

Binary file not shown.

77
kf5-kcompletion.spec Executable file
View File

@ -0,0 +1,77 @@
%global framework kcompletion
Name: kf5-%{framework}
Version: 5.55.0
Release: 1
Summary: KDE Frameworks 5 Tier 2 addon with auto completion widgets and classes
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
BuildRequires: extra-cmake-modules >= %{majmin}
BuildRequires: kf5-kconfig-devel >= %{majmin}
BuildRequires: kf5-kwidgetsaddons-devel >= %{majmin}
BuildRequires: kf5-rpm-macros
BuildRequires: pkgconfig(Qt5Widgets)
%description
KCompletion provides widgets with advanced completion support as well as a
lower-level completion class which can be used with your own widgets.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: pkgconfig(Qt5Widgets)
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
%prep
%setup -q -n %{framework}-%{version}
%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_kf5 kcompletion5_qt
%ldconfig_scriptlets
%files -f kcompletion5_qt.lang
%doc README.md
%license COPYING.LIB
%{_kf5_libdir}/libKF5Completion.so.*
%files devel
%{_kf5_includedir}/kcompletion_version.h
%{_kf5_includedir}/KCompletion/
%{_kf5_libdir}/libKF5Completion.so
%{_kf5_libdir}/cmake/KF5Completion/
%{_kf5_archdatadir}/mkspecs/modules/qt_KCompletion.pri
%changelog
* Mon Aug 17 2020 yeqinglong <yeqinglong@uniontech.com> - 5.55.0-1
- Initial release for OpenEuler

4
kf5-kcompletion.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: KDE/kcompletion
tag_prefix: "^v"
seperator: "."