]>
Commit | Line | Data |
---|---|---|
0ee8916b ŁK |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # disable gtk-doc | |
4 | %bcond_without static_libs # don't build static library | |
5 | %bcond_without vala # do not build Vala API | |
6 | # | |
7 | Summary: Library for storing and retrieving passwords and other secrets | |
8 | Name: libsecret | |
06862596 MB |
9 | Version: 0.11 |
10 | Release: 1 | |
0ee8916b ŁK |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libsecret/0.10/%{name}-%{version}.tar.xz | |
06862596 | 14 | # Source0-md5: 8e8b72fdbdafbb54381b7a0085be9b0c |
0ee8916b ŁK |
15 | URL: https://live.gnome.org/Libsecret |
16 | BuildRequires: glib2-devel >= 2.31.0 | |
17 | BuildRequires: gobject-introspection-devel >= 1.29 | |
18 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} | |
19 | BuildRequires: libgcrypt-devel >= 1.2.2 | |
20 | BuildRequires: libxslt-progs | |
21 | BuildRequires: pkgconfig | |
22 | %{?with_vala:BuildRequires: vala >= 2:0.17.2.12} | |
23 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
24 | ||
25 | %description | |
26 | libsecret is a library for storing and retrieving passwords and other | |
27 | secrets. It communicates with the "Secret Service" using DBus. | |
28 | gnome-keyring and KSecretService are both implementations of a Secret | |
29 | Service. | |
30 | ||
31 | %package devel | |
32 | Summary: Header files for libsecret library | |
33 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libsecret | |
106f9fbc | 34 | Group: Development/Libraries |
0ee8916b ŁK |
35 | Requires: %{name} = %{epoch}:%{version}-%{release} |
36 | ||
37 | %description devel | |
38 | Header files for libsecret library. | |
39 | ||
40 | %description devel -l pl.UTF-8 | |
41 | Pliki nagłówkowe biblioteki libsecret. | |
42 | ||
43 | %package static | |
44 | Summary: Static libsecret library | |
45 | Summary(pl.UTF-8): Statyczna biblioteka libsecret | |
46 | Group: Development/Libraries | |
47 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
48 | ||
49 | %description static | |
0a0eeed2 | 50 | Static libsecret library. |
0ee8916b ŁK |
51 | |
52 | %description static -l pl.UTF-8 | |
53 | Statyczna biblioteka libsecret. | |
54 | ||
55 | %package apidocs | |
56 | Summary: libsecret API documentation | |
57 | Summary(pl.UTF-8): Dokumentacja API biblioteki libsecret | |
58 | Group: Documentation | |
59 | ||
60 | %description apidocs | |
61 | libsecret API documentation. | |
62 | ||
63 | %description apidocs -l pl.UTF-8 | |
64 | Dokumentacja API biblioteki libsecret. | |
65 | ||
66 | %package -n vala-libsecret | |
67 | Summary: libsecret API for Vala language | |
68 | Summary(pl.UTF-8): API libsecret dla języka Vala | |
69 | Group: Development/Libraries | |
70 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
71 | ||
72 | %description -n vala-libsecret | |
73 | libsecret API for Vala language. | |
74 | ||
75 | %description -n vala-libsecret -l pl.UTF-8 | |
76 | API libsecret dla języka Vala. | |
77 | ||
78 | %prep | |
79 | %setup -q | |
80 | ||
81 | %build | |
82 | %configure \ | |
83 | --disable-silent-rules \ | |
84 | %{__enable_disable static_libs static} \ | |
85 | %{__enable_disable apidocs gtk-doc} \ | |
86 | %{__enable_disable vala vala} \ | |
87 | --with-html-dir=%{_gtkdocdir}/%{name} | |
88 | %{__make} | |
89 | ||
90 | %install | |
91 | rm -rf $RPM_BUILD_ROOT | |
92 | ||
93 | %{__make} install \ | |
94 | DESTDIR=$RPM_BUILD_ROOT | |
95 | ||
96 | %find_lang libsecret | |
97 | ||
98 | %clean | |
99 | rm -rf $RPM_BUILD_ROOT | |
100 | ||
101 | %post -p /sbin/ldconfig | |
102 | ||
103 | %postun -p /sbin/ldconfig | |
104 | ||
105 | %files -f libsecret.lang | |
106 | %defattr(644,root,root,755) | |
107 | %doc AUTHORS COPYING NEWS README | |
108 | %attr(755,root,root) %{_bindir}/secret-tool | |
109 | %attr(755,root,root) %{_libdir}/libsecret-1.so.*.*.* | |
110 | %attr(755,root,root) %ghost %{_libdir}/libsecret-1.so.0 | |
111 | %{_libdir}/girepository-1.0/Secret-1.typelib | |
112 | %{_libdir}/girepository-1.0/SecretUnstable-0.typelib | |
113 | %{_mandir}/man1/secret-tool.1* | |
114 | ||
115 | %files devel | |
116 | %defattr(644,root,root,755) | |
117 | %{_includedir}/libsecret-1/ | |
118 | %{_libdir}/libsecret-1.so | |
119 | %{_libdir}/libsecret-1.la | |
120 | %{_pkgconfigdir}/libsecret-1.pc | |
121 | %{_pkgconfigdir}/libsecret-unstable.pc | |
122 | %{_datadir}/gir-1.0/Secret-1.gir | |
123 | %{_datadir}/gir-1.0/SecretUnstable-0.gir | |
124 | ||
125 | %if %{with static_libs} | |
126 | %files static | |
127 | %defattr(644,root,root,755) | |
128 | %{_libdir}/libsecret-1.a | |
129 | %endif | |
130 | ||
131 | %if %{with apidocs} | |
132 | %files apidocs | |
133 | %defattr(644,root,root,755) | |
134 | %{_gtkdocdir}/%{name} | |
135 | %endif | |
136 | ||
137 | %if %{with vala} | |
138 | %files -n vala-libsecret | |
139 | %defattr(644,root,root,755) | |
140 | %{_datadir}/vala/vapi/libsecret-1.deps | |
141 | %{_datadir}/vala/vapi/libsecret-1.vapi | |
142 | %{_datadir}/vala/vapi/libsecret-unstable.deps | |
143 | %{_datadir}/vala/vapi/libsecret-unstable.vapi | |
144 | %{_datadir}/vala/vapi/mock-service-0.vapi | |
145 | %endif |