startup-notification.spec revision 18603
10139N/A#
10139N/A# spec file for package startup-notification
10139N/A#
10139N/A# Copyright (c) 2005 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#
17185N/A%define owner padraig
10139N/A#
17178N/A
18603N/A%define OSR LFI#105446 (gnome Exec. summary):n/a
17178N/A
10139N/AName: startup-notification
10139N/ALicense: LGPL
10139N/AGroup: System/Libraries
10332N/AVersion: 0.9
10139N/ARelease: 1
10139N/ADistribution: Java Desktop System
10139N/AVendor: Sun Microsystems, Inc.
10139N/ASummary: Startup Notification Library
10332N/ASource: http://ftp.gnome.org/pub/GNOME/sources/startup-notification/0.9/%{name}-%{version}.tar.bz2
10139N/AURL: http://www.gnome.org
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/ADocdir: %{_defaultdocdir}/%{name}
10139N/AAutoreqprov: on
10139N/APrereq: /sbin/ldconfig
10139N/A
10139N/A%description
10139N/AThe startup-notification library contains a reference implementation of the startup notification
10139N/Aprotocol, as defined on http://www.freedesktop.org.
10139N/A
10139N/A%package devel
10139N/ASummary: Startup Notification Development Library
10139N/AGroup: Development/Libraries
10139N/A
10139N/A%description devel
10139N/AThe startup-notification library contains a reference implementation of the startup notification
10139N/Aprotocol, as defined on http://www.freedesktop.org.
10139N/A
10139N/A%prep
10139N/A%setup -q
10139N/A
10139N/A%build
10139N/A%ifos linux
10139N/Aif [ -x /usr/bin/getconf ]; then
10139N/A CPUS=`getconf _NPROCESSORS_ONLN`
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/ACFLAGS="$RPM_OPT_FLAGS " \
10139N/A./configure --prefix=%{_prefix} \
10139N/A --sysconfdir=%{_sysconfdir}
10139N/Amake -j $CPUS
10139N/A
10139N/A%install
10139N/Amake DESTDIR=$RPM_BUILD_ROOT install
10139N/Arm $RPM_BUILD_ROOT%{_libdir}/*.a
10139N/Arm $RPM_BUILD_ROOT%{_libdir}/*.la
10139N/A
12889N/A#%check
12889N/Amake check
12889N/A
10139N/A%post
10139N/A/sbin/ldconfig
10139N/A
10139N/A%postun
10139N/A/sbin/ldconfig
10139N/A
10139N/A%clean
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A
10139N/A%files
10139N/A%defattr(-,root,root)
10139N/A%{_libdir}/libstartup-notification*so.*
10139N/A
10139N/A%files devel
10139N/A%defattr(-, root, root)
10139N/A%{_libdir}/pkgconfig/*.pc
10139N/A%{_libdir}/libstartup-notification*so
10139N/A%{_includedir}/startup-notification-1.0/*
10139N/A
10139N/A%changelog
12889N/A* Wed Apr 16 2008 - damien.carbery@sun.com
12889N/A- Add 'make check' call after %install.
12889N/A
10332N/A* Mon Mar 20 2007 - damien.carbery@sun.com
10332N/A- Bump to 0.9. Remove upstream patch, 01-__FUNCTION__.
10332N/A
10139N/A* Fri May 06 2005 - glynn.foster@sun.com
10139N/A- Bump to 0.8
10139N/A
10139N/A* Wed Jul 07 2004 - niall.power@sun.com
10139N/A- ported to rpm4
10139N/A
10139N/A* Wed Jul 07 2004 - dermot.mccluskey@sun.com
10139N/A- added "-j $CPUS" to make to speed up builds
10139N/A
10139N/A* Sun Feb 15 2004 - <laca@sun.com>
10139N/A- add patch to change __FUNCTION__ to __func__ for Forte compatibility
10139N/A
10139N/A* Thu Aug 14 2003 - <laca@sun.com>
10139N/A- move lib*.so to -devel, remove *.a, *.la
10139N/A
10139N/A* Thu May 13 2003 - ghee.teo@Sun.COM
10139N/A- Created new spec file for startup-notification
10139N/A