%define api 1.0 %define major 1 %define libname %mklibname zeitgeist %api %major %define develname %mklibname -d zeitgeist Name: libzeitgeist Version: 0.3.10 Release: %mkrel 1 Summary: Client library for applications that want to interact with the Zeitgeist daemon Group: System/Libraries License: LGPLv3 and GPLv3 URL: https://launchpad.net/libzeitgeist Source0: http://launchpad.net/%{name}/0.3/%{version}/+download/%{name}-%{version}.tar.gz Patch0: %{name}-log_fix.patch BuildRequires: glib2-devel BuildRequires: gtk-doc # zeitgeist is just a runtime and the reason to install libzeitgeist Requires: zeitgeist %description This project provides a client library for applications that want to interact with the Zeitgeist daemon. The library is written in C using glib and provides an asynchronous GObject oriented API. %package -n %libname Summary: Shared library for %name Group: System/Libraries %description -n %libname This project provides a client library for applications that want to interact with the Zeitgeist daemon. The library is written in C using glib and provides an asynchronous GObject oriented API. %package -n %develname Summary: Development files for %{name} Group: Development/C Requires: %{libname} = %{version}-%{release} %description -n %develname The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %setup -q %patch0 -p1 -b .log %build %configure2_5x --disable-static %make %check make check %install %makeinstall_std install -d -p -m 755 %{buildroot}%{_datadir}/vala/vapi install -D -p -m 644 bindings/zeitgeist-1.0.{vapi,deps} %{buildroot}%{_datadir}/vala/vapi find %{buildroot} -name '*.la' -exec rm -f {} ';' # remove duplicate documentation rm -fr %{buildroot}%{_defaultdocdir}/%{name} %files -n %libname %defattr(-,root,root,-) %doc COPYING COPYING.GPL README %{_libdir}/libzeitgeist-%{api}.so.%{major} %{_libdir}/libzeitgeist-%{api}.so.%{major}.* %files -n %develname %defattr(-,root,root,-) %doc AUTHORS ChangeLog COPYING COPYING.GPL MAINTAINERS NEWS %doc examples/*.vala examples/*.c %{_datadir}/gtk-doc/html/zeitgeist-1.0/ %{_includedir}/zeitgeist-1.0/ %{_libdir}/pkgconfig/zeitgeist-1.0.pc %{_libdir}/*.so %{_datadir}/vala/vapi/