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