15177N/A#
15177N/A# spec file for package SUNWxdg-utils
15177N/A#
15177N/A# Copyright 2008 Sun Microsystems, Inc.
15177N/A# This file and all modifications and additions to the pristine
15177N/A# package are under the same license as the package itself.
15177N/A#
17824N/A%define owner lin
15177N/A#
15177N/A
18593N/A%define OSR 8317:1.0.2
18593N/A
15177N/A%include Solaris.inc
15177N/A
15177N/AName: SUNWxdg-utils
18688N/AIPS_package_name: desktop/xdg/xdg-utils
18688N/AMeta(info.classification): %{classification_prefix}:Applications/System Utilities
15177N/ASummary: The Portland Project's desktop integration tools
15177N/AVersion: 1.0.2
17031N/ALicense: zlib/libpng
15177N/ASource: http://portland.freedesktop.org/download/xdg-utils-%{version}.tgz
15177N/A# date:2008-02-13 owner:dkenny type:bug
15177N/APatch1: xdg-utils-01-bash.diff
15177N/A# date:2008-02-13 owner:dkenny type:bug
15177N/APatch2: xdg-utils-02-path.diff
15177N/A# date:2008-02-19 owner:dkenny type:bug
15177N/APatch3: xdg-utils-03-nawk.diff
15915N/A# date:2009-02-19 owner:mattman type:branding
15915N/APatch4: xdg-utils-04-manpages.diff
15177N/ASUNW_BaseDir: %{_basedir}
15177N/ASUNW_Copyright: %{name}.copyright
15177N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
15177N/A%include default-depend.inc
20857N/A%include gnome-incorporation.inc
15177N/ARequires: SUNWbash
15177N/A
15177N/A%prep
15177N/A%setup -q -n xdg-utils-%{version}
15177N/A%patch1 -p1
15177N/A%patch2 -p1
15177N/A%patch3 -p1
15915N/A%patch4 -p1
15177N/A
15177N/A%build
15177N/A
15177N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
15177N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
15177N/A CPUS=1
15177N/Afi
15177N/A
15177N/A./configure --prefix=%{_prefix} \
15177N/A --bindir=%{_bindir} \
15177N/A --mandir=%{_mandir}
15177N/A
15177N/Amake -j$CPUS
15177N/A
15177N/A%install
15177N/Arm -rf $RPM_BUILD_ROOT
15177N/Amake install DESTDIR=$RPM_BUILD_ROOT
15177N/A
15177N/A%clean
15177N/Arm -rf $RPM_BUILD_ROOT
15177N/A
15177N/A%files
15177N/A%defattr (-, root, bin)
15177N/A%{_bindir}
15177N/A%{_mandir}
15177N/A%dir %attr (0755, root, sys) %{_datadir}
15177N/A%doc LICENSE scripts/README tests/debug/README
15177N/A%doc(bzip2) ChangeLog README tests/README
15177N/A%dir %attr (0755, root, other) %{_datadir}/doc
15177N/A
15177N/A%changelog
15915N/A* Thu Feb 02 2009 - matt.keenn@sun.com
15915N/A- Add manpage patch, addds attributes to all delivered manpages
15177N/A* Tue Sep 16 2008 - matt.keenn@sun.com
15177N/A- Update copyright
15177N/A* Thu Mar 15 2008 - lin.ma@sun.com
15177N/A- Add SUNWbash dependency.
15177N/A* Wed Feb 19 2008 - darren.kenny@sun.com
15177N/A- Add patch to use nawk instead of awk
15177N/A* Wed Feb 13 2008 - darren.kenny@sun.com
15177N/A- Add patch to prepend X dirs to PATH.
15177N/A* Tue Feb 12 2008 - dermot.mccluskey@sun.com
15177N/A- initial version
19462N/A
19779N/A