12438N/A#
12438N/A# spec file for package SUNWxdg-user-dirs
12438N/A#
12438N/A# Copyright 2008 Sun Microsystems, Inc.
12438N/A# This file and all modifications and additions to the pristine
12438N/A# package are under the same license as the package itself.
12438N/A#
17823N/A%define owner lin
12438N/A#
12438N/A
12438N/A%include Solaris.inc
15712N/A%include l10n.inc
12438N/A
17183N/A%define OSR 8317:1.0.2
17183N/A
12438N/AName: SUNWxdg-user-dirs
18688N/AIPS_package_name: library/xdg/xdg-user-dirs
18688N/AMeta(info.classification): %{classification_prefix}:Applications/System Utilities
12438N/ASummary: Tool to help manage user directories
19026N/AVersion: 0.13
17031N/ALicense: GPL v2, MIT/X
12438N/ASource: http://user-dirs.freedesktop.org/releases/xdg-user-dirs-%{version}.tar.gz
17768N/ASource1: %{name}-manpages-0.1.tar.gz
17971N/ASource2: l10n-configure.sh
17971N/ASource3: xdg-user-dirs-po-sun-%{po_sun_version}.tar.bz2
12438N/A# date:2008-02-15 owner:dkenny type:bug
12438N/APatch0: xdg-user-dirs-01-bugs.diff
16393N/A# date:2009-04-16 owner:fujiwara type:bug bugster:6740283 bugid:17258
16393N/APatch2: xdg-user-dirs-02-g11n-launch-none-utf8.diff
12438N/ASUNW_BaseDir: %{_basedir}
12856N/ASUNW_Copyright: %{name}.copyright
12438N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
12438N/A%include default-depend.inc
20857N/A%include gnome-incorporation.inc
20857N/ABuildRequires: SUNWglib2
12438N/ARequires: %name-root
13074N/ARequires: SUNWbash
16401N/ABuildRequires: SUNWglib2-devel
15712N/ABuildRequires: SUNWgnu-gettext
12438N/A
12438N/A%package l10n
12438N/ASummary: %{summary} - l10n files
12438N/ARequires: %{name}
12438N/A
12438N/A%package root
12438N/ASummary: %{summary} - / filesystem
12438N/ASUNW_BaseDir: /
12438N/A%include default-depend.inc
20857N/A%include gnome-incorporation.inc
12438N/A
12438N/A%prep
12780N/A%setup -c -q -n %{name}-%{version}
12780N/Acd xdg-user-dirs-%{version}
12438N/A%patch0 -p1
16393N/A%patch2 -p1
15712N/A
17971N/Abzcat %SOURCE3 | tar xf -
15712N/Acd po-sun; make; cd ..
16393N/A/bin/rm -f po/stamp-po
12438N/A
14273N/Ased -e "s/TEMPLATES=Templates/TEMPLATES=Documents\/Templates/" \
13843N/A -e "s/MUSIC=Music/MUSIC=Documents\/Music/" \
13843N/A -e "s/PICTURES=Pictures/PICTURES=Documents\/Pictures/" \
17920N/A -e "s/VIDEOS=Videos/VIDEOS=Documents\/Videos/" user-dirs.defaults > user-dirs.defaults.$$
13843N/Amv user-dirs.defaults.$$ user-dirs.defaults
13843N/A
16393N/A# xdg-user-dirs-gtk-update invokes rmdir so the child dirs need to be
16393N/A# removed before the parent dir is removed.
16393N/A# % rmdir Documents/Templates
16393N/A# % rmdir Documents
16393N/Agrep "^#" user-dirs.defaults > user-dirs.defaults.$$
16393N/Agrep -v "^#" user-dirs.defaults |\
16393N/A env LC_ALL=C sort -r -t = -k 2 >> user-dirs.defaults.$$
16393N/Amv user-dirs.defaults.$$ user-dirs.defaults
16393N/A
12508N/Ased -e "s/^filename_encoding=UTF-8/filename_encoding=locale/" \
12508N/A user-dirs.conf > user-dirs.conf.$$
12508N/Amv user-dirs.conf.$$ user-dirs.conf
12780N/Acd ..
12508N/A
12780N/A#unzip the manpage tarball
12780N/Acd %{_builddir}/%{name}-%{version}
12780N/Agzcat %SOURCE1 | tar xf -
12438N/A
12438N/A%build
12438N/ACPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
12438N/Aif test "x$CPUS" = "x" -o $CPUS = 0; then
12438N/A CPUS=1
12438N/Afi
12438N/A
12780N/Acd xdg-user-dirs-%{version}
12438N/Aexport LDFLAGS="%_ldflags -lglib-2.0"
12438N/Aexport CFLAGS="%optflags"
12773N/A
17971N/Abash -x %SOURCE2 --enable-copyright
12773N/A
12438N/Aaclocal
12438N/Aautoconf
12438N/Aautomake -a -c -f
12438N/A./configure --prefix=%{_prefix} \
12438N/A --bindir=%{_bindir} \
12438N/A --sysconfdir=/etc
12438N/A
12438N/Amake -j$CPUS
12780N/Acd ..
12438N/A
12438N/A%install
12438N/Arm -rf $RPM_BUILD_ROOT
12780N/Acd xdg-user-dirs-%{version}
12780N/Amake install DESTDIR=$RPM_BUILD_ROOT
12780N/Acd ..
12780N/A
12780N/A#Install manpages
12780N/Arm -rf $RPM_BUILD_ROOT%{_mandir}
12780N/Acd %{_builddir}/%name-%version/sun-manpages
12438N/Amake install DESTDIR=$RPM_BUILD_ROOT
12438N/A
12438N/A%clean
12438N/Arm -rf $RPM_BUILD_ROOT
12438N/A
12438N/A%files
12438N/A%defattr (-, root, bin)
12438N/A%{_bindir}
12780N/A%dir %attr(0755, root, bin) %{_mandir}
12780N/A%{_mandir}/*/*
14314N/A%doc -d xdg-user-dirs-%{version} AUTHORS README NEWS
14314N/A%doc(bzip2) -d xdg-user-dirs-%{version} COPYING ChangeLog po/ChangeLog
14383N/A%dir %attr (0755, root, sys) %{_datadir}
14383N/A%dir %attr (0755, root, other) %{_datadir}/doc
12438N/A
12438N/A%files l10n
12438N/A%defattr (-, root, bin)
12438N/A%dir %attr (0755, root, sys) %{_datadir}
19058N/A%attr (-, root, other) %{_datadir}/locale
12438N/A
12438N/A%files root
12438N/A%defattr (-, root, sys)
12438N/A%dir %attr (0755, root, sys) %{_sysconfdir}
12438N/A%{_sysconfdir}/*
12438N/A
12438N/A%changelog
19026N/A* Mon Oct 04 2010 - brian.cameron@oracle.com
19026N/A- Bump to 0.13.
19026N/A* Sun Aug 1 2010 - christian.kelly@oracle.com
19026N/A- Fix %files.
17971N/A* Tue Dec 22 2009 - lin.ma@sun.com
17971N/A- Remove the .desktop file. Add xdg-user-dirs-update to 0020.pre-localization
17923N/A* Fri Dec 11 2009 - harry.fu@sun.com
17923N/A- Remove the appended SUN_BRANDING strings "Downloads" and "downloads."
17920N/A* Fri Dec 11 2009 - jedy.wang@sun.com
17920N/A- Update user-dirs.defaults according to changes of community.
17768N/A* Tue Nov 24 2009 - brian.cameron@sun.com
17768N/A- Bump to 0.12.
16393N/A* Thu Apr 16 2009 - takao.fujiwara@sun.com
16393N/A- Add patch xdg-user-dirs-02-g11n-launch-none-utf8.diff CR 6740283
15712N/A* Fri Jan 23 2009 - takao.fujiwara@sun.com
15712N/A- Remove patch enable-nls.diff. Use SUNWgnu-gettext instead.
15712N/A- Add l10n tarball.
14469N/A* Tue Sep 23 2008 - dave.lin@sun.com
17768N/A- Change the file attribute to root,bin in l10n pkg to keep consistency with
17768N/A SUNWgnome-l10n*.
14407N/A* Thu Sep 18 2008 - christian.kelly@sun.com
17768N/A- Remove /usr/share/, /usr/share/doc from -root, which I had added previously
17768N/A in error.
14324N/A* Fri Sep 15 2008 - christian.kelly@sun.com
14324N/A- Remove /usr/share/doc from %files.
14314N/A* Fri Sep 12 2008 - matt.keenn@sun.com
14314N/A- Update copyright
14273N/A* Thu Sep 11 2008 - jedy.wang@sun.com
14273N/A- Fix typo.
13993N/A* Fri Aug 22 2008 - jedy.wang@sun.com
13993N/A- Remove option_with_indiana_branding.
13843N/A* Tue Aug 12 2008 - jedy.wang@sun.com
13843N/A- Update user-dirs.defaults according to UI spec of OpenSolaris 2008.11.
13074N/A* Wed May 21 2008 - damien.carbery@sun.com
13074N/A- Add Requires: SUNWbash to fix 6697951.
12832N/A* Fri Apr 11 2008 - darren.kenny@sun.com
12832N/A- Restore desktop file, needs to be run on login after all to fix bug#6682501
12780N/A* Fri Apr 04 2008 - darren.kenny@sun.com
12780N/A- Add manpages
12508N/A* Fri Feb 29 2008 - takao.fujiwara@sun.com
12508N/A- set filename_encoding=locale
12450N/A* Mon Feb 25 2008 - darren.kenny@sun.com
12450N/A- Remove autostart file since the autoastart functionality is now provied by
12450N/A xdg-user-dirs-gtk
12439N/A* Fri Feb 22 2008 - darren.kenny@sun.com
12439N/A- Moved from spec-files-other/core
12438N/A* Wed Feb 20 2008 - takao.fujiwara@sun.com
12438N/A- Add l10n package
12438N/A* Tue Feb 19 2008 - darren.kenny@sun.com
12438N/A- Bump to 0.10
12438N/A* Fri Feb 15 2008 - dermot.mccluskey@sun.com
12438N/A- added patch comment
12438N/A- prepend %_ldflags to $LDFLAGS
12438N/A- set CFLAGS
12438N/A* Tue Feb 12 2008 - darren.kenny@sun.com
12438N/A- Updated to create a root pkg and fix a bug in creating of directories.
12438N/A Renamed patch to reflect this change.
12438N/A- Created an autostart desktop file to ensure it's run on startup of desktop.
12438N/A* Tue Feb 12 2008 - dermot.mccluskey@sun.com
12438N/A- initial version
16401N/A
19461N/A
19778N/A