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