]>
Commit | Line | Data |
---|---|---|
ebb2a8ed JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_with gtk3 # use GTK+ 3.x instead of 2.x | |
4 | %bcond_with p11_tests # PKCS#11 tests | |
5 | # | |
6 | Summary: Keep passwords and other user's secrets | |
7 | Summary(pl.UTF-8): Przechowywanie haseł i innych tajnych danych użytkowników | |
8 | Name: mate-keyring | |
1a5fcafd | 9 | Version: 1.6.1 |
ebb2a8ed JB |
10 | Release: 1 |
11 | License: LGPL v2+ (library), GPL v2+ (programs) | |
12 | Group: X11/Applications | |
13 | Source0: http://pub.mate-desktop.org/releases/1.6/%{name}-%{version}.tar.xz | |
1a5fcafd | 14 | # Source0-md5: 3691d4d42ce7db525e6374b1e6505677 |
ebb2a8ed JB |
15 | Patch0: %{name}-doc.patch |
16 | Patch1: %{name}-names.patch | |
17 | URL: http://mate-desktop.org/ | |
18 | BuildRequires: autoconf >= 2.53 | |
19 | BuildRequires: automake >= 1:1.9 | |
20 | BuildRequires: dbus-devel >= 1.0 | |
21 | BuildRequires: docbook-dtd412-xml | |
22 | BuildRequires: gettext-devel >= 0.10.40 | |
23 | BuildRequires: glib2-devel >= 1:2.26.0 | |
24 | %{!?with_gtk3:BuildRequires: gtk+2-devel >= 2:2.20.0} | |
25 | %{?with_gtk3:BuildRequires: gtk+3-devel >= 3.0.0} | |
26 | BuildRequires: gtk-doc >= 1.9 | |
27 | BuildRequires: intltool >= 0.35.0 | |
28 | BuildRequires: libcap-devel >= 2 | |
29 | BuildRequires: libgcrypt-devel >= 1.2.2 | |
30 | # actually not used, only checks and includes exist | |
31 | BuildRequires: libtasn1-devel >= 0.3.4 | |
32 | BuildRequires: libtool >= 1:1.4.3 | |
33 | %{?with_p11_tests:BuildRequires: p11-tests-devel >= 0.1} | |
34 | BuildRequires: pam-devel | |
35 | BuildRequires: pkgconfig | |
36 | BuildRequires: rpmbuild(macros) >= 1.592 | |
37 | BuildRequires: tar >= 1:1.22 | |
38 | BuildRequires: xz | |
39 | Requires(post,postun): glib2 >= 1:2.26.0 | |
40 | Requires: dbus >= 1.0 | |
41 | Requires: filesystem >= 4.0-28 | |
42 | Requires: libgcrypt >= 1.2.2 | |
43 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
44 | ||
45 | %define _libexecdir %{_libdir}/%{name} | |
46 | ||
47 | %description | |
48 | mate-keyring is a program that keeps password and other secrets for | |
49 | users. It is run as a daemon in the session, similar to ssh-agent, and | |
50 | other applications can locate it by an environment variable or DBus. | |
51 | ||
52 | %description -l pl.UTF-8 | |
53 | mate-keyring to program do przechowywania haseł i innych tajnych | |
54 | danych użytkowników. Działa jako demon w sesji, podobnie do | |
55 | ssh-agenta, a inne aplikacje mogą znaleźć go poprzez zmienną | |
56 | środowiskową lub DBus. | |
57 | ||
58 | %package libs | |
59 | Summary: MATE keyring libraries | |
60 | Summary(pl.UTF-8): Biblioteki MATE keyring | |
61 | License: LGPL v2+ | |
62 | Group: X11/Libraries | |
63 | Requires: glib2 >= 1:2.26.0 | |
64 | %{!?with_gtk3:Requires: gtk+2 >= 2:2.20.0} | |
65 | %{?with_gtk3:Requires: gtk+3 >= 3.0.0} | |
66 | Requires: libtasn1 >= 0.3.4 | |
67 | ||
68 | %description libs | |
69 | MATE keyring library. | |
70 | ||
71 | %description libs -l pl.UTF-8 | |
72 | Biblioteka MATE keyring. | |
73 | ||
74 | %package devel | |
75 | Summary: Header files for MATE keyring libraries | |
76 | Summary(pl.UTF-8): Pliki nagłówkowe bibliotek MATE keyring | |
77 | License: LGPL v2+ | |
78 | Group: X11/Development/Libraries | |
79 | Requires: %{name}-libs = %{version}-%{release} | |
80 | Requires: glib2-devel >= 1:2.26.0 | |
81 | %{!?with_gtk3:Requires: gtk+2-devel >= 2:2.20.0} | |
82 | %{?with_gtk3:Requires: gtk+3-devel >= 3.0.0} | |
83 | Requires: libtasn1-devel >= 0.3.4 | |
84 | ||
85 | %description devel | |
86 | Header files for MATE keyring libraries. | |
87 | ||
88 | %description devel -l pl.UTF-8 | |
89 | Pliki nagłówkowe bibliotek MATE keyring. | |
90 | ||
91 | %package apidocs | |
92 | Summary: MATE keyring API documentation | |
93 | Summary(pl.UTF-8): Dokumentacja API MATE keyring | |
94 | License: LGPL v2+ | |
95 | Group: Documentation | |
96 | Requires: gtk-doc-common | |
97 | ||
98 | %description apidocs | |
99 | MATE keyring API documentation. | |
100 | ||
101 | %description apidocs -l pl.UTF-8 | |
102 | Dokumentacja API MATE keyring. | |
103 | ||
104 | %package -n pam-pam_mate_keyring | |
105 | Summary: A PAM module for unlocking keyrings at login time | |
106 | Summary(pl.UTF-8): Moduł PAM do odblokowywania zbiorów kluczy w czasie logowania | |
107 | License: LGPL v2+ | |
108 | Group: Libraries | |
109 | Requires: %{name} = %{version}-%{release} | |
110 | Obsoletes: mate-keyring-pam | |
111 | ||
112 | %description -n pam-pam_mate_keyring | |
113 | A PAM module that can automatically unlock the "login" keyring when | |
114 | the user logs in and start the keyring daemon. | |
115 | ||
116 | %description -n pam-pam_mate_keyring -l pl.UTF-8 | |
117 | Moduł PAM, który może automatycznie odblokowywać zbiór kluczy "login" | |
118 | w czasie logowania użytkownika i uruchamiania demona keyring. | |
119 | ||
120 | %prep | |
121 | %setup -q | |
122 | %patch0 -p1 | |
123 | %patch1 -p1 | |
124 | ||
125 | %build | |
126 | %{__gtkdocize} | |
127 | %{__glib_gettextize} | |
128 | %{__intltoolize} | |
129 | %{__libtoolize} | |
130 | %{__aclocal} | |
131 | %{__autoconf} | |
132 | %{__autoheader} | |
133 | %{__automake} | |
134 | %configure \ | |
135 | --disable-silent-rules \ | |
136 | --enable-gtk-doc \ | |
137 | %{!?with_p11_tests:--disable-p11-tests} \ | |
138 | %{?with_gtk3:--with-gtk=3.0} \ | |
139 | --with-html-dir=%{_gtkdocdir} \ | |
140 | --with-pam-dir=/%{_lib}/security \ | |
141 | --with-root-certs=%{_sysconfdir}/certs | |
142 | %{__make} | |
143 | ||
144 | %install | |
145 | rm -rf $RPM_BUILD_ROOT | |
146 | ||
147 | %{__make} install install-pam \ | |
148 | DESTDIR=$RPM_BUILD_ROOT | |
149 | ||
150 | # obsoleted by pkg-config | |
151 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/lib*.la | |
152 | # dlopened modules | |
153 | %{__rm} $RPM_BUILD_ROOT/%{_lib}/security/pam_mate_keyring.la | |
154 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/mate-keyring/{devel,standalone}/*.la | |
155 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/pkcs11/mate-keyring-pkcs11.la | |
156 | ||
157 | # mate < 1.5 did not exist in pld, avoid dependency on mate-conf | |
158 | %{__rm} $RPM_BUILD_ROOT%{_datadir}/MateConf/gsettings/org.mate.crypto.*.convert | |
159 | ||
160 | %find_lang %{name} | |
161 | ||
162 | %clean | |
163 | rm -rf $RPM_BUILD_ROOT | |
164 | ||
165 | %posttrans | |
166 | %glib_compile_schemas | |
167 | ||
168 | %postun | |
169 | if [ "$1" = "0" ]; then | |
170 | %glib_compile_schemas | |
171 | fi | |
172 | ||
173 | %post libs -p /sbin/ldconfig | |
174 | %postun libs -p /sbin/ldconfig | |
175 | ||
176 | %files -f %{name}.lang | |
177 | %defattr(644,root,root,755) | |
178 | %doc AUTHORS ChangeLog NEWS README | |
179 | %attr(755,root,root) %{_bindir}/mate-keyring | |
180 | %attr(755,root,root) %{_bindir}/mate-keyring-daemon | |
181 | %dir %{_libdir}/%{name} | |
182 | %attr(755,root,root) %{_libexecdir}/mate-keyring-prompt | |
183 | %dir %{_libdir}/%{name}/devel | |
184 | %attr(755,root,root) %{_libdir}/%{name}/devel/gkm-mate2-store-standalone.so | |
185 | %attr(755,root,root) %{_libdir}/%{name}/devel/gkm-roots-store-standalone.so | |
186 | %attr(755,root,root) %{_libdir}/%{name}/devel/gkm-ssh-store-standalone.so | |
187 | %attr(755,root,root) %{_libdir}/%{name}/devel/gkm-xdg-store-standalone.so | |
188 | %dir %{_libdir}/%{name}/standalone | |
189 | %attr(755,root,root) %{_libdir}/%{name}/standalone/gkm-secret-store-standalone.so | |
190 | %attr(755,root,root) %{_libdir}/pkcs11/mate-keyring-pkcs11.so | |
191 | %{_sysconfdir}/xdg/autostart/mate-keyring-gpg.desktop | |
192 | %{_sysconfdir}/xdg/autostart/mate-keyring-pkcs11.desktop | |
193 | %{_sysconfdir}/xdg/autostart/mate-keyring-secrets.desktop | |
194 | %{_sysconfdir}/xdg/autostart/mate-keyring-ssh.desktop | |
195 | %{_datadir}/dbus-1/services/org.mate-freedesktop.secrets.service | |
196 | %{_datadir}/dbus-1/services/org.mate.keyring.service | |
197 | %{_datadir}/glib-2.0/schemas/org.mate.crypto.*.gschema.xml | |
198 | %{_datadir}/mate-keyring | |
199 | %{_datadir}/mategcr | |
1a5fcafd JB |
200 | %{_mandir}/man1/mate-keyring.1* |
201 | %{_mandir}/man1/mate-keyring-daemon.1* | |
ebb2a8ed JB |
202 | |
203 | %files libs | |
204 | %defattr(644,root,root,755) | |
205 | %attr(755,root,root) %{_libdir}/libmategck.so.*.*.* | |
206 | %attr(755,root,root) %ghost %{_libdir}/libmategck.so.0 | |
207 | %attr(755,root,root) %{_libdir}/libmategcr.so.*.*.* | |
208 | %attr(755,root,root) %ghost %{_libdir}/libmategcr.so.0 | |
209 | ||
210 | %files devel | |
211 | %defattr(644,root,root,755) | |
212 | %attr(755,root,root) %{_libdir}/libmategck.so | |
213 | %attr(755,root,root) %{_libdir}/libmategcr.so | |
214 | %{_includedir}/mate-gck | |
215 | %{_includedir}/mategcr | |
216 | %{_pkgconfigdir}/mate-gck-0.pc | |
217 | %{_pkgconfigdir}/mate-gcr-0.pc | |
218 | ||
219 | %files apidocs | |
220 | %defattr(644,root,root,755) | |
221 | %{_gtkdocdir}/mate-gck | |
222 | %{_gtkdocdir}/mate-gcr-0 | |
223 | ||
224 | %files -n pam-pam_mate_keyring | |
225 | %defattr(644,root,root,755) | |
226 | %attr(755,root,root) /%{_lib}/security/pam_mate_keyring.so |