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