]>
Commit | Line | Data |
---|---|---|
25e13a09 MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
d6a85b23 | 4 | %bcond_without vala # do not build Vala API |
25e13a09 MB |
5 | # |
6 | Summary: libgnome-keyring library | |
7 | Summary(pl.UTF-8): Biblioteka libgnome-keyring | |
8 | Name: libgnome-keyring | |
7e345ff9 MB |
9 | Version: 3.8.0 |
10 | Release: 1 | |
d9eefe4b | 11 | License: LGPL v2+ |
25e13a09 | 12 | Group: Libraries |
7e345ff9 MB |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/libgnome-keyring/3.8/%{name}-%{version}.tar.xz |
14 | # Source0-md5: caec6bcfac4d1fce6927c2338bdc5058 | |
25e13a09 | 15 | URL: http://live.gnome.org/GnomeKeyring |
d9eefe4b | 16 | BuildRequires: autoconf >= 2.50 |
25e13a09 MB |
17 | BuildRequires: automake |
18 | BuildRequires: dbus-devel >= 1.0 | |
4806c6e4 | 19 | BuildRequires: docbook-dtd412-xml |
4806c6e4 | 20 | BuildRequires: gettext-devel |
25e13a09 | 21 | BuildRequires: glib2-devel >= 1:2.16.0 |
8aae2157 | 22 | BuildRequires: gobject-introspection-devel >= 1.30.0 |
25e13a09 MB |
23 | %{?with_apidocs:BuildRequires: gtk-doc >= 1.9} |
24 | BuildRequires: intltool >= 0.40.0 | |
25 | BuildRequires: libgcrypt-devel >= 1.2.2 | |
26 | BuildRequires: libtool | |
27 | BuildRequires: pkgconfig | |
28 | BuildRequires: rpmbuild(macros) >= 1.527 | |
8f7a3825 | 29 | BuildRequires: tar >= 1:1.22 |
d6a85b23 | 30 | %{?with_vala:BuildRequires: vala >= 2:0.16.0} |
8f7a3825 | 31 | BuildRequires: xz |
f21ceec0 JB |
32 | Requires: glib2 >= 1:2.16.0 |
33 | Requires: libgcrypt >= 1.2.2 | |
25e13a09 MB |
34 | Conflicts: gnome-keyring-libs < 2.29.0 |
35 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
36 | ||
37 | %description | |
38 | The libgnome-keyring library is used by applications to integrate with | |
39 | the gnome-keyring system. | |
40 | ||
41 | %description -l pl.UTF-8 | |
42 | Biblioteka libgnome-keyring jest używana w celu zintegrowania | |
43 | aplikacji z systemem gnome-keyring. | |
44 | ||
45 | %package devel | |
46 | Summary: Header files for libgnome-keyring library | |
47 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libgnome-keyring | |
48 | Group: Development/Libraries | |
49 | Requires: %{name} = %{version}-%{release} | |
50 | Requires: glib2-devel >= 1:2.16.0 | |
00248831 | 51 | Requires: libgcrypt-devel >= 1.2.2 |
25e13a09 MB |
52 | Conflicts: gnome-keyring-devel < 2.29.0 |
53 | ||
54 | %description devel | |
55 | Header files for libgnome-keyring library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe biblioteki libgnome-keyring. | |
59 | ||
60 | %package apidocs | |
61 | Summary: libgnome-keyring library API documentation | |
62 | Summary(pl.UTF-8): Dokumentacja API biblioteki libgnome-keyring | |
63 | Group: Documentation | |
64 | Requires: gtk-doc-common | |
65 | Conflicts: gnome-keyring-apidocs < 2.29.0 | |
66 | ||
67 | %description apidocs | |
68 | libgnome-keyring library API documentation. | |
69 | ||
70 | %description apidocs -l pl.UTF-8 | |
71 | Dokumentacja API biblioteki libgnome-keyring. | |
72 | ||
d6a85b23 ŁK |
73 | %package -n vala-libgnome-keyring |
74 | Summary: libgnome-keyring API for Vala language | |
75 | Summary(pl.UTF-8): API libgnome-keyring dla języka Vala | |
76 | Group: Development/Libraries | |
77 | Requires: %{name}-devel = %{version}-%{release} | |
78 | Requires: vala >= 2:0.16.0 | |
79 | ||
80 | %description -n vala-libgnome-keyring | |
81 | libgnome-keyring API for Vala language. | |
82 | ||
83 | %description -n vala-libgnome-keyring -l pl.UTF-8 | |
84 | API libgnome-keyring dla języka Vala. | |
85 | ||
25e13a09 MB |
86 | %prep |
87 | %setup -q | |
88 | ||
89 | %build | |
90 | %{?with_apidocs:%{__gtkdocize}} | |
91 | %{__intltoolize} | |
92 | %{__libtoolize} | |
d9eefe4b | 93 | %{__aclocal} -I build/m4 |
25e13a09 MB |
94 | %{__autoconf} |
95 | %{__autoheader} | |
96 | %{__automake} | |
97 | %configure \ | |
98 | %{__enable_disable apidocs gtk-doc} \ | |
d9eefe4b | 99 | --disable-silent-rules \ |
7e345ff9 | 100 | %{__enable_disable vala vala} \ |
d9eefe4b | 101 | --with-html-dir=%{_gtkdocdir} |
25e13a09 MB |
102 | %{__make} |
103 | ||
104 | %install | |
105 | rm -rf $RPM_BUILD_ROOT | |
106 | ||
107 | %{__make} install \ | |
108 | DESTDIR=$RPM_BUILD_ROOT | |
109 | ||
20f6e588 MB |
110 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
111 | ||
25e13a09 MB |
112 | %if %{without apidocs} |
113 | rm -rf $RPM_BUILD_ROOT%{_gtkdocdir} | |
114 | %endif | |
115 | ||
acea786c MB |
116 | %find_lang %{name} |
117 | ||
25e13a09 MB |
118 | %clean |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %post -p /sbin/ldconfig | |
122 | %postun -p /sbin/ldconfig | |
123 | ||
acea786c | 124 | %files -f %{name}.lang |
25e13a09 MB |
125 | %defattr(644,root,root,755) |
126 | %doc AUTHORS ChangeLog HACKING NEWS README | |
127 | %attr(755,root,root) %{_libdir}/libgnome-keyring.so.*.*.* | |
128 | %attr(755,root,root) %ghost %{_libdir}/libgnome-keyring.so.0 | |
8aae2157 | 129 | %{_libdir}/girepository-1.0/GnomeKeyring-1.0.typelib |
25e13a09 MB |
130 | |
131 | %files devel | |
132 | %defattr(644,root,root,755) | |
133 | %attr(755,root,root) %{_libdir}/libgnome-keyring.so | |
8aae2157 | 134 | %{_datadir}/gir-1.0/GnomeKeyring-1.0.gir |
25e13a09 MB |
135 | %{_includedir}/gnome-keyring-1 |
136 | %{_pkgconfigdir}/gnome-keyring-1.pc | |
137 | ||
138 | %if %{with apidocs} | |
139 | %files apidocs | |
140 | %defattr(644,root,root,755) | |
141 | %{_gtkdocdir}/gnome-keyring | |
142 | %endif | |
d6a85b23 ŁK |
143 | |
144 | %if %{with vala} | |
145 | %files -n vala-libgnome-keyring | |
146 | %defattr(644,root,root,755) | |
147 | %{_datadir}/vala/vapi/gnome-keyring-1.vapi | |
148 | %endif |