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