!1 init package

Merge pull request !1 from yeqinglong/master
This commit is contained in:
openeuler-ci-bot 2020-09-10 17:38:57 +08:00 committed by Gitee
commit 09ec9a5ade
3 changed files with 82 additions and 0 deletions

Binary file not shown.

78
kf5-kdesignerplugin.spec Normal file
View File

@ -0,0 +1,78 @@
%global framework kdesignerplugin
Name: kf5-%{framework}
Version: 5.55.0
Release: 1
Summary: KDE Frameworks 5 Tier 3 integration module for Qt Designer
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} kf5-kconfig-devel >= %{majmin} kf5-kcoreaddons-devel >= %{majmin} kf5-kdoctools-devel >= %{majmin} kf5-rpm-macros qt5-qtbase-devel qt5-qtdeclarative-devel qt5-qttools-devel qt5-qttools-static kf5-kcompletion-devel >= %{majmin} kf5-kconfigwidgets-devel >= %{majmin} kf5-kiconthemes-devel >= %{majmin} kf5-kio-devel >= %{majmin} kf5-kitemviews-devel >= %{majmin} kf5-kplotting-devel >= %{majmin} kf5-ktextwidgets-devel >= %{majmin} kf5-kwidgetsaddons-devel >= %{majmin} kf5-kxmlgui-devel >= %{majmin} kf5-sonnet-devel >= %{majmin}
%if ! 0%{?bootstrap}
BuildRequires: qt5-qtwebkit-devel kf5-kdewebkit-devel >= %{majmin}
%endif
Obsoletes: kf5-kdesignerplugin-devel < 5.18.0-2
Provides: kf5-kdesignerplugin-devel = %{version}-%{release}
%description
This framework provides plugins for Qt Designer that allow it to display
the widgets provided by various KDE frameworks, as well as a utility
(kgendesignerplugin) that can be used to generate other such plugins
from ini-style description files.
%prep
%autosetup -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 kdesignerplugin5_qt
# manpages
%find_lang %{name}-man --all-name --with-man --without-mo
cat kdesignerplugin5_qt.lang %{name}-man.lang > %{name}.lang
%ldconfig_scriptlets
%files -f %{name}.lang
%doc README.md
%license COPYING.LIB
%{_kf5_bindir}/kgendesignerplugin
%{_kf5_qtplugindir}/designer/kf5widgets.so
%if !0%{?bootstrap}
%{_kf5_qtplugindir}/designer/kdewebkit5widgets.so
%endif
%dir %{_kf5_datadir}/kf5/widgets/
%{_kf5_datadir}/kf5/widgets/*
%{_kf5_mandir}/man1/kgendesignerplugin.1*
# runtime config, no need for -devel pkg
%{_kf5_libdir}/cmake/KF5DesignerPlugin/
%changelog
* Mon Aug 17 2020 yeqinglong <yeqinglong@uniontech.com> - 5.55.0-1
- Initial release for OpenEuler

4
kf5-kdesignerplugin.yaml Normal file
View File

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