Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWgnome-gvfs
      3 #
      4 # includes module(s): gvfs
      5 #
      6 # Copyright 2007 Sun Microsystems, Inc.
      7 # This file and all modifications and additions to the pristine
      8 # package are under the same license as the package itself.
      9 #
     10 # Owner: gheet
     11 #
     12 %include Solaris.inc
     13 
     14 %use gvfs = gvfs.spec
     15 
     16 Name:                    SUNWgnome-gvfs
     17 Summary:                 GNOME virtual file system framework
     18 Version:                 %{default_pkg_version}
     19 Source:                  %{name}-manpages-0.1.tar.gz
     20 SUNW_BaseDir:            %{_basedir}
     21 SUNW_Copyright:          %{name}.copyright
     22 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     23 
     24 %include default-depend.inc
     25 Requires: SUNWgnome-base-libs
     26 Requires: SUNWdbus
     27 Requires: SUNWlibmsr
     28 Requires: SUNWsmbau
     29 Requires: SUNWlibsoup
     30 Requires: SUNWgnome-config
     31 Requires: SUNWgnome-libs
     32 Requires: SUNWhal
     33 Requires: SUNWavahi-bridge-dsd
     34 BuildRequires: SUNWgnome-base-libs-devel
     35 BuildRequires: SUNWdbus-devel
     36 BuildRequires: SUNWlibsoup-devel
     37 BuildRequires: SUNWgnome-config-devel
     38 BuildRequires: SUNWgnome-libs-devel
     39 BuildRequires: SUNWhal
     40 BuildRequires: SUNWavahi-bridge-dsd-devel
     41 %if %option_with_gnu_iconv
     42 Requires: SUNWgnu-libiconv
     43 Requires: SUNWgnu-gettext
     44 %else
     45 Requires: SUNWuiu8
     46 %endif
     47 
     48 %if %build_l10n
     49 %package l10n
     50 Summary:                 %{summary} - l10n files
     51 SUNW_BaseDir:            %{_basedir}
     52 %include default-depend.inc
     53 Requires:                %{name}
     54 %endif
     55 
     56 %prep
     57 rm -rf %name-%version
     58 mkdir %name-%version
     59 %gvfs.prep -d %name-%version
     60 cd %{_builddir}/%name-%version
     61 gzcat %SOURCE0 | tar xf -
     62 
     63 %build
     64 # -D_XPG4_2 is to get CMSG_SPACE declaration in <sys/socket.h>.
     65 # /usr/sfw/include needed for libsmbclient.h
     66 export CFLAGS="%optflags -D_XPG4_2 -D__EXTENSIONS__ -I/usr/sfw/include"
     67 %if %option_with_gnu_iconv
     68 export CFLAGS="$CFLAGS -I/usr/gnu/include -L/usr/gnu/lib -R/usr/gnu/lib -lintl"
     69 %endif
     70 export RPM_OPT_FLAGS="$CFLAGS"
     71 export LDFLAGS="%_ldflags -lxml2 -L/usr/sfw/lib -R/usr/sfw/lib"
     72 %gvfs.build -d %name-%version
     73 
     74 %install
     75 rm -rf $RPM_BUILD_ROOT
     76 %gvfs.install -d %name-%version
     77 rm $RPM_BUILD_ROOT%{_libdir}/*.la
     78 rm $RPM_BUILD_ROOT%{_libdir}/gio/modules/*.la
     79 # Remove gvfs-bash-completion.sh, a bash autocompletion script in the
     80 # %{_sysconfdir}/profile.d dir. We don't ship such files. It is the only file
     81 # under %{_sysconfdir} so remove the entire structure.
     82 # rm/rmdir used instead of 'rm -r' so that files added under %{_sysconfdir} are
     83 # found, via build failure.
     84 rm $RPM_BUILD_ROOT%{_sysconfdir}/profile.d/gvfs-bash-completion.sh
     85 rmdir $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
     86 rmdir $RPM_BUILD_ROOT%{_sysconfdir}
     87 
     88 rm -rf $RPM_BUILD_ROOT%{_mandir}
     89 cd %{_builddir}/%name-%version/sun-manpages
     90 make install DESTDIR=$RPM_BUILD_ROOT
     91 
     92 %if %build_l10n
     93 %else
     94 # REMOVE l10n FILES
     95 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     96 %endif
     97 
     98 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
     99 
    100 %clean
    101 rm -rf $RPM_BUILD_ROOT
    102 
    103 %files
    104 %defattr (-, root, bin)
    105 %dir %attr (0755, root, bin) %{_bindir}
    106 %{_bindir}/*
    107 %dir %attr (0755, root, bin) %{_libdir}
    108 %{_libdir}/gvfsd*
    109 %{_libdir}/gvfs-hal-volume-monitor
    110 %{_libdir}/libgvfscommon.so*
    111 %{_libdir}/gio/modules/*.so*
    112 %dir %attr (0755, root, sys) %{_datadir}
    113 %{_datadir}/dbus-1/services/gvfs-daemon.service
    114 %{_datadir}/dbus-1/services/org.gtk.Private.HalVolumeMonitor.service
    115 %{_datadir}/gvfs
    116 %dir %attr(0755, root, bin) %{_mandir}
    117 %dir %attr(0755, root, bin) %{_mandir}/man1
    118 %{_mandir}/man1/*
    119 %dir %attr (0755, root, bin) %{_includedir}
    120 %{_includedir}/*
    121 
    122 %if %build_l10n
    123 %files l10n
    124 %defattr (-, root, bin)
    125 %dir %attr (0755, root, sys) %{_datadir}
    126 %attr (-, root, other) %{_datadir}/locale
    127 %endif
    128 
    129 %changelog
    130 * Wed Jul 23 2008 - damien.carbery@sun.com
    131 - Update %files for new tarball. Two new files delivered.
    132 * Thu Jul 10 2008 - damien.carbery@sun.com
    133 - Add Build/Requires SUNWavahi-bridge-dsd/-devel to ensure avahi support built.
    134 * Wed Jun 18 2008 - damien.carbery@sun.com
    135 - Add Build/Requires SUNWgnome-config/-devel, SUNWgnome-libs/-devel and SUNWhal
    136   after check-deps.pl run.
    137 * Fri May 23 2008 - damien.carbery@sun.com
    138 - Add code to incorporate manpages tarball.
    139 * Wed Apr 16 2008 - damien.carbery@sun.com
    140 - Change how %{_sysconfdir}/profile.d is removed to be correct and future proof.
    141 * Tue Apr 15 2008 - alvaro@sun.com
    142 - SUNWgnome-gvfs-root removed.
    143 * Tue Apr 07 2008 - jedy.wang@sun.com
    144 - Add manpages.
    145 * Tue Mar 04 2008 - damien.carbery@sun.com
    146 - Change SUNWevolution-libs to SUNWlibsoup as libsoup is the real dependency.
    147 * Mon Mar 03 2008 - alvaro.lopez@sun.com
    148 - Added new dependencies: SUNWevolution-libs{,-devel}
    149 * Thu Feb 28 2008 - damien.carbery@sun.com
    150 - Move from spec-files-extra, rename to SUNWgnome-gvfs and remove SFEgio
    151   dependency. Update %files and add l10n pkg for 0.1.8 tarball
    152 * Sun Nov 18 2007 - daymobrew@users.sourceforge.net
    153 - Add support for building on Indiana systems. Add changes for gvfs 0.0.2.
    154 * Fri Nov 09 2007 - nonsea@users.sourceforge.net
    155 - Add SFEgio to Requires, add SFEgio-devel to BuildRequires.
    156 * Thu Nov 07 2007 - damien.carbery@sun.com
    157 - Initial version.
    158