diff --git a/kf5-kwallet.spec b/kf5-kwallet.spec new file mode 100644 index 0000000000000000000000000000000000000000..d5ed35410a188acccb508405a03de70c0a5e5ec6 --- /dev/null +++ b/kf5-kwallet.spec @@ -0,0 +1,107 @@ +%global framework kwallet + +# 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 Tier 3 solution for password management + +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/%{versiondir}/%{framework}-%{version}.tar.xz + +BuildRequires: extra-cmake-modules >= %{majmin} kf5-kconfig-devel >= %{majmin} kf5-kconfigwidgets-devel >= %{majmin} kf5-kcoreaddons-devel >= %{majmin} kf5-kdbusaddons-devel >= %{majmin} kf5-kdoctools-devel >= %{majmin} kf5-ki18n-devel >= %{majmin} kf5-kiconthemes-devel >= %{majmin} kf5-knotifications-devel >= %{majmin} kf5-kservice-devel >= %{majmin} kf5-kwidgetsaddons-devel >= %{majmin} kf5-kwindowsystem-devel >= %{majmin} kf5-rpm-macros qt5-qtbase-devel libgcrypt-devel +Requires: %{name}-libs%{?_isa} = %{version}-%{release} +# gpg support ui +Recommends: pinentry-gui + +%description +KWallet is a secure and unified container for user passwords. + +%package libs +Summary: KWallet framework libraries +Requires: %{name} = %{version}-%{release} +%description libs +Provides API to access KWallet data from applications. + +%package devel +Summary: Development files for %{name} +Requires: %{name}-libs%{?_isa} = %{version}-%{release} qt5-qtbase-devel +%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_build -C %{_target_platform} + + +%install +make install/fast DESTDIR=%{buildroot} -C %{_target_platform} + +%find_lang %{name} --all-name --with-man + + +%check +%if 0%{?tests} +export CTEST_OUTPUT_ON_FAILURE=1 +make test ARGS="--output-on-failure --timeout 30" -C %{_target_platform} ||: +%endif + + +%files -f %{name}.lang +%doc README.md +%license COPYING.LIB +%{_kf5_sysconfdir}/xdg/%{framework}* +%{_kf5_datadir}/dbus-1/services/org.kde.kwalletd5.service +%{_kf5_datadir}/dbus-1/services/org.kde.kwalletd.service +%{_kf5_bindir}/kwalletd5 +%{_kf5_datadir}/kservices5/kwalletd5.desktop +%{_kf5_datadir}/knotifications5/kwalletd.notifyrc +%{_kf5_bindir}/kwallet-query +%{_mandir}/man1/kwallet-query.1* + +%ldconfig_scriptlets libs + +%files libs +%{_kf5_libdir}/libKF5Wallet.so.* +%{_kf5_libdir}/libkwalletbackend5.so.* + +%files devel +%{_kf5_datadir}/dbus-1/interfaces/kf5_org.kde.KWallet.xml +%{_kf5_includedir}/kwallet_version.h +%{_kf5_includedir}/KWallet/ +%{_kf5_libdir}/cmake/KF5Wallet/ +%{_kf5_libdir}/libKF5Wallet.so +%{_kf5_libdir}/libkwalletbackend5.so +%{_kf5_archdatadir}/mkspecs/modules/qt_KWallet.pri + + +%changelog +* Mon Aug 17 2020 yeqinglong - 5.55.0-1 +- Initial release for OpenEuler + diff --git a/kf5-kwallet.yaml b/kf5-kwallet.yaml new file mode 100644 index 0000000000000000000000000000000000000000..22e48c33298fef89becbdb89cd30a4ce4107dcfa --- /dev/null +++ b/kf5-kwallet.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: KDE/kwallet +tag_prefix: "^v" +seperator: "." diff --git a/kwallet-5.55.0.tar.xz b/kwallet-5.55.0.tar.xz new file mode 100644 index 0000000000000000000000000000000000000000..cef6273cd584be9c8645922b45b200684454dbf2 Binary files /dev/null and b/kwallet-5.55.0.tar.xz differ