1 # 2 # spec file for package SUNWcheese 3 # 4 # includes module(s): cheese 5 # 6 %include Solaris.inc 7 %define source_name cheese 8 9 Name: SUNWcheese 10 Summary: Cheese - GNOME application for taking photos and videos from a webcam 11 Version: 2.23.90 12 Source: http://ftp.gnome.org/pub/GNOME/sources/cheese/2.23/cheese-%{version}.tar.bz2 13 14 # owner:elaine date:2008-09-01 type:bug bugster:6657549 15 Patch1: cheese-01-lack-hal-backend.diff 16 17 # owner:elaine date:2008-09-01 type:bug bugster:6743364 18 Patch2: cheese-02-lack-uvc-framerate.diff 19 20 # owner:elaine date:2008-09-01 type:bug bugzilla:549804 21 Patch3: cheese-03-thumbnail-create.diff 22 23 URL: http://live.gnome.org/Cheese 24 SUNW_BaseDir: %{_basedir} 25 SUNW_Copyright: %{name}.copyright 26 BuildRoot: %{_tmppath}/%{name}-%{version}-build 27 %include default-depend.inc 28 Source1: %{name}-manpages-0.1.tar.gz 29 30 BuildRequires: SUNWgnome-base-libs-devel 31 BuildRequires: SUNWgnome-media-devel 32 BuildRequires: SUNWgnome-vfs-devel 33 BuildRequires: SUNWdbus-devel 34 BuildRequires: SUNWevolution-data-server-devel 35 BuildRequires: SUNWlibrsvg-devel 36 Requires: SUNWgnome-base-libs 37 Requires: SUNWgnome-media 38 Requires: SUNWgnome-vfs 39 Requires: SUNWdbus 40 Requires: SUNWevolution-data-server 41 Requires: SUNWcheese-root 42 Requires: SUNWxwrtl 43 Requires: SUNWpostrun 44 Requires: SUNWgnome-config 45 46 %package root 47 Summary: %{summary} - / filesystem 48 SUNW_BaseDir: / 49 %include default-depend.inc 50 Requires: SUNWpostrun-root 51 Requires: SUNWgnome-config 52 53 %if %build_l10n 54 %package l10n 55 Summary: %{summary} - l10n files 56 SUNW_BaseDir: %{_basedir} 57 %include default-depend.inc 58 Requires: %{name} 59 %endif 60 61 %prep 62 %setup -q -c -n %name-%version 63 cd %{source_name}-%{version} 64 %patch1 -p1 65 %patch2 -p1 66 %patch3 -p1 67 cd %{_builddir}/%name-%version 68 gzcat %SOURCE1 | tar xf - 69 70 %build 71 cd %{source_name}-%{version} 72 73 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 74 if test "x$CPUS" = "x" -o $CPUS = 0; then 75 CPUS=1 76 fi 77 78 autoconf 79 ./configure --prefix=%{_prefix} --mandir=%{_mandir} \ 80 --libdir=%{_libdir} \ 81 --libexecdir=%{_libexecdir} \ 82 --sysconfdir=%{_sysconfdir} 83 84 gmake -j$CPUS 85 86 %install 87 rm -rf $RPM_BUILD_ROOT 88 cd %{source_name}-%{version} 89 gmake install DESTDIR=$RPM_BUILD_ROOT 90 91 %if %build_l10n 92 %else 93 # REMOVE l10n FILES 94 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 95 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/cheese/[a-z]* 96 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/cheese/cheese-[a-z]*.omf 97 %endif 98 99 #install man page 100 cd %{_builddir}/%name-%version/sun-manpages 101 make install DESTDIR=$RPM_BUILD_ROOT 102 103 104 %post 105 %include desktop-database-install.script 106 %include scrollkeeper-update.script 107 ( echo 'test -x %{_bindir}/update-mime-database || exit 0'; 108 echo '%{_bindir}/update-mime-database %{_datadir}/mime' 109 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait 110 %include icon-cache.script 111 112 %postun 113 %include desktop-database-uninstall.script 114 %include scrollkeeper-update.script 115 ( echo 'test -x %{_bindir}/update-mime-database || exit 0'; 116 echo '%{_bindir}/update-mime-database %{_datadir}/mime' 117 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait 118 119 %clean 120 rm -rf $RPM_BUILD_ROOT 121 122 %post root 123 %include gconf-install.script 124 125 %preun root 126 test -x $BASEDIR/var/lib/postrun/postrun || exit 0 127 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; 128 echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; 129 echo ' exit 0'; 130 echo '}'; 131 echo 'umask 0022'; 132 echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; 133 echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; 134 echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; 135 echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; 136 echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; 137 echo 'schemas="$SDIR/cheese.schemas"'; 138 echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' 139 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a 140 141 %files 142 %defattr (-, root, bin) 143 %dir %attr (0755, root, bin) %{_bindir} 144 %{_bindir}/cheese 145 %dir %attr (0755, root, bin) %{_libdir} 146 %dir %attr (0755, root, other) %{_libdir}/cheese 147 %{_libdir}/cheese/* 148 %dir %attr (0755, root, bin) %{_mandir}/man1 149 %{_mandir}/man1/* 150 %dir %attr (0755, root, sys) %{_datadir} 151 %dir %attr (0755, root, other) %{_datadir}/cheese 152 %{_datadir}/cheese/* 153 %dir %attr (0755, root, other) %{_datadir}/icons 154 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/ 155 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/ 156 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/scalable/apps/ 157 %{_datadir}/icons/hicolor/scalable/apps/* 158 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16 159 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/16x16/apps/ 160 %{_datadir}/icons/hicolor/16x16/apps/* 161 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/ 162 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/22x22/apps/ 163 %{_datadir}/icons/hicolor/22x22/apps/* 164 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/ 165 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/24x24/apps/ 166 %{_datadir}/icons/hicolor/24x24/apps/* 167 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/ 168 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/32x32/apps/ 169 %{_datadir}/icons/hicolor/32x32/apps/* 170 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/ 171 %dir %attr (0755, root, other) %{_datadir}/icons/hicolor/48x48/apps/ 172 %{_datadir}/icons/hicolor/48x48/apps/* 173 %dir %attr (0755, root, other) %{_datadir}/applications 174 %{_datadir}/applications/*.desktop 175 %dir %attr (0755, root, other) %{_datadir}/gnome 176 %{_datadir}/gnome/help/cheese/C 177 %{_datadir}/omf/cheese/cheese-C.omf 178 %dir %attr (0755, root, bin) %{_datadir}/dbus-1 179 %dir %attr (0755, root, bin) %{_datadir}/dbus-1/services 180 %{_datadir}/dbus-1/services/org.gnome.Cheese.service 181 %doc -d cheese-%{version} AUTHORS 182 %doc(bzip2) -d cheese-%{version} ChangeLog NEWS COPYING 183 %dir %attr (0755, root, other) %{_datadir}/doc 184 185 186 %files root 187 %defattr (-, root, sys) 188 %dir %attr(0755, root, sys) %{_sysconfdir} 189 %{_sysconfdir}/gconf/schemas/cheese.schemas 190 191 %if %build_l10n 192 %files l10n 193 %defattr (-, root, bin) 194 %dir %attr (0755, root, sys) %{_datadir} 195 %attr (-, root, other) %{_datadir}/locale 196 %dir %attr (0755, root, other) %{_datadir}/gnome 197 %{_datadir}/gnome/help/cheese/[a-z]* 198 %{_datadir}/omf/cheese/cheese-[a-z]*.omf 199 %endif 200 201 %changelog 202 * Mon Dec 01 2008 - dave.lin@sun.com 203 - Roll back to the previous version 2.23.90 request by Elaine. 204 * Tue Nov 25 2008 - dave.lin@sun.com 205 - Bump to 2.24.2 206 * Sun Sep 21 2008 - christian.kelly@sun.com 207 - Fix typo from previous. 208 * Sat Sep 20 2008 - christian.kelly@sun.com 209 - Added BuildRequires SUNWlibsrvg-devel. 210 * Fri Sep 19 2008 - elaine.xiong@sun.com 211 - Assign attribute to shared folders. 212 * Tue Sep 16 2008 - elaine.xiong@sun.com 213 - Add %doc to %files for new copyright. 214 * Mon Sep 08 2008 - elaine.xiong@sun.com 215 - Create from SFEcheese.spec. Upgrade to 2.23.90. 216 - Add patch cheese-01-lack-hal-backend.diff. 217 - Add patch cheese-02-lack-uvc-framerate.diff 218 - Add patch cheese-03-thumbnail-create.diff 219