1 |
fwang |
136908 |
%define api 1.0 |
2 |
|
|
%define major 1 |
3 |
|
|
%define libname %mklibname zeitgeist %api %major |
4 |
|
|
%define develname %mklibname -d zeitgeist |
5 |
gil |
124384 |
|
6 |
fwang |
136908 |
Name: libzeitgeist |
7 |
fwang |
189561 |
Version: 0.3.12 |
8 |
fwang |
136908 |
Release: %mkrel 1 |
9 |
|
|
Summary: Client library for applications that want to interact with the Zeitgeist daemon |
10 |
|
|
Group: System/Libraries |
11 |
|
|
License: LGPLv3 and GPLv3 |
12 |
|
|
URL: https://launchpad.net/libzeitgeist |
13 |
|
|
Source0: http://launchpad.net/%{name}/0.3/%{version}/+download/%{name}-%{version}.tar.gz |
14 |
|
|
Patch0: %{name}-log_fix.patch |
15 |
gil |
124384 |
BuildRequires: glib2-devel |
16 |
fwang |
136908 |
BuildRequires: gtk-doc |
17 |
|
|
# zeitgeist is just a runtime and the reason to install libzeitgeist |
18 |
|
|
Requires: zeitgeist |
19 |
gil |
124384 |
|
20 |
|
|
%description |
21 |
fwang |
136908 |
This project provides a client library for applications that want to interact |
22 |
|
|
with the Zeitgeist daemon. The library is written in C using glib and provides |
23 |
|
|
an asynchronous GObject oriented API. |
24 |
gil |
124384 |
|
25 |
fwang |
136908 |
%package -n %libname |
26 |
|
|
Summary: Shared library for %name |
27 |
|
|
Group: System/Libraries |
28 |
gil |
124384 |
|
29 |
fwang |
136908 |
%description -n %libname |
30 |
|
|
This project provides a client library for applications that want to interact |
31 |
|
|
with the Zeitgeist daemon. The library is written in C using glib and provides |
32 |
|
|
an asynchronous GObject oriented API. |
33 |
gil |
124384 |
|
34 |
fwang |
136908 |
%package -n %develname |
35 |
|
|
Summary: Development files for %{name} |
36 |
|
|
Group: Development/C |
37 |
|
|
Requires: %{libname} = %{version}-%{release} |
38 |
gil |
124384 |
|
39 |
fwang |
136908 |
%description -n %develname |
40 |
|
|
The %{name}-devel package contains libraries and header files for |
41 |
|
|
developing applications that use %{name}. |
42 |
gil |
124384 |
|
43 |
|
|
|
44 |
|
|
%prep |
45 |
fwang |
136908 |
%setup -q |
46 |
|
|
%patch0 -p1 -b .log |
47 |
gil |
124384 |
|
48 |
|
|
%build |
49 |
fwang |
136908 |
%configure2_5x --disable-static |
50 |
gil |
124384 |
%make |
51 |
fwang |
136908 |
|
52 |
|
|
%check |
53 |
|
|
make check |
54 |
|
|
|
55 |
gil |
124384 |
%install |
56 |
|
|
%makeinstall_std |
57 |
|
|
|
58 |
fwang |
136908 |
install -d -p -m 755 %{buildroot}%{_datadir}/vala/vapi |
59 |
|
|
install -D -p -m 644 bindings/zeitgeist-1.0.{vapi,deps} %{buildroot}%{_datadir}/vala/vapi |
60 |
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';' |
61 |
gil |
124384 |
|
62 |
fwang |
136908 |
# remove duplicate documentation |
63 |
|
|
rm -fr %{buildroot}%{_defaultdocdir}/%{name} |
64 |
gil |
124384 |
|
65 |
fwang |
136908 |
%files -n %libname |
66 |
|
|
%defattr(-,root,root,-) |
67 |
|
|
%doc COPYING COPYING.GPL README |
68 |
|
|
%{_libdir}/libzeitgeist-%{api}.so.%{major} |
69 |
|
|
%{_libdir}/libzeitgeist-%{api}.so.%{major}.* |
70 |
gil |
124384 |
|
71 |
fwang |
136908 |
%files -n %develname |
72 |
|
|
%defattr(-,root,root,-) |
73 |
|
|
%doc AUTHORS ChangeLog COPYING COPYING.GPL MAINTAINERS NEWS |
74 |
|
|
%doc examples/*.vala examples/*.c |
75 |
|
|
%{_datadir}/gtk-doc/html/zeitgeist-1.0/ |
76 |
|
|
%{_includedir}/zeitgeist-1.0/ |
77 |
|
|
%{_libdir}/pkgconfig/zeitgeist-1.0.pc |
78 |
|
|
%{_libdir}/*.so |
79 |
|
|
%{_datadir}/vala/vapi/ |