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