]>
Commit | Line | Data |
---|---|---|
3cafce15 JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static library | |
4 | # | |
632d2dd3 | 5 | Summary: Logging service for Telepathy |
060a1543 | 6 | Summary(pl.UTF-8): Usługa logowania dla Telepathy |
632d2dd3 | 7 | Name: telepathy-logger |
4b5cabc8 | 8 | Version: 0.6.0 |
4955220b | 9 | Release: 1 |
3cafce15 | 10 | License: LGPL v2.1+ |
060a1543 | 11 | Group: Applications |
632d2dd3 | 12 | Source0: http://telepathy.freedesktop.org/releases/telepathy-logger/%{name}-%{version}.tar.bz2 |
4b5cabc8 | 13 | # Source0-md5: f453c49e53898c64bc423f0fdf117290 |
632d2dd3 | 14 | URL: http://telepathy.freedesktop.org/wiki/Logger |
e7519a85 | 15 | BuildRequires: autoconf >= 2.66 |
060a1543 | 16 | BuildRequires: automake >= 1:1.9 |
50db75cd PZ |
17 | BuildRequires: dbus-devel >= 1.1.0 |
18 | BuildRequires: dbus-glib-devel >= 0.82 | |
bed34a8f | 19 | BuildRequires: docbook-dtd412-xml |
20 | BuildRequires: gettext-devel | |
a615c61b | 21 | BuildRequires: glib2-devel >= 1:2.26.0 |
392304a8 | 22 | BuildRequires: gnome-common |
64298dd0 | 23 | BuildRequires: gnome-doc-utils > 0.17.3 |
e7519a85 MB |
24 | BuildRequires: gobject-introspection-devel >= 0.10.0 |
25 | BuildRequires: gtk-doc >= 1.10 | |
64298dd0 | 26 | BuildRequires: gtk-doc-automake >= 1.10 |
e7519a85 | 27 | BuildRequires: intltool >= 0.35.0 |
64298dd0 | 28 | BuildRequires: libtool |
50db75cd | 29 | BuildRequires: libxml2-devel |
3cafce15 | 30 | BuildRequires: libxslt-progs |
64298dd0 | 31 | BuildRequires: pkgconfig |
3cafce15 | 32 | BuildRequires: python >= 1:2.5 |
916780d1 | 33 | BuildRequires: rpmbuild(macros) >= 1.592 |
bed34a8f | 34 | BuildRequires: sqlite3-devel |
4b5cabc8 | 35 | BuildRequires: telepathy-glib-devel >= 0.19.2 |
209af5a6 | 36 | BuildRequires: xorg-lib-libICE-devel |
4d328f14 | 37 | Requires(post,postun): glib2 >= 1:2.26.0 |
060a1543 | 38 | Requires: %{name}-libs = %{version}-%{release} |
3cafce15 | 39 | Requires: dbus >= 1.1.0 |
632d2dd3 PZ |
40 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
41 | ||
42 | %description | |
060a1543 | 43 | This package provides logging service for Telepathy. |
632d2dd3 PZ |
44 | |
45 | %description -l pl.UTF-8 | |
060a1543 | 46 | Ten pakiet udostępnia usługę logowania dla Telepathy. |
632d2dd3 | 47 | |
632d2dd3 | 48 | %package libs |
060a1543 MB |
49 | Summary: telepathy-logger shared library |
50 | Summary(pl.UTF-8): Biblioteka telepathy-logger | |
632d2dd3 | 51 | Group: Libraries |
3cafce15 JB |
52 | Requires: dbus-glib >= 0.82 |
53 | Requires: dbus-libs >= 1.1.0 | |
54 | Requires: glib2 >= 1:2.26.0 | |
4b5cabc8 | 55 | Requires: telepathy-glib >= 0.19.2 |
632d2dd3 PZ |
56 | |
57 | %description libs | |
060a1543 MB |
58 | telepathy-logger shared library. |
59 | ||
60 | %description libs -l pl.UTF-8 | |
61 | Biblioteka telepathy-logger. | |
632d2dd3 PZ |
62 | |
63 | %package devel | |
64 | Summary: Header files for telepathy-logger library | |
060a1543 | 65 | Summary(pl.UTF-8): Pliki nagłówkowe dla biblioteki telepathy-logger |
632d2dd3 PZ |
66 | Group: Development/Libraries |
67 | Requires: %{name}-libs = %{version}-%{release} | |
3cafce15 | 68 | Requires: dbus-glib-devel >= 0.82 |
e7519a85 | 69 | Requires: glib2-devel >= 1:2.26.0 |
060a1543 | 70 | Requires: libxml2-devel |
4b5cabc8 | 71 | Requires: telepathy-glib-devel >= 0.19.2 |
632d2dd3 PZ |
72 | |
73 | %description devel | |
74 | Header files for telepathy-logger library. | |
75 | ||
060a1543 MB |
76 | %description devel -l pl.UTF-8 |
77 | Pliki nagłówkowe dla biblioteki telepathy-logger. | |
78 | ||
3cafce15 JB |
79 | %package static |
80 | Summary: Static telepathy-logger library | |
81 | Summary(pl.UTF-8): Statyczna biblioteka telepathy-logger | |
82 | Group: Development/Libraries | |
83 | Requires: %{name}-devel = %{version}-%{release} | |
84 | ||
85 | %description static | |
86 | Static telepathy-logger library. | |
87 | ||
88 | %description static -l pl.UTF-8 | |
89 | Statyczna biblioteka telepathy-logger. | |
90 | ||
91 | %package apidocs | |
92 | Summary: telepathy-logger library API documentation | |
93 | Summary(pl.UTF-8): Dokumentacja API biblioteki telepathy-logger | |
94 | Group: Documentation | |
95 | Requires: gtk-doc-common | |
96 | ||
97 | %description apidocs | |
98 | telepathy-logger library API documentation. | |
99 | ||
100 | %description apidocs -l pl.UTF-8 | |
101 | Dokumentacja API biblioteki telepathy-logger. | |
102 | ||
632d2dd3 PZ |
103 | %prep |
104 | %setup -q | |
105 | ||
106 | %build | |
060a1543 | 107 | %{__libtoolize} |
632d2dd3 PZ |
108 | %{__aclocal} -I m4 |
109 | %{__autoconf} | |
110 | %{__automake} | |
111 | %configure \ | |
4955220b | 112 | --disable-silent-rules \ |
3cafce15 | 113 | %{!?with_static_libs:--disable-static} \ |
060a1543 | 114 | --enable-gtk-doc \ |
632d2dd3 PZ |
115 | --with-html-dir=%{_gtkdocdir} |
116 | %{__make} -j1 | |
117 | ||
118 | %install | |
119 | rm -rf $RPM_BUILD_ROOT | |
120 | ||
121 | %{__make} install \ | |
122 | DESTDIR=$RPM_BUILD_ROOT | |
632d2dd3 | 123 | |
28c00080 PZ |
124 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/*.la |
125 | ||
632d2dd3 PZ |
126 | %clean |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
3cafce15 JB |
129 | %post libs -p /sbin/ldconfig |
130 | %postun libs -p /sbin/ldconfig | |
632d2dd3 | 131 | |
a615c61b | 132 | %post |
916780d1 | 133 | %glib_compile_schemas |
a615c61b PZ |
134 | |
135 | %postun | |
916780d1 | 136 | %glib_compile_schemas |
a615c61b | 137 | |
632d2dd3 PZ |
138 | %files |
139 | %defattr(644,root,root,755) | |
140 | %doc AUTHORS ChangeLog | |
28c00080 | 141 | %attr(755,root,root) %{_libexecdir}/telepathy-logger |
632d2dd3 PZ |
142 | %{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.Logger.service |
143 | %{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Logger.service | |
a615c61b | 144 | %{_datadir}/glib-2.0/schemas/org.freedesktop.Telepathy.Logger.gschema.xml |
28c00080 | 145 | %{_datadir}/telepathy/clients/Logger.client |
632d2dd3 | 146 | |
632d2dd3 PZ |
147 | %files libs |
148 | %defattr(644,root,root,755) | |
060a1543 | 149 | %attr(755,root,root) %{_libdir}/libtelepathy-logger.so.*.*.* |
4b5cabc8 | 150 | %attr(755,root,root) %ghost %{_libdir}/libtelepathy-logger.so.3 |
bab5a2b5 | 151 | %{_libdir}/girepository-1.0/TelepathyLogger-0.2.typelib |
632d2dd3 PZ |
152 | |
153 | %files devel | |
154 | %defattr(644,root,root,755) | |
060a1543 | 155 | %attr(755,root,root) %{_libdir}/libtelepathy-logger.so |
2a80ed0f CM |
156 | %{_includedir}/telepathy-logger-0.2 |
157 | %{_pkgconfigdir}/telepathy-logger-0.2.pc | |
bab5a2b5 | 158 | %{_datadir}/gir-1.0/TelepathyLogger-0.2.gir |
3cafce15 JB |
159 | |
160 | %if %{with static_libs} | |
161 | %files static | |
162 | %defattr(644,root,root,755) | |
163 | %{_libdir}/libtelepathy-logger.a | |
164 | %endif | |
165 | ||
166 | %files apidocs | |
167 | %defattr(644,root,root,755) | |
168 | %{_gtkdocdir}/telepathy-logger |