startup-notification.spec revision 10139
20843N/A#
20843N/A# spec file for package startup-notification
20843N/A#
20885N/A# Copyright (c) 2005 Sun Microsystems, Inc.
20843N/A# This file and all modifications and additions to the pristine
20843N/A# package are under the same license as the package itself.
20843N/A#
20843N/A# Owner: harrylu
20843N/A#
20843N/AName: startup-notification
20843N/ALicense: LGPL
20843N/AGroup: System/Libraries
20843N/AVersion: 0.8
20843N/ARelease: 1
20843N/ADistribution: Java Desktop System
20843N/AVendor: Sun Microsystems, Inc.
20862N/ASummary: Startup Notification Library
20855N/ASource: http://ftp.gnome.org/pub/GNOME/sources/startup-notification/0.8/%{name}-%{version}.tar.bz2
20843N/A# date:2004-02-15 owner:laca type:bug bugzilla:392801
20843N/APatch: startup-notification-01-__FUNCTION__.diff
20843N/AURL: http://www.gnome.org
20843N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
20843N/ADocdir: %{_defaultdocdir}/%{name}
20843N/AAutoreqprov: on
20843N/APrereq: /sbin/ldconfig
20899N/A
20852N/A%description
20852N/AThe startup-notification library contains a reference implementation of the startup notification
20899N/Aprotocol, as defined on http://www.freedesktop.org.
20867N/A
20899N/A%package devel
20867N/ASummary: Startup Notification Development Library
20867N/AGroup: Development/Libraries
20867N/A
20899N/A%description devel
20876N/AThe startup-notification library contains a reference implementation of the startup notification
20899N/Aprotocol, as defined on http://www.freedesktop.org.
20876N/A
20899N/A%prep
20899N/A%setup -q
20899N/A%patch -p1
20843N/A
20843N/A%build
20843N/A%ifos linux
20843N/Aif [ -x /usr/bin/getconf ]; then
20843N/A CPUS=`getconf _NPROCESSORS_ONLN`
20843N/Afi
20899N/A%else
20843N/A CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
20843N/A%endif
20852N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
20866N/A CPUS=1
20867N/Afi
20876N/A
20899N/ACFLAGS="$RPM_OPT_FLAGS " \
20899N/A./configure --prefix=%{_prefix} \
20843N/A --sysconfdir=%{_sysconfdir}
20843N/Amake -j $CPUS
20843N/A
20843N/A%install
20843N/Amake DESTDIR=$RPM_BUILD_ROOT install
20843N/Arm $RPM_BUILD_ROOT%{_libdir}/*.a
20843N/Arm $RPM_BUILD_ROOT%{_libdir}/*.la
20899N/A
20876N/A%post
20876N/A/sbin/ldconfig
20843N/A
20899N/A%postun
20899N/A/sbin/ldconfig
20843N/A
20843N/A%clean
20843N/Arm -rf $RPM_BUILD_ROOT
20843N/A
20856N/A%files
20856N/A%defattr(-,root,root)
20856N/A%{_libdir}/libstartup-notification*so.*
20856N/A
20856N/A%files devel
20843N/A%defattr(-, root, root)
20843N/A%{_libdir}/pkgconfig/*.pc
20843N/A%{_libdir}/libstartup-notification*so
20843N/A%{_includedir}/startup-notification-1.0/*
20843N/A
20843N/A%changelog
20843N/A* Fri May 06 2005 - glynn.foster@sun.com
20852N/A- Bump to 0.8
20856N/A
20852N/A* Wed Jul 07 2004 - niall.power@sun.com
20843N/A- ported to rpm4
20843N/A
20843N/A* Wed Jul 07 2004 - dermot.mccluskey@sun.com
20843N/A- added "-j $CPUS" to make to speed up builds
20843N/A
20843N/A* Sun Feb 15 2004 - <laca@sun.com>
20843N/A- add patch to change __FUNCTION__ to __func__ for Forte compatibility
20843N/A
20843N/A* Thu Aug 14 2003 - <laca@sun.com>
20843N/A- move lib*.so to -devel, remove *.a, *.la
20843N/A
20843N/A* Thu May 13 2003 - ghee.teo@Sun.COM
20843N/A- Created new spec file for startup-notification
20843N/A
20843N/A