]>
Commit | Line | Data |
---|---|---|
0ee8916b ŁK |
1 | # |
2 | # Conditional build: | |
f9678f52 | 3 | %bcond_without apidocs # gi-docgen based API documentation |
5aa132e6 JB |
4 | %bcond_without static_libs # static library |
5 | %bcond_without tpm2 # TPM2 support | |
6 | %bcond_without vala # Vala API | |
d47464cd | 7 | |
0ee8916b | 8 | Summary: Library for storing and retrieving passwords and other secrets |
cb8187a5 | 9 | Summary(pl.UTF-8): Biblioteka do przechowywania i odczytu haseł oraz innych tajnych informacji |
0ee8916b | 10 | Name: libsecret |
5aa132e6 | 11 | Version: 0.20.5 |
da844fc8 | 12 | Release: 1 |
cb8187a5 | 13 | License: LGPL v2.1+ |
0ee8916b | 14 | Group: Libraries |
5aa132e6 JB |
15 | Source0: https://download.gnome.org/sources/libsecret/0.20/%{name}-%{version}.tar.xz |
16 | # Source0-md5: 5c9e5a011852c82fa9ed9e61ba91efb5 | |
29dfcbe1 | 17 | URL: https://wiki.gnome.org/Projects/Libsecret |
7e43fa5e | 18 | BuildRequires: gettext-tools >= 0.19.8 |
5aa132e6 | 19 | %{?with_apidocs:BuildRequires: gi-docgen >= 2021.7} |
cd978290 | 20 | BuildRequires: glib2-devel >= 1:2.44.0 |
0ee8916b | 21 | BuildRequires: gobject-introspection-devel >= 1.29 |
0ee8916b ŁK |
22 | BuildRequires: libgcrypt-devel >= 1.2.2 |
23 | BuildRequires: libxslt-progs | |
5aa132e6 JB |
24 | BuildRequires: meson >= 0.50 |
25 | BuildRequires: ninja >= 1.5 | |
0ee8916b | 26 | BuildRequires: pkgconfig |
5aa132e6 | 27 | BuildRequires: rpm-build >= 4.6 |
f9678f52 | 28 | BuildRequires: rpmbuild(macros) >= 2.029 |
5aa132e6 JB |
29 | BuildRequires: tar >= 1:1.22 |
30 | %{?with_tpm2:BuildRequires: tpm2-tss-devel >= 3.0.3} | |
0ee8916b | 31 | %{?with_vala:BuildRequires: vala >= 2:0.17.2.12} |
5aa132e6 | 32 | BuildRequires: xz |
cd978290 | 33 | Requires: glib2 >= 1:2.44.0 |
cb8187a5 | 34 | Requires: libgcrypt >= 1.2.2 |
0ee8916b ŁK |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
36 | ||
37 | %description | |
38 | libsecret is a library for storing and retrieving passwords and other | |
39 | secrets. It communicates with the "Secret Service" using DBus. | |
40 | gnome-keyring and KSecretService are both implementations of a Secret | |
41 | Service. | |
42 | ||
cb8187a5 JB |
43 | %description -l pl.UTF-8 |
44 | libsecret to biblioteka do przechowywania i odczytu haseł oraz innych | |
45 | tajnych informacji. Komunikuje się z usługą informacji tajnych | |
46 | ("Secret Service") poprzez DBus. Zarówno gnome-keyring, jak i | |
47 | KSecretService są implementacjami tej usługi. | |
48 | ||
0ee8916b ŁK |
49 | %package devel |
50 | Summary: Header files for libsecret library | |
51 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsecret | |
106f9fbc | 52 | Group: Development/Libraries |
cb8187a5 | 53 | Requires: %{name} = %{version}-%{release} |
81b9688b | 54 | Requires: glib2-devel >= 1:2.38.0 |
cb8187a5 | 55 | Requires: libgcrypt-devel >= 1.2.2 |
0ee8916b ŁK |
56 | |
57 | %description devel | |
58 | Header files for libsecret library. | |
59 | ||
60 | %description devel -l pl.UTF-8 | |
61 | Pliki nagłówkowe biblioteki libsecret. | |
62 | ||
63 | %package static | |
64 | Summary: Static libsecret library | |
65 | Summary(pl.UTF-8): Statyczna biblioteka libsecret | |
66 | Group: Development/Libraries | |
cb8187a5 | 67 | Requires: %{name}-devel = %{version}-%{release} |
0ee8916b ŁK |
68 | |
69 | %description static | |
0a0eeed2 | 70 | Static libsecret library. |
0ee8916b ŁK |
71 | |
72 | %description static -l pl.UTF-8 | |
73 | Statyczna biblioteka libsecret. | |
74 | ||
75 | %package apidocs | |
76 | Summary: libsecret API documentation | |
77 | Summary(pl.UTF-8): Dokumentacja API biblioteki libsecret | |
78 | Group: Documentation | |
d47464cd | 79 | BuildArch: noarch |
0ee8916b ŁK |
80 | |
81 | %description apidocs | |
82 | libsecret API documentation. | |
83 | ||
84 | %description apidocs -l pl.UTF-8 | |
85 | Dokumentacja API biblioteki libsecret. | |
86 | ||
87 | %package -n vala-libsecret | |
88 | Summary: libsecret API for Vala language | |
89 | Summary(pl.UTF-8): API libsecret dla języka Vala | |
90 | Group: Development/Libraries | |
cb8187a5 JB |
91 | Requires: %{name}-devel = %{version}-%{release} |
92 | Requires: vala >= 2:0.17.2.12 | |
999793b6 | 93 | BuildArch: noarch |
0ee8916b ŁK |
94 | |
95 | %description -n vala-libsecret | |
96 | libsecret API for Vala language. | |
97 | ||
98 | %description -n vala-libsecret -l pl.UTF-8 | |
99 | API libsecret dla języka Vala. | |
100 | ||
101 | %prep | |
102 | %setup -q | |
103 | ||
104 | %build | |
5aa132e6 JB |
105 | %meson build \ |
106 | %{!?with_static_libs:--default-library=shared} \ | |
107 | -Dbashcompdir=%{bash_compdir} \ | |
108 | %{!?with_apidocs:-Dgtk_doc=false} \ | |
109 | %{?with_tpm2:-Dtpm2=true} \ | |
110 | %{!?with_vala:-Dvapi=false} | |
111 | ||
112 | %ninja_build -C build | |
0ee8916b ŁK |
113 | |
114 | %install | |
115 | rm -rf $RPM_BUILD_ROOT | |
116 | ||
5aa132e6 JB |
117 | %ninja_install -C build |
118 | ||
119 | %if %{with apidocs} | |
f9678f52 JB |
120 | install -d $RPM_BUILD_ROOT%{_gidocdir} |
121 | %{__mv} $RPM_BUILD_ROOT%{_docdir}/libsecret-1 $RPM_BUILD_ROOT%{_gidocdir}/libsecret | |
5aa132e6 | 122 | %endif |
0ee8916b ŁK |
123 | |
124 | %find_lang libsecret | |
125 | ||
126 | %clean | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
cb8187a5 JB |
129 | %post -p /sbin/ldconfig |
130 | %postun -p /sbin/ldconfig | |
0ee8916b ŁK |
131 | |
132 | %files -f libsecret.lang | |
133 | %defattr(644,root,root,755) | |
5aa132e6 | 134 | %doc NEWS README.md |
0ee8916b ŁK |
135 | %attr(755,root,root) %{_bindir}/secret-tool |
136 | %attr(755,root,root) %{_libdir}/libsecret-1.so.*.*.* | |
137 | %attr(755,root,root) %ghost %{_libdir}/libsecret-1.so.0 | |
138 | %{_libdir}/girepository-1.0/Secret-1.typelib | |
0ee8916b ŁK |
139 | %{_mandir}/man1/secret-tool.1* |
140 | ||
141 | %files devel | |
142 | %defattr(644,root,root,755) | |
cb8187a5 | 143 | %attr(755,root,root) %{_libdir}/libsecret-1.so |
cb8187a5 | 144 | %{_includedir}/libsecret-1 |
0ee8916b ŁK |
145 | %{_pkgconfigdir}/libsecret-1.pc |
146 | %{_pkgconfigdir}/libsecret-unstable.pc | |
147 | %{_datadir}/gir-1.0/Secret-1.gir | |
0ee8916b ŁK |
148 | |
149 | %if %{with static_libs} | |
150 | %files static | |
151 | %defattr(644,root,root,755) | |
152 | %{_libdir}/libsecret-1.a | |
153 | %endif | |
154 | ||
155 | %if %{with apidocs} | |
156 | %files apidocs | |
157 | %defattr(644,root,root,755) | |
f9678f52 | 158 | %{_gidocdir}/%{name} |
0ee8916b ŁK |
159 | %endif |
160 | ||
161 | %if %{with vala} | |
162 | %files -n vala-libsecret | |
163 | %defattr(644,root,root,755) | |
164 | %{_datadir}/vala/vapi/libsecret-1.deps | |
165 | %{_datadir}/vala/vapi/libsecret-1.vapi | |
0ee8916b | 166 | %endif |