libnotify.spec revision 18003
10363N/A#
10363N/A# spec file for package libnotify
10363N/A#
10363N/A# Copyright (c) 2006 Sun Microsystems, Inc.
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#
17185N/A%define owner jedy
15698N/A# bugdb: http://trac.galago-project.org/
10363N/A#
10363N/A
17180N/A%define OSR 5892:0.4
17180N/A
10363N/AName: libnotify
15665N/AVersion: 0.4.5
10363N/ARelease: 1
10363N/ASummary: libnotify is a notification system for the GNOME desktop environment.
10363N/A
10363N/AGroup: System/Libraries
10363N/ALicense: LGPL
10363N/AURL: http://www.galago-project.org/news/index.php
10363N/ADistribution: java-desktop-system
10363N/AVendor: Sun Microsystems, Inc.
10363N/ASource: http://www.galago-project.org/files/releases/source/libnotify/libnotify-%{version}.tar.bz2
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
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