| 1 | %global srcname lxqt_wallet
|
|---|
| 2 |
|
|---|
| 3 | Name: %(echo %{srcname} |tr _ - )
|
|---|
| 4 | Version: 3.2.2
|
|---|
| 5 | Release: 1%{?dist}
|
|---|
| 6 | Summary: Create a kwallet like functionality for LXQt
|
|---|
| 7 |
|
|---|
| 8 | License: BSD
|
|---|
| 9 | URL: https://github.com/mhogomchungu/%{srcname}
|
|---|
| 10 | %if !0%{?os2_version}
|
|---|
| 11 | Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
|
|---|
| 12 | %else
|
|---|
| 13 | %scm_source github http://github.com/Tellie/lxqt-wallet-os2 %{version}-os2
|
|---|
| 14 | %endif
|
|---|
| 15 | BuildRequires: gcc-c++
|
|---|
| 16 |
|
|---|
| 17 | %if !0%{?os2_version}
|
|---|
| 18 | BuildRequires: pkgconfig(lxqt)
|
|---|
| 19 | BuildRequires: cmake(KF5Wallet)
|
|---|
| 20 | BuildRequires: cmake(KF5Notifications)
|
|---|
| 21 | BuildRequires: pkgconfig(libsecret-1)
|
|---|
| 22 | %endif
|
|---|
| 23 | BuildRequires: libgcrypt-devel
|
|---|
| 24 | BuildRequires: qt5-linguist
|
|---|
| 25 |
|
|---|
| 26 | %description
|
|---|
| 27 | This project seeks to give a functionality for secure storage
|
|---|
| 28 | of information that can be presented in key-values pair like
|
|---|
| 29 | user names-passwords pairs.
|
|---|
| 30 |
|
|---|
| 31 | Currently the project can store the information in KDE's kwallet,
|
|---|
| 32 | GNOME's secret service or in an internal system that use libgcrypt
|
|---|
| 33 | as its cryptographic backend.
|
|---|
| 34 |
|
|---|
| 35 | The internal secure storage system allows the functionality to
|
|---|
| 36 | be provided without dependencies on KDE or GNOME libraries.
|
|---|
| 37 |
|
|---|
| 38 | This project is designed to be used by other projects simply by
|
|---|
| 39 | adding the source folder in the build system and start using it.
|
|---|
| 40 |
|
|---|
| 41 | %package devel
|
|---|
| 42 | Summary: Development files for %{name}
|
|---|
| 43 | Requires: %{name}%{?_isa} = %{version}-%{release}
|
|---|
| 44 | %if !0%{?os2_version}
|
|---|
| 45 | Requires: liblxqt-devel%{?_isa}
|
|---|
| 46 | %endif
|
|---|
| 47 |
|
|---|
| 48 | %description devel
|
|---|
| 49 | %{summary}.
|
|---|
| 50 |
|
|---|
| 51 |
|
|---|
| 52 | %prep
|
|---|
| 53 | %if !0%{?os2_version}
|
|---|
| 54 | %autosetup -n%{srcname}-%{version}
|
|---|
| 55 | %else
|
|---|
| 56 | %scm_setup
|
|---|
| 57 | %endif
|
|---|
| 58 | cp -p backend/README README-backend
|
|---|
| 59 | cp -p frontend/README README-frontend
|
|---|
| 60 |
|
|---|
| 61 | %build
|
|---|
| 62 | %if !0%{?os2_version}
|
|---|
| 63 | mkdir -p %{_target_platform}
|
|---|
| 64 | pushd %{_target_platform}
|
|---|
| 65 | %else
|
|---|
| 66 | mkdir builder
|
|---|
| 67 | cd builder
|
|---|
| 68 |
|
|---|
| 69 | export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
|
|---|
| 70 | export LIBS="-lcx -lintl8_dll"
|
|---|
| 71 | %endif
|
|---|
| 72 |
|
|---|
| 73 | %if !0%{?os2_version}
|
|---|
| 74 | %cmake_lxqt \
|
|---|
| 75 | %else
|
|---|
| 76 | %cmake \
|
|---|
| 77 | -DCMAKE_BUILD_TYPE=Release \
|
|---|
| 78 | -DQT5=true \
|
|---|
| 79 | -DLIB_SUFFIX=default \
|
|---|
| 80 | -DNOKDESUPPORT=true \
|
|---|
| 81 | -DNOSECRETSUPPORT=false \
|
|---|
| 82 | -DBUILD_SHARED=true \
|
|---|
| 83 | ..
|
|---|
| 84 | %endif
|
|---|
| 85 |
|
|---|
| 86 | %if !0%{?os2_version}
|
|---|
| 87 | %make_build -C %{_target_platform}
|
|---|
| 88 | popd
|
|---|
| 89 | %else
|
|---|
| 90 | make %{?_smp_mflags}
|
|---|
| 91 | %endif
|
|---|
| 92 |
|
|---|
| 93 | %install
|
|---|
| 94 | %if !0%{?os2_version}
|
|---|
| 95 | %make_install -C %{_target_platform}
|
|---|
| 96 | %else
|
|---|
| 97 | %make_install -C builder
|
|---|
| 98 | %endif
|
|---|
| 99 | %find_lang %{name} --with-qt
|
|---|
| 100 | install -p -m 644 builder/frontend/lxqt-wallet_dll.a %{buildroot}%{_libdir}/
|
|---|
| 101 |
|
|---|
| 102 | %if !0%{?os2_version}
|
|---|
| 103 | %ldconfig_scriptlets
|
|---|
| 104 | %endif
|
|---|
| 105 |
|
|---|
| 106 | %files -f %{name}.lang
|
|---|
| 107 | %license LICENSE
|
|---|
| 108 | %doc README.md changelog
|
|---|
| 109 | %if !0%{?os2_version}
|
|---|
| 110 | %{_bindir}/%{srcname}-cli
|
|---|
| 111 | %else
|
|---|
| 112 | %{_bindir}/%{srcname}-cli.exe
|
|---|
| 113 | %endif
|
|---|
| 114 | %if !0%{?os2_version}
|
|---|
| 115 | %{_libdir}/*.so.*
|
|---|
| 116 | %else
|
|---|
| 117 | %{_libdir}/*.dll
|
|---|
| 118 | %endif
|
|---|
| 119 |
|
|---|
| 120 | %files devel
|
|---|
| 121 | %doc README-*
|
|---|
| 122 | %{_includedir}/lxqt/*.h
|
|---|
| 123 | %if !0%{?os2_version}
|
|---|
| 124 | %{_libdir}/*.so
|
|---|
| 125 | %else
|
|---|
| 126 | %{_libdir}/*.a
|
|---|
| 127 | %endif
|
|---|
| 128 | %{_libdir}/pkgconfig/*.pc
|
|---|
| 129 |
|
|---|
| 130 |
|
|---|
| 131 | %changelog
|
|---|
| 132 | * Sun Oct 10 2021 Elbert Pol <elbert.pol@gmail.com> - 3.2.2 - 1
|
|---|
| 133 | - Updated to latest version
|
|---|
| 134 |
|
|---|
| 135 | * Sun Nov 29 2020 Elbert Pol <elbert.pol@gmail.com> - 3.2.1 - 3
|
|---|
| 136 | - Forget to disable a Requires
|
|---|
| 137 |
|
|---|
| 138 | * Sat Nov 28 2020 Elbert Pol <elbert.pol@gmail.com> - 3.2.1 - 2
|
|---|
| 139 | - By mistake i build it with debug dlls
|
|---|
| 140 |
|
|---|
| 141 | * Fri Nov 27 2020 Elbert Pol <elbert.pol@gmail.com> - 3.2.1 - 1
|
|---|
| 142 | - First rpm build OS2
|
|---|