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