libnotify.spec revision 17185
20779N/A#
20779N/A# spec file for package libnotify
20779N/A#
20779N/A# Copyright (c) 2006 Sun Microsystems, Inc.
20779N/A# This file and all modifications and additions to the pristine
20779N/A# package are under the same license as the package itself.
20779N/A#
20779N/A%define owner jedy
20779N/A# bugdb: http://trac.galago-project.org/
20779N/A#
20779N/A
20779N/A%define OSR 5892:0.4
20779N/A
20779N/AName: libnotify
20779N/AVersion: 0.4.5
20779N/ARelease: 1
20779N/ASummary: libnotify is a notification system for the GNOME desktop environment.
20779N/A
20779N/AGroup: System/Libraries
20779N/ALicense: LGPL
20779N/AURL: http://www.galago-project.org/news/index.php
20805N/ADistribution: java-desktop-system
20779N/AVendor: Sun Microsystems, Inc.
20779N/ASource: http://www.galago-project.org/files/releases/source/libnotify/libnotify-%{version}.tar.bz2
20779N/A# date:2009-01-20 owner:yippi type:feature bugid:176
20779N/APatch1: libnotify-01-uninstalled-pc.diff
20779N/A
20779N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
20779N/A
20779N/A%define gtk2_version 2.6.0
20779N/A%define dbus_version 0.36
20779N/A
20779N/ABuildRequires: gtk2-devel >= %{gtk2_version}
20805N/ABuildRequires: dbus-devel >= %{dbus_version}
20779N/ARequires: gtk2 >= %{gtk2_version}
20779N/ARequires: dbus >= %{dbus_version}
20779N/A
20779N/A%description
20779N/ALibnotify is a notification system for the GNOME desktop environment.
20779N/A
20779N/A%prep
20779N/A%setup -q
20779N/A%patch1 -p1
20779N/A
20779N/A%build
20779N/A%ifos linux
20779N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
20779N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
20779N/A CPUS=1
20779N/Afi
20779N/A%else
20779N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
20779N/A%endif
20779N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
20779N/A CPUS=1
20779N/Afi
20779N/A
20779N/Alibtoolize --copy --force
20779N/Aaclocal $ACLOCAL_FLAGS
20779N/Aautoheader
20779N/Aautomake -a -c -f
20779N/Aautoconf
20779N/A./configure --prefix=%{_prefix} \
20779N/A --libdir=%{_libdir}
20779N/Amake -j $CPUS
20779N/A
20779N/A%install
20805N/Amake DESTDIR=$RPM_BUILD_ROOT install
20805N/Afind $RPM_BUILD_ROOT%{_libdir} -type f -name "*.a" -exec rm -f {} ';'
20779N/Afind $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
20805N/A
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, root)
%doc README AUTHORS COPYING
%{_bindir}/*
%{_libdir}/*.so*
%{_libdir}/pkgconfig/*
%{_includedir}/libnotify/*
%{_datadir}/gtk-doc/*
%changelog
* Tue Jan 20 2009 - brian.cameron@sun.com
- Add libnotify-01-uninstalled-pc.diff.
* Wed Dec 03 2008 - jedy.wang@sun.com
- Bump to 0.4.5.
* Thu Mar 25 2007 - jedy.wang@sun.com
- Initial spec