File libzeitgeist.spec of Package libzeitgeist
#
# spec file for package libzeitgeist
#
# Copyright (C) 2011 Federico Mena Quintero
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: libzeitgeist
Version: 0.3.2
Release: 1
License: LGPLv3
Summary: Client library for interacting with the Zeitgeist daemon
Url: https://launchpad.net/libzeitgeist
Group: Productivity/Other
Source: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(glib-2.0)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
Libzeitgeist is a client library for interacting with the Zeitgeist
daemon.
%package -n libzeitgeist-1_0-1
License: LGPLv3
Summary: Client library for interacting with the Zeitgeist daemon
Group: System/Libraries
Recommends: zeitgeist
%description -n libzeitgeist-1_0-1
Libzeitgeist is a client library for interacting with the Zeitgeist
daemon.
%package devel
License: LGPLv3
Summary: Client library for interacting with the Zeitgeist daemon -- Development Files
Group: Development/Libraries/GNOME
Requires: libzeitgeist-1_0-1 = %{version}
%description devel
Libzeitgeist is a client library for interacting with the Zeitgeist
daemon.
%prep
%setup -q
%build
# We use --disable-module for now. The code in question requires a patched Glib, which we don't have.
# The patch for Glib comes from https://lists.launchpad.net/zeitgeist/msg00291.html
# The final code in glib is https://bugzilla.gnome.org/show_bug.cgi?id=606960 - a patch is being
# prepared to make libzeitgeist use this instead.
%configure --disable-module --disable-static
make %{?_smp_mflags}
%install
%make_install
rm %{buildroot}%{_libdir}/*.la
# We ship those as %%doc, except INSTALL but we don't care about it
rm %{buildroot}%{_datadir}/doc/libzeitgeist/{AUTHORS,COPYING,INSTALL,MAINTAINERS,README}
%clean
rm -rf %{buildroot}
%post -n libzeitgeist-1_0-1 -p /sbin/ldconfig
%postun -n libzeitgeist-1_0-1 -p /sbin/ldconfig
%files -n libzeitgeist-1_0-1
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING MAINTAINERS NEWS README
%{_libdir}/lib*.so.*
%files devel
%defattr(-,root,root)
%{_includedir}/zeitgeist-1.0/
%{_libdir}/pkgconfig/zeitgeist-1.0.pc
%{_libdir}/lib*.so
%doc %{_datadir}/gtk-doc/html/zeitgeist-1.0/
# Own these directories to not depend on vala
%dir %{_datadir}/vala
%{_datadir}/vala/vapi/
%changelog