%global srcname lxqt_wallet Name: %(echo %{srcname} |tr _ - ) Version: 3.2.2 Release: 1%{?dist} Summary: Create a kwallet like functionality for LXQt License: BSD URL: https://github.com/mhogomchungu/%{srcname} %if !0%{?os2_version} Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz %else %scm_source github http://github.com/Tellie/lxqt-wallet-os2 %{version}-os2 %endif BuildRequires: gcc-c++ %if !0%{?os2_version} BuildRequires: pkgconfig(lxqt) BuildRequires: cmake(KF5Wallet) BuildRequires: cmake(KF5Notifications) BuildRequires: pkgconfig(libsecret-1) %endif BuildRequires: libgcrypt-devel BuildRequires: qt5-linguist %description This project seeks to give a functionality for secure storage of information that can be presented in key-values pair like user names-passwords pairs. Currently the project can store the information in KDE's kwallet, GNOME's secret service or in an internal system that use libgcrypt as its cryptographic backend. The internal secure storage system allows the functionality to be provided without dependencies on KDE or GNOME libraries. This project is designed to be used by other projects simply by adding the source folder in the build system and start using it. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %if !0%{?os2_version} Requires: liblxqt-devel%{?_isa} %endif %description devel %{summary}. %prep %if !0%{?os2_version} %autosetup -n%{srcname}-%{version} %else %scm_setup %endif cp -p backend/README README-backend cp -p frontend/README README-frontend %build %if !0%{?os2_version} mkdir -p %{_target_platform} pushd %{_target_platform} %else mkdir builder cd builder export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp" export LIBS="-lcx -lintl8_dll" %endif %if !0%{?os2_version} %cmake_lxqt \ %else %cmake \ -DCMAKE_BUILD_TYPE=Release \ -DQT5=true \ -DLIB_SUFFIX=default \ -DNOKDESUPPORT=true \ -DNOSECRETSUPPORT=false \ -DBUILD_SHARED=true \ .. %endif %if !0%{?os2_version} %make_build -C %{_target_platform} popd %else make %{?_smp_mflags} %endif %install %if !0%{?os2_version} %make_install -C %{_target_platform} %else %make_install -C builder %endif %find_lang %{name} --with-qt install -p -m 644 builder/frontend/lxqt-wallet_dll.a %{buildroot}%{_libdir}/ %if !0%{?os2_version} %ldconfig_scriptlets %endif %files -f %{name}.lang %license LICENSE %doc README.md changelog %if !0%{?os2_version} %{_bindir}/%{srcname}-cli %else %{_bindir}/%{srcname}-cli.exe %endif %if !0%{?os2_version} %{_libdir}/*.so.* %else %{_libdir}/*.dll %endif %files devel %doc README-* %{_includedir}/lxqt/*.h %if !0%{?os2_version} %{_libdir}/*.so %else %{_libdir}/*.a %endif %{_libdir}/pkgconfig/*.pc %changelog * Sun Oct 10 2021 Elbert Pol - 3.2.2 - 1 - Updated to latest version * Sun Nov 29 2020 Elbert Pol - 3.2.1 - 3 - Forget to disable a Requires * Sat Nov 28 2020 Elbert Pol - 3.2.1 - 2 - By mistake i build it with debug dlls * Fri Nov 27 2020 Elbert Pol - 3.2.1 - 1 - First rpm build OS2