#
# spec file for package libnotify (Version 0.4.4)
#
# Copyright (c) 2008 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/
#

# norootforbuild


Name:           libnotify
BuildRequires:  dbus-1-glib-devel
BuildRequires:  gtk-doc gtk2-devel update-desktop-files
Version:        0.4.4
Release:        173
Url:            http://www.galago-project.org/
Group:          System/Libraries
License:        GPL v2 or later; LGPL v2.1 or later
Summary:        Notifications Library
Source:         %{name}-%{version}.tar.bz2
Patch0:         libnotify-svn3018.patch
AutoReqProv:    on
Requires:       notification-daemon dbus-1-x11 libnotify1
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
D-BUS notifications library.



Authors:
--------
    Christian Hammond <chipx86@chipx86.com>
    Mike Hearn <mike@navi.cx>

%package -n libnotify1
License:        GPL v2 or later; LGPL v2.1 or later
Group:          System/Libraries
Summary:        Notifications Library
Requires:       %{name} >= %{version}

%description -n libnotify1
D-BUS notifications library.



Authors:
--------
    Christian Hammond <chipx86@chipx86.com>
    Mike Hearn <mike@navi.cx>

%package devel
License:        LGPL v2.1 or later
Group:          System/Libraries
Summary:        Notifications Library
Requires:       %{name} = %{version} glib2-devel gtk2-devel dbus-1-devel
Requires:       dbus-1-glib-devel

%description devel
D-BUS notifications library.



Authors:
--------
    Christian Hammond <chipx86@chipx86.com>
    Mike Hearn <mike@navi.cx>

%package doc
License:        LGPL v2.1 or later
Group:          System/Libraries
Summary:        Additional Package Documentation.
Requires:       %{name} = %{version}

%description doc
D-BUS notifications library.



Authors:
--------
    Christian Hammond <chipx86@chipx86.com>
    Mike Hearn <mike@navi.cx>

%prep
%setup -q
%patch0 -p0

%build
autoreconf -f -i
%configure\
	--disable-static
make %{?jobs:-j%jobs}

%install
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%post -n libnotify1
/sbin/ldconfig

%postun -n libnotify1
/sbin/ldconfig

%files
%defattr (-, root, root)
# README is empty
%doc AUTHORS COPYING ChangeLog NEWS
%{_bindir}/*

%files -n libnotify1
%defattr (-, root, root)
%{_libdir}/*.so.*

%files devel
%defattr (-, root, root)
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*

%files doc
%defattr (-, root, root)
%{_datadir}/gtk-doc/html/libnotify

%changelog
* Tue Nov 11 2008 ro@suse.de
- SLE-11 uses PPC64 instead of PPC, adapt baselibs.conf
* Tue Oct 28 2008 vuntz@novell.com
- Add libnotify-svn3018.patch, which contains a few fixes from
  upstream svn (no release since early 2007). The most important
  change is a change to be able to work nicely with notification
  icons.
- Spec clean up.
* Thu Apr 10 2008 ro@suse.de
- added baselibs.conf file to build xxbit packages
  for multilib support
* Thu Oct 04 2007 maw@suse.de
- s#%%run_ldconfig#/sbin/ldconfig# in %%post and %%postun
- Split out a libnotify1 subpackage.
* Tue Mar 06 2007 sbrabec@suse.cz
- Updated to version version 0.4.4:
  * Bug fixes.
  * Fixed memory leaks.
  * notify_uninit is no longer called automatically at exit.
- License update (#236707).
* Tue Feb 20 2007 aj@suse.de
- Remove unneeded requires on popt.
* Wed Feb 07 2007 sbrabec@suse.cz
- Do not build unusable static libraries (#238552).
* Fri Dec 08 2006 sbrabec@suse.cz
- Prefix changed to /usr.
- Spec file cleanup.
* Mon Nov 27 2006 sbrabec@suse.cz
- Build correctly in older products.
- Fixed devel dependencies.
* Thu Aug 31 2006 cschneemann@suse.de
- Updated to version 0.4.2
* Tue Aug 15 2006 ro@suse.de
- added dbus-1-glib-devel to BuildRequires
* Thu May 11 2006 rml@suse.de
- Require dbus-x11 too, because that provides dbus-launch, which
  is how we launch the session bus.  And libnotify needs the
  session bus (Novell bug #174865).
- No need to rerun autogen; just run configure
* Wed Jan 25 2006 mls@suse.de
- converted neededforbuild to BuildRequires
* Mon Jan 23 2006 dobey@suse.de
- Updated to version 0.3.2
* Wed Jan 18 2006 sbrabec@suse.cz
- Updated to version 0.3.0.
* Tue Aug 02 2005 rodrigo@suse.de
- Updated to 0.2.1.
* Wed Jun 29 2005 sbrabec@suse.cz
- New SuSE package, pre-0.0.1 version from actual svn snapshot.