init package
This commit is contained in:
parent
4297a44790
commit
db28c79857
113
kf5-kirigami2.spec
Normal file
113
kf5-kirigami2.spec
Normal file
@ -0,0 +1,113 @@
|
||||
%global framework kirigami2
|
||||
|
||||
# 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: QtQuick plugins to build user interfaces based on the KDE UX guidelines
|
||||
|
||||
# All LGPLv2+ except for src/desktopicons.h (GPLv2+)
|
||||
License: GPLv2+
|
||||
URL: https://techbase.kde.org/Kirigami
|
||||
%global versiondir %(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/%{versiondir}/%{framework}-%{version}.tar.xz
|
||||
|
||||
## upstream paches
|
||||
|
||||
# filter qml provides
|
||||
%global __provides_exclude_from ^%{_kf5_qmldir}/.*\\.so$
|
||||
|
||||
BuildRequires: extra-cmake-modules >= %{version}
|
||||
BuildRequires: kf5-rpm-macros
|
||||
|
||||
BuildRequires: qt5-linguist
|
||||
BuildRequires: qt5-qtbase-devel
|
||||
BuildRequires: qt5-qtdeclarative-devel
|
||||
BuildRequires: qt5-qtquickcontrols2-devel
|
||||
BuildRequires: qt5-qtsvg-devel
|
||||
|
||||
%if 0%{?tests}
|
||||
BuildRequires: xorg-x11-server-Xvfb
|
||||
%endif
|
||||
|
||||
# workaround https://bugs.kde.org/show_bug.cgi?id=395156
|
||||
|
||||
Requires: qt5-qtquickcontrols%{?_isa}
|
||||
Requires: qt5-qtquickcontrols2%{?_isa}
|
||||
|
||||
%description
|
||||
%{summary}.
|
||||
|
||||
%package devel
|
||||
Summary: Development files for %{name}
|
||||
# strictly not required, but some consumers may assume/expect runtime bits to be present too
|
||||
Requires: %{name}%{?_isa} = %{version}-%{release}
|
||||
%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} .. \
|
||||
-DBUILD_TESTING:BOOL=%{?tests:ON}%{!?tests:OFF}
|
||||
popd
|
||||
|
||||
make %{?_smp_mflags} -C %{_target_platform}
|
||||
|
||||
|
||||
%install
|
||||
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
|
||||
|
||||
%find_lang_kf5 libkirigami2plugin_qt
|
||||
|
||||
|
||||
%check
|
||||
%if 0%{?tests}
|
||||
## known failure(s), not sure if possible to enable opengl/glx using
|
||||
## virtualized server (QT_XCB_FORCE_SOFTWARE_OPENGL doesn't seem to help)
|
||||
#2/2 Test #2: qmltests .........................***Exception: Other 0.19 sec
|
||||
#Could not initialize GLX
|
||||
export QT_XCB_FORCE_SOFTWARE_OPENGL=1
|
||||
export CTEST_OUTPUT_ON_FAILURE=1
|
||||
xvfb-run -a \
|
||||
make test ARGS="--output-on-failure --timeout 30" -C %{_target_platform} ||:
|
||||
%endif
|
||||
|
||||
|
||||
%files -f libkirigami2plugin_qt.lang
|
||||
# README is currently only build instructions, omit for now
|
||||
#doc README.md
|
||||
%license LICENSE*
|
||||
%{_kf5_libdir}/libKF5Kirigami2.so.5*
|
||||
%dir %{_kf5_qmldir}/org/
|
||||
%dir %{_kf5_qmldir}/org/kde/
|
||||
%{_kf5_qmldir}/org/kde/kirigami.2/
|
||||
|
||||
%files devel
|
||||
%{_kf5_libdir}/libKF5Kirigami2.so
|
||||
%{_kf5_includedir}/Kirigami2/
|
||||
%{_kf5_archdatadir}/mkspecs/modules/qt_Kirigami2.pri
|
||||
%{_kf5_libdir}/cmake/KF5Kirigami2/
|
||||
|
||||
|
||||
%changelog
|
||||
* Mon Aug 17 2020 yeqinglong <yeqinglong@uniontech.com> - 5.55.0-1
|
||||
- Initial release for OpenEuler
|
||||
4
kf5-kirigami2.yaml
Normal file
4
kf5-kirigami2.yaml
Normal file
@ -0,0 +1,4 @@
|
||||
version_control: github
|
||||
src_repo: KDE/kirigami2
|
||||
tag_prefix: "^v"
|
||||
seperator: "."
|
||||
BIN
kirigami2-5.55.0.tar.xz
Normal file
BIN
kirigami2-5.55.0.tar.xz
Normal file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user