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