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

Last change on this file since 1737 was 1737, checked in by tellie, 5 years ago

spec: lxqt-wallet: Release version 3.2.1-2.

File size: 2.9 KB
Line 
1%global srcname lxqt_wallet
2
3Name: %(echo %{srcname} |tr _ - )
4Version: 3.2.1
5Release: 2%{?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}
44Requires: liblxqt-devel%{?_isa}
45
46%description devel
47%{summary}.
48
49
50%prep
51%if !0%{?os2_version}
52%autosetup -n%{srcname}-%{version}
53%else
54%scm_setup
55%endif
56cp -p backend/README README-backend
57cp -p frontend/README README-frontend
58
59%build
60%if !0%{?os2_version}
61mkdir -p %{_target_platform}
62pushd %{_target_platform}
63%else
64mkdir builder
65cd builder
66
67export LDFLAGS="-Zhigh-mem -Zomf -Zargs-wild -Zargs-resp"
68export LIBS="-lcx -lintl8_dll"
69%endif
70
71%if !0%{?os2_version}
72%cmake_lxqt \
73%else
74%cmake \
75 -DCMAKE_BUILD_TYPE=Release \
76 -DQT5=true \
77 -DLIB_SUFFIX=default \
78 -DNOKDESUPPORT=true \
79 -DNOSECRETSUPPORT=false \
80 -DBUILD_SHARED=true \
81 ..
82%endif
83
84%if !0%{?os2_version}
85%make_build -C %{_target_platform}
86popd
87%else
88make %{?_smp_mflags}
89%endif
90
91%install
92%if !0%{?os2_version}
93%make_install -C %{_target_platform}
94%else
95%make_install -C builder
96%endif
97%find_lang %{name} --with-qt
98install -p -m 644 builder/frontend/lxqt-wallet_dll.a %{buildroot}%{_libdir}/
99
100%if !0%{?os2_version}
101%ldconfig_scriptlets
102%endif
103
104%files -f %{name}.lang
105%license LICENSE
106%doc README.md changelog
107%if !0%{?os2_version}
108%{_bindir}/%{srcname}-cli
109%else
110%{_bindir}/%{srcname}-cli.exe
111%endif
112%if !0%{?os2_version}
113%{_libdir}/*.so.*
114%else
115%{_libdir}/*.dll
116%endif
117
118%files devel
119%doc README-*
120%{_includedir}/lxqt/*.h
121%if !0%{?os2_version}
122%{_libdir}/*.so
123%else
124%{_libdir}/*.a
125%endif
126%{_libdir}/pkgconfig/*.pc
127
128
129%changelog
130* Sat Nov 28 2020 Elbert Pol <elbert.pol@gmail.com> - 3.2.1 - 2
131- By mistake i build it with debug dlls
132
133* Fri Nov 27 2020 Elbert Pol <elbert.pol@gmail.com> - 3.2.1 - 1
134- First rpm build OS2
Note: See TracBrowser for help on using the repository browser.