File libnotify.spec of Package libnotify

#
# spec file for package libnotify
#
# Copyright (c) 2013 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:           libnotify
BuildRequires:  gobject-introspection-devel
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gtk+-3.0)
%if 0%{?BUILD_FROM_VCS}
BuildRequires:  gnome-common
BuildRequires:  gtk-doc
%endif
Version:        0.7.6
Release:        0
Url:            http://www.galago-project.org/
Summary:        Notifications Library
License:        LGPL-2.1+
Group:          System/Libraries
Source:         http://download.gnome.org/sources/libnotify/0.7/%{name}-%{version}.tar.xz
Source99:       baselibs.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
D-BUS notifications library.

%package -n libnotify4
Summary:        Notifications Library
Group:          System/Libraries
Recommends:     notification-daemon

%description -n libnotify4
D-BUS notifications library.

%package -n typelib-1_0-Notify-0_7
Summary:        Notifications Library -- Introspection bindings
Group:          System/Libraries

%description -n typelib-1_0-Notify-0_7
D-BUS notifications library.

This package provides the GObject Introspection bindings for libnotify.

%package tools
Summary:        Notifications Library -- Tools
Group:          System/Libraries
Provides:       libnotify = %{version}
Obsoletes:      libnotify < %{version}

%description tools
D-BUS notifications library.

This package contains the notify-send tool to create notifications.

%package devel
Summary:        Notifications Library
Group:          Development/Libraries/X11
Requires:       libnotify4 = %{version}
Requires:       typelib-1_0-Notify-0_7 = %{version}
Provides:       libnotify-doc = %{version}
Obsoletes:      libnotify-doc < %{version}

%description devel
D-BUS notifications library.

%prep
%setup -q
%if 0%{?BUILD_FROM_VCS}
[ -x ./autogens.sh ] && NOCONFIGURE=1 ./autogen.sh
%endif

%build
%configure\
%if 0%{?BUILD_FROM_VCS}
        --enable-gtk-doc \
%endif
	--disable-static
make %{?_smp_mflags}

%install
%makeinstall
%{__rm} -f %{buildroot}%{_libdir}/*.la

%post -n libnotify4 -p /sbin/ldconfig

%postun -n libnotify4 -p /sbin/ldconfig

%files -n libnotify4
%defattr (-, root, root)
# README is empty
%doc AUTHORS COPYING ChangeLog NEWS
%{_libdir}/*.so.*

%files -n typelib-1_0-Notify-0_7
%defattr(-,root,root)
%{_libdir}/girepository-1.0/Notify-0.7.typelib

%files tools
%defattr (-, root, root)
%{_bindir}/notify-send

%files devel
%defattr (-, root, root)
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%{_datadir}/gir-1.0/*.gir
# Own these repositories to not depend on gtk-doc while building:
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/libnotify

%changelog