source: spec/trunk/SPECS/lxqt-wallet.spec@ 1808

Last change on this file since 1808 was 1786, checked in by tellie, 4 years ago

spec: lxqt-wallet: Release version 3.2.2-1.

File size: 3.1 KB
Line 
1%global srcname lxqt_wallet
2
3Name: %(echo %{srcname} |tr _ - )
4Version: 3.2.2
5Release: 1%{?dist}
6Summary: Create a kwallet like functionality for LXQt
7
8License: BSD
9URL: https://github.com/mhogomchungu/%{srcname}
10%if !0%{?os2_version}
11Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
12%else
13%scm_source github http://github.com/Tellie/lxqt-wallet-os2 %{version}-os2
14%endif
15BuildRequires: gcc-c++
16
17%if !0%{?os2_version}
18BuildRequires: pkgconfig(lxqt)
19BuildRequires: cmake(KF5Wallet)
20BuildRequires: cmake(KF5Notifications)
21BuildRequires: pkgconfig(libsecret-1)
22%endif
23BuildRequires: libgcrypt-devel
24BuildRequires: qt5-linguist
25
26%description
27This project seeks to give a functionality for secure storage
28of information that can be presented in key-values pair like
29user names-passwords pairs.
30
31Currently the project can store the information in KDE's kwallet,
32GNOME's secret service or in an internal system that use libgcrypt
33as its cryptographic backend.
34
35The internal secure storage system allows the functionality to
36be provided without dependencies on KDE or GNOME libraries.
37
38This project is designed to be used by other projects simply by
39adding the source folder in the build system and start using it.
40
41%package devel
42Summary: Development files for %{name}
43Requires: %{name}%{?_isa} = %{version}-%{release}
44%if !0%{?os2_version}
45Requires: 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
58cp -p backend/README README-backend
59cp -p frontend/README README-frontend
60
61%build
62%if !0%{?os2_version}
63mkdir -p %{_target_platform}
64pushd %{_target_platform}
65%else
66mkdir builder
67cd builder
68
69export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
70export 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}
88popd
89%else
90make %{?_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
100install -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
Note: See TracBrowser for help on using the repository browser.