SUNWxdg-user-dirs-gtk.spec
author dkenny
Fri, 22 Feb 2008 10:58:42 +0000
changeset 11696 98d66a1a8931
child 12031 8ed3afd23a6f
permissions -rw-r--r--
2008-02-22 Darren Kenny <[email protected]> * SUNWxdg-user-dirs-gtk.spec: Integrate new package to provide a GTK UI for handling SUNWxdg-user-dirs. * SUNWxdg-user-dirs.spec, patches/xdg-user-dirs-01-bugs.diff, patches/xdg-user-dirs-02-enable-nls.diff: Move from spec-files-other/core.

#
# spec file for package SUNWxdg-user-dirs-gtk
#
# Copyright 2008 Sun Microsystems, Inc.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Owner: dkenny
#

%include Solaris.inc

Name:                SUNWxdg-user-dirs-gtk
Summary:             GTK Frontend for handling user directories
Version:             0.7
Source:              http://ftp.gnome.org/pub/gnome/sources/xdg-user-dirs-gtk/%{version}/xdg-user-dirs-gtk-%{version}.tar.gz
SUNW_BaseDir:        %{_basedir}
BuildRoot:           %{_tmppath}/%{name}-%{version}-build
%include default-depend.inc

Requires: %name-root
Requires: SUNWxdg-user-dirs

%if %build_l10n
%package l10n
Summary:             %{summary} - l10n files
SUNW_BaseDir:        %{_basedir}
%include default-depend.inc
Requires:            %{name}
%endif

%package root
Summary:             %{summary} - / filesystem
SUNW_BaseDir:        /
%include default-depend.inc


%prep
%setup -q -n xdg-user-dirs-gtk-%{version}

%build
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
if test "x$CPUS" = "x" -o $CPUS = 0; then
     CPUS=1
fi

intltoolize -c -f --automake
aclocal
autoconf
automake -a -c -f
./configure --prefix=%{_prefix}  \
            --bindir=%{_bindir} \
            --sysconfdir=/etc

make -j$CPUS


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

%if %build_l10n
%else
# REMOVE l10n FILES
rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
# there's nothing else in _datadir
rmdir $RPM_BUILD_ROOT%{_datadir}
%endif

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr (-, root, bin)
%{_bindir}

%if %build_l10n
%files l10n
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%attr (-, root, other) %{_datadir}/locale
%endif

%files root
%defattr (-, root, sys)
%dir %attr (0755, root, sys) %{_sysconfdir}
%{_sysconfdir}/*


%changelog
* Fri Feb 22 2008 - [email protected]
- initial version - 0.7