10363N/A#
10363N/A# spec file for package libnotify
10363N/A#
20904N/A# Copyright (c) 2007, 2012, Oracle and/or its affiliates. All rights reserved.
10363N/A# This file and all modifications and additions to the pristine
10363N/A# package are under the same license as the package itself.
10363N/A#
18902N/A%define owner jouby
15698N/A# bugdb: http://trac.galago-project.org/
10363N/A#
10363N/A
17180N/A%define OSR 5892:0.4
17180N/A
10363N/AName: libnotify
20904N/AVersion: 0.7.5
10363N/ARelease: 1
10363N/ASummary: libnotify is a notification system for the GNOME desktop environment.
10363N/A
10363N/AGroup: System/Libraries
19092N/ALicense: LGPLv2
10363N/AURL: http://www.galago-project.org/news/index.php
10363N/ADistribution: java-desktop-system
18616N/AVendor: Galago
20904N/ASource: http://download.gnome.org/sources/libnotify/0.7/libnotify-%{version}.tar.xz
17364N/A# date:2009-01-20 owner:jedy type:feature bugid:176
15696N/APatch1: libnotify-01-uninstalled-pc.diff
10363N/A
10363N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10363N/A
10363N/A%define gtk2_version 2.6.0
10363N/A%define dbus_version 0.36
10363N/A
10363N/ABuildRequires: gtk2-devel >= %{gtk2_version}
10363N/ABuildRequires: dbus-devel >= %{dbus_version}
10363N/ARequires: gtk2 >= %{gtk2_version}
10363N/ARequires: dbus >= %{dbus_version}
10363N/A
10363N/A%description
10363N/ALibnotify is a notification system for the GNOME desktop environment.
10363N/A
10363N/A%prep
10363N/A%setup -q
15696N/A%patch1 -p1
10363N/A
10363N/A%build
10363N/A%ifos linux
10363N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10363N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10363N/A CPUS=1
10363N/Afi
10363N/A%else
10363N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
10363N/A%endif
10363N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
10363N/A CPUS=1
10363N/Afi
10363N/A
10363N/Alibtoolize --copy --force
10363N/Aaclocal $ACLOCAL_FLAGS
10363N/Aautoheader
10363N/Aautomake -a -c -f
10363N/Aautoconf
10363N/A./configure --prefix=%{_prefix} \
18003N/A --bindir=%{_bindir} \
10363N/A --libdir=%{_libdir}
10363N/Amake -j $CPUS
10363N/A
10363N/A%install
10363N/Amake DESTDIR=$RPM_BUILD_ROOT install
10363N/Afind $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';'
10363N/Afind $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
10363N/A
10363N/A%clean
10363N/Arm -rf $RPM_BUILD_ROOT
10363N/A
10363N/A%files
10363N/A%defattr (-, root, root)
10363N/A%doc README AUTHORS COPYING
10363N/A%{_bindir}/*
10363N/A%{_libdir}/*.so*
10363N/A%{_libdir}/pkgconfig/*
10363N/A%{_includedir}/libnotify/*
10363N/A%{_datadir}/gtk-doc/*
10363N/A
10363N/A%changelog
20904N/A* Thu May 03 2012 - brian.cameron@oracle.com
20904N/A- Bump to 0.7.5.
20831N/A* Thu Sep 08 2011 - brian.cameron@oracle.com
20831N/A- Bump to 0.7.4.
20780N/A* Wed Jul 06 2011 - brian.cameron@oracle.com
20780N/A- Bump to 0.7.3.
18902N/A* Mon Jun 20 2010 - yuntong.jin@sun.com
18902N/A- Change owner to jouby
18003N/A* Tue Dec 29 2009 - jedy.wang@sun.com
18003N/A- Add 64-bit support.
15696N/A* Tue Jan 20 2009 - brian.cameron@sun.com
15696N/A- Add libnotify-01-uninstalled-pc.diff.
15665N/A* Wed Dec 03 2008 - jedy.wang@sun.com
15665N/A- Bump to 0.4.5.
10363N/A* Thu Mar 25 2007 - jedy.wang@sun.com
10363N/A- Initial spec