]>
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 | |
9 | Version: 0.10 | |
10 | Release: 1 | |
11 | License: LGPL v2+ | |
12 | Group: Libraries | |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libsecret/0.10/%{name}-%{version}.tar.xz | |
14 | # Source0-md5: 51058dc16fd8f895523545187cf6f720 | |
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 | |
34 | Requires: %{name} = %{epoch}:%{version}-%{release} | |
35 | ||
36 | %description devel | |
37 | Header files for libsecret library. | |
38 | ||
39 | %description devel -l pl.UTF-8 | |
40 | Pliki nagłówkowe biblioteki libsecret. | |
41 | ||
42 | %package static | |
43 | Summary: Static libsecret library | |
44 | Summary(pl.UTF-8): Statyczna biblioteka libsecret | |
45 | Group: Development/Libraries | |
46 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
47 | ||
48 | %description static | |
49 | Static libburn libsecret. | |
50 | ||
51 | %description static -l pl.UTF-8 | |
52 | Statyczna biblioteka libsecret. | |
53 | ||
54 | %package apidocs | |
55 | Summary: libsecret API documentation | |
56 | Summary(pl.UTF-8): Dokumentacja API biblioteki libsecret | |
57 | Group: Documentation | |
58 | ||
59 | %description apidocs | |
60 | libsecret API documentation. | |
61 | ||
62 | %description apidocs -l pl.UTF-8 | |
63 | Dokumentacja API biblioteki libsecret. | |
64 | ||
65 | %package -n vala-libsecret | |
66 | Summary: libsecret API for Vala language | |
67 | Summary(pl.UTF-8): API libsecret dla języka Vala | |
68 | Group: Development/Libraries | |
69 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} | |
70 | ||
71 | %description -n vala-libsecret | |
72 | libsecret API for Vala language. | |
73 | ||
74 | %description -n vala-libsecret -l pl.UTF-8 | |
75 | API libsecret dla języka Vala. | |
76 | ||
77 | %prep | |
78 | %setup -q | |
79 | ||
80 | %build | |
81 | %configure \ | |
82 | --disable-silent-rules \ | |
83 | %{__enable_disable static_libs static} \ | |
84 | %{__enable_disable apidocs gtk-doc} \ | |
85 | %{__enable_disable vala vala} \ | |
86 | --with-html-dir=%{_gtkdocdir}/%{name} | |
87 | %{__make} | |
88 | ||
89 | %install | |
90 | rm -rf $RPM_BUILD_ROOT | |
91 | ||
92 | %{__make} install \ | |
93 | DESTDIR=$RPM_BUILD_ROOT | |
94 | ||
95 | %find_lang libsecret | |
96 | ||
97 | %clean | |
98 | rm -rf $RPM_BUILD_ROOT | |
99 | ||
100 | %post -p /sbin/ldconfig | |
101 | ||
102 | %postun -p /sbin/ldconfig | |
103 | ||
104 | %files -f libsecret.lang | |
105 | %defattr(644,root,root,755) | |
106 | %doc AUTHORS COPYING NEWS README | |
107 | %attr(755,root,root) %{_bindir}/secret-tool | |
108 | %attr(755,root,root) %{_libdir}/libsecret-1.so.*.*.* | |
109 | %attr(755,root,root) %ghost %{_libdir}/libsecret-1.so.0 | |
110 | %{_libdir}/girepository-1.0/Secret-1.typelib | |
111 | %{_libdir}/girepository-1.0/SecretUnstable-0.typelib | |
112 | %{_mandir}/man1/secret-tool.1* | |
113 | ||
114 | %files devel | |
115 | %defattr(644,root,root,755) | |
116 | %{_includedir}/libsecret-1/ | |
117 | %{_libdir}/libsecret-1.so | |
118 | %{_libdir}/libsecret-1.la | |
119 | %{_pkgconfigdir}/libsecret-1.pc | |
120 | %{_pkgconfigdir}/libsecret-unstable.pc | |
121 | %{_datadir}/gir-1.0/Secret-1.gir | |
122 | %{_datadir}/gir-1.0/SecretUnstable-0.gir | |
123 | ||
124 | %if %{with static_libs} | |
125 | %files static | |
126 | %defattr(644,root,root,755) | |
127 | %{_libdir}/libsecret-1.a | |
128 | %endif | |
129 | ||
130 | %if %{with apidocs} | |
131 | %files apidocs | |
132 | %defattr(644,root,root,755) | |
133 | %{_gtkdocdir}/%{name} | |
134 | %endif | |
135 | ||
136 | %if %{with vala} | |
137 | %files -n vala-libsecret | |
138 | %defattr(644,root,root,755) | |
139 | %{_datadir}/vala/vapi/libsecret-1.deps | |
140 | %{_datadir}/vala/vapi/libsecret-1.vapi | |
141 | %{_datadir}/vala/vapi/libsecret-unstable.deps | |
142 | %{_datadir}/vala/vapi/libsecret-unstable.vapi | |
143 | %{_datadir}/vala/vapi/mock-service-0.vapi | |
144 | %endif |