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