Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWcheese
      3 #
      4 # includes module(s): cheese
      5 #
      6 # Copyright 2009 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 %define owner elaine 
     11 #
     12 
     13 %define OSR gnome.org:0
     14 
     15 %include Solaris.inc
     16 %define source_name cheese
     17 
     18 Name:                    SUNWcheese
     19 Summary:                 Cheese - GNOME application for taking photos and videos from a webcam
     20 Version:                 2.28.1
     21 Source:                  http://ftp.gnome.org/pub/GNOME/sources/cheese/2.28/cheese-%{version}.tar.gz
     22 
     23 # owner:elaine date:2008-09-01 type:branding
     24 # Solaris has not the v4l1 interface.
     25 Patch1:                  cheese-01-lack-v4l1.diff
     26 
     27 # owner:elaine date:2008-09-01 type:bug bugster:6743364
     28 Patch2:                  cheese-02-lack-uvc-framerate.diff
     29 
     30 # owner:elaine date:2008-09-01 type:bug bugzilla:549804
     31 Patch3:                  cheese-03-thumbnail-create.diff
     32 
     33 URL:                     http://live.gnome.org/Cheese
     34 SUNW_BaseDir:            %{_basedir}
     35 SUNW_Copyright:          %{name}.copyright
     36 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     37 %include default-depend.inc
     38 Source1:                 %{name}-manpages-0.1.tar.gz
     39 
     40 Requires: SUNWlibgnomecanvas
     41 Requires: SUNWgnome-media
     42 Requires: SUNWgnome-vfs
     43 Requires: SUNWcheese-root
     44 Requires: SUNWdbus
     45 Requires: SUNWevolution-data-server
     46 Requires: SUNWgnome-config
     47 Requires: SUNWhal
     48 Requires: SUNWlibrsvg
     49 Requires: SUNWxwrtl
     50 Requires: SUNWdesktop-cache
     51 Requires: SUNWcairo
     52 Requires: SUNWgnome-panel
     53 BuildRequires: SUNWlibgnomecanvas-devel
     54 BuildRequires: SUNWdbus-devel
     55 BuildRequires: SUNWevolution-data-server-devel
     56 BuildRequires: SUNWgnome-media-devel
     57 BuildRequires: SUNWgnome-vfs-devel
     58 BuildRequires: SUNWhal
     59 BuildRequires: SUNWlibrsvg-devel
     60 BuildRequires: SUNWcairo-devel
     61 
     62 %package root
     63 Summary:                 %{summary} - / filesystem
     64 SUNW_BaseDir:            /
     65 %include default-depend.inc
     66 Requires: SUNWgnome-config
     67 
     68 %if %build_l10n
     69 %package l10n
     70 Summary:                 %{summary} - l10n files
     71 SUNW_BaseDir:            %{_basedir}
     72 %include default-depend.inc
     73 Requires:                %{name}
     74 %endif
     75 
     76 %prep
     77 %setup -q -c -n %name-%version
     78 cd %{source_name}-%{version}
     79 %patch1 -p1
     80 #%patch2 -p1
     81 %patch3 -p1
     82 cd %{_builddir}/%name-%version
     83 gzcat %SOURCE1 | tar xf -
     84 
     85 %build
     86 cd %{source_name}-%{version}
     87 
     88 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     89 if test "x$CPUS" = "x" -o $CPUS = 0; then
     90     CPUS=1
     91 fi
     92 
     93 libtoolize --force
     94 autoreconf
     95 ./configure --prefix=%{_prefix} --mandir=%{_mandir} \
     96             --libdir=%{_libdir}              \
     97             --libexecdir=%{_libexecdir}      \
     98             --sysconfdir=%{_sysconfdir} 
     99 
    100 gmake -j$CPUS
    101 
    102 %install
    103 rm -rf $RPM_BUILD_ROOT
    104 cd %{source_name}-%{version}
    105 gmake install DESTDIR=$RPM_BUILD_ROOT
    106 
    107 %if %build_l10n
    108 %else
    109 # REMOVE l10n FILES
    110 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
    111 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/cheese/[a-z]*
    112 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/cheese/cheese-[a-z]*.omf
    113 %endif
    114 
    115 #install man page
    116 cd %{_builddir}/%name-%version/sun-manpages
    117 make install DESTDIR=$RPM_BUILD_ROOT
    118 
    119 %post
    120 %restart_fmri gconf-cache desktop-mime-cache icon-cache mime-types-cache
    121 
    122 %postun
    123 %restart_fmri desktop-mime-cache mime-types-cache
    124 
    125 %clean
    126 rm -rf $RPM_BUILD_ROOT
    127 
    128 %files
    129 %defattr (-, root, bin)
    130 %dir %attr (0755, root, bin) %{_bindir}
    131 %{_bindir}/cheese
    132 %dir %attr (0755, root, bin) %{_libdir}
    133 %dir %attr (0755, root, other) %{_libdir}/cheese
    134 %{_libdir}/cheese/*
    135 %dir %attr (0755, root, bin) %{_mandir}/man1
    136 %{_mandir}/man1/*
    137 %dir %attr (0755, root, sys) %{_datadir}
    138 %dir %attr (0755, root, other) %{_datadir}/cheese
    139 %{_datadir}/cheese/*
    140 %dir %attr (0755, root, other) %{_datadir}/icons
    141 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/
    142 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/
    143 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/apps/
    144 %{_datadir}/icons/hicolor/scalable/apps/*
    145 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16
    146 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16/apps/
    147 %{_datadir}/icons/hicolor/16x16/apps/*
    148 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/
    149 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/apps/
    150 %{_datadir}/icons/hicolor/22x22/apps/*
    151 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/
    152 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/apps/
    153 %{_datadir}/icons/hicolor/24x24/apps/*
    154 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/
    155 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/apps/
    156 %{_datadir}/icons/hicolor/32x32/apps/*
    157 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/
    158 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/apps/
    159 %{_datadir}/icons/hicolor/48x48/apps/*
    160 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/256x256/
    161 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/256x256/apps/
    162 %{_datadir}/icons/hicolor/256x256/apps/*
    163 %dir %attr (0755, root, other) %{_datadir}/applications
    164 %{_datadir}/applications/*.desktop
    165 %dir %attr (0755, root, other) %{_datadir}/gnome
    166 %{_datadir}/gnome/help/cheese/C
    167 %{_datadir}/omf/cheese/cheese-C.omf
    168 %dir %attr (0755, root, bin) %{_datadir}/dbus-1
    169 %dir %attr (0755, root, bin) %{_datadir}/dbus-1/services
    170 %{_datadir}/dbus-1/services/org.gnome.Cheese.service
    171 %doc -d cheese-%{version} AUTHORS
    172 %doc(bzip2) -d cheese-%{version} ChangeLog NEWS COPYING
    173 %dir %attr (0755, root, other) %{_datadir}/doc
    174 
    175 %files root
    176 %defattr (-, root, sys)
    177 %dir %attr(0755, root, sys) %{_sysconfdir}
    178 %{_sysconfdir}/gconf/schemas/cheese.schemas
    179 
    180 %if %build_l10n
    181 %files l10n
    182 %defattr (-, root, bin)
    183 %dir %attr (0755, root, sys) %{_datadir}
    184 %attr (-, root, other) %{_datadir}/locale
    185 %dir %attr (0755, root, other) %{_datadir}/gnome
    186 %{_datadir}/gnome/help/cheese/[a-z]*
    187 %{_datadir}/omf/cheese/cheese-[a-z]*.omf
    188 %endif
    189 
    190 %changelog
    191 * Tue Oct 20 2009 - dave.lin@sun.com
    192 - Bump to 2.28.1
    193 * Fri Sep 25 2009 - dave.lin@sun.com
    194 - Bump to 2.28.0.1
    195 * Wed Sep 23 2009 - dave.lin@sun.com
    196 - Bump to 2.28.0
    197 * Tue Sep 15 2009 - dave.lin@sun.com
    198 - Bump to 2.27.92.
    199 * Wed Aug 26 2009 - christian.kelly@sun.com
    200 - Bump to 2.27.91.
    201 - Remove cheese-04-gconf-schema.diff, upstream.
    202 * Tue Aug 11 2009 - christian.kelly@sun.com
    203 - Bump to 2.27.90.
    204 * Tue Jul 28 2009 - christian.kelly@sun.com
    205 - Bump to 2.27.5.
    206 * Tue Jun 30 2009 - elaine.xiong@sun.com
    207 - Bump to the unstable build 2.27.3 and update patches.
    208 * Tue Jun 30 2009 - dave.lin@sun.com
    209 - Add dependency on SUNWgnome-panel(CR6852720)
    210 * Sat May 16 2009 - elaine.xiong@sun.com
    211 - Bump to 2.26.0.
    212 * Fri Apr  3 2009 - laca@sun.com
    213 - use desktop-cache instead of postrun
    214 * Tue Feb 10 2009 - halton.huo@sun.com
    215 - Add dependency on SUNWlibrsvg, CR #6755918
    216 * Sun Sep 21 2008 - christian.kelly@sun.com
    217 - Fix typo from previous.
    218 * Sat Sep 20 2008 - christian.kelly@sun.com
    219 - Added BuildRequires SUNWlibsrvg-devel.
    220 * Fri Sep 19 2008 - elaine.xiong@sun.com
    221 - Assign attribute to shared folders.
    222 * Tue Sep 16 2008 - elaine.xiong@sun.com
    223 - Add %doc to %files for new copyright.
    224 * Mon Sep 08 2008 - elaine.xiong@sun.com
    225 - Create from SFEcheese.spec. Upgrade to 2.23.90.
    226 - Add patch cheese-01-lack-hal-backend.diff.
    227 - Add patch cheese-02-lack-uvc-framerate.diff
    228 - Add patch cheese-03-thumbnail-create.diff
    229 
    230