File notification-daemon.spec of Package notification-daemon

#
# spec file for package notification-daemon
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# 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
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           notification-daemon
Version:        0.5.0
Release:        3
License:        GPLv2+
Summary:        Notification Daemon
Url:            http://www.galago-project.org/
Group:          System/Daemons
Source:         %{name}-%{version}.tar.bz2
BuildRequires:  dbus-1-glib-devel
BuildRequires:  fdupes
BuildRequires:  gconf2-devel
BuildRequires:  intltool
BuildRequires:  libcanberra-devel
BuildRequires:  libnotify-devel
BuildRequires:  libwnck-devel
BuildRequires:  translation-update-upstream
BuildRequires:  update-desktop-files
Recommends:     %{name}-lang
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
%gconf_schemas_prereq

%description
D-BUS notification daemon.

%lang_package
%prep
%setup -q
translation-update-upstream

%build
%configure\
        --disable-static \
	--libexecdir=%{_libexecdir}/%{name}-1.0 \
	--disable-schemas-install
make %{?_smp_mflags}

%install
%makeinstall
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print
%suse_update_desktop_file notification-properties X-SuSE-ControlCenter-LookAndFeel
%find_lang %{name} %{?no_lang_C}
%find_gconf_schemas
%fdupes %{buildroot}

%clean
rm -rf %{buildroot}

%pre -f %{name}.schemas_pre

%post
%desktop_database_post
%icon_theme_cache_post

%posttrans -f %{name}.schemas_posttrans

%preun -f %{name}.schemas_preun

%postun
%desktop_database_postun
%icon_theme_cache_postun

%files -f %{name}.schemas_list
%defattr (-, root, root)
# README is empty
%doc AUTHORS COPYING ChangeLog NEWS
%{_libdir}/%{name}-1.0
%if "%{_libdir}" != "%{_prefix}/lib"
%{_prefix}/lib/%{name}-1.0
%endif
%{_datadir}/dbus-1/services/*.service
%{_bindir}/notification-properties
%{_datadir}/applications/notification-properties.desktop
%{_datadir}/icons/hicolor/*/apps/notification-properties.*
%{_datadir}/notification-daemon

%files lang -f %{name}.lang

%changelog