1 # 2 # spec file for package SUNWgnome-camera 3 # 4 # includes module(s): libgphoto2, gphoto2, gtkam 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: mattman 11 # 12 %include Solaris.inc 13 %use libgphoto2 = libgphoto2.spec 14 %use gphoto2 = gphoto2.spec 15 %use gtkam = gtkam.spec 16 17 Name: SUNWgnome-camera 18 Summary: GNOME digital camera tool 19 Version: %{default_pkg_version} 20 Source: %{name}-manpages-0.1.tar.gz 21 SUNW_BaseDir: %{_basedir} 22 SUNW_Copyright: %{name}.copyright 23 BuildRoot: %{_tmppath}/%{name}-%{version}-build 24 25 %include default-depend.inc 26 Requires: SUNWgnome-libs 27 Requires: SUNWgnome-base-libs 28 Requires: SUNWlibusb 29 Requires: SUNWgnome-component 30 Requires: SUNWgnome-img-editor 31 Requires: SUNWjpg 32 Requires: SUNWlibexif 33 Requires: SUNWlibms 34 Requires: SUNWlibpopt 35 Requires: SUNWmlib 36 Requires: SUNWpostrun 37 Requires: SUNWdbus 38 Requires: SUNWdsdu 39 Requires: SUNWltdl 40 BuildRequires: SUNWgnome-component-devel 41 BuildRequires: SUNWlibexif-devel 42 BuildRequires: SUNWlibpopt-devel 43 # gtkam builds a gimp plug-in, so SUNWgnome-img-editor is a dependancy 44 BuildRequires: SUNWgnome-img-editor-devel 45 BuildRequires: SUNWgnu-gettext 46 BuildRequires: SUNWlibusb 47 BuildRequires: SUNWdbus-devel 48 BuildRequires: SUNWdsdu 49 BuildRequires: SUNWlibtool 50 BuildRequires: SUNWltdl 51 52 %if %build_l10n 53 %package l10n 54 Summary: %{summary} - l10n files 55 SUNW_BaseDir: %{_basedir} 56 %include default-depend.inc 57 Requires: %{name} 58 %endif 59 60 %package devel 61 Summary: %{summary} - development files 62 SUNW_BaseDir: %{_basedir} 63 %include default-depend.inc 64 65 %prep 66 rm -rf %name-%version 67 mkdir %name-%version 68 %libgphoto2.prep -d %name-%version 69 %gphoto2.prep -d %name-%version 70 %gtkam.prep -d %name-%version 71 cd %{_builddir}/%name-%version 72 gzcat %SOURCE0 | tar xf - 73 74 %build 75 # note: This ACLOCAL_FLAGS setting seems unnecessary, but it's 76 # needed so that gettext.m4 is used from /usr/share/aclocal and 77 # not from ./m4m 78 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal" 79 export CFLAGS="%optflags" 80 export RPM_OPT_FLAGS="$CFLAGS" 81 export LDFLAGS="%_ldflags -R/usr/sfw/lib" 82 83 %libgphoto2.build -d %name-%version 84 85 export PKG_CONFIG_PATH=%{_builddir}/%name-%version/libgphoto2-%{libgphoto2.version}:%{_builddir}/%name-%version/libgphoto2-%{libgphoto2.version}/libgphoto2_port:%{_pkg_config_path} 86 87 %gphoto2.build -d %name-%version 88 89 %gtkam.build -d %name-%version 90 91 %install 92 rm -rf $RPM_BUILD_ROOT 93 %libgphoto2.install -d %name-%version 94 %gphoto2.install -d %name-%version 95 %gtkam.install -d %name-%version 96 97 cd %{_builddir}/%name-%version/sun-manpages 98 make install DESTDIR=$RPM_BUILD_ROOT 99 100 rm -rf $RPM_BUILD_ROOT%{_prefix}/var 101 # Remove source code files (AUTHORS, README, CHANGELOG etc) 102 rm -rf $RPM_BUILD_ROOT%{_prefix}/doc 103 rm -rf $RPM_BUILD_ROOT%{_datadir}/doc/gtkam 104 # Remove Linux specific hotplug stuff 105 rm -rf $RPM_BUILD_ROOT%{_sysconfdir} 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/*/[a-z]* 112 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf 113 %endif 114 115 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):unsupported" $RPM_BUILD_ROOT} 116 117 %clean 118 rm -rf $RPM_BUILD_ROOT 119 120 %post 121 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 122 echo '/usr/bin/update-desktop-database' 123 ) | $BASEDIR/lib/postrun -b -u -c JDS_wait 124 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 125 echo '/usr/bin/scrollkeeper-update' 126 ) | $BASEDIR/lib/postrun -b -u -c JDS 127 128 %postun 129 test -x $BASEDIR/lib/postrun || exit 0 130 ( echo 'test -x /usr/bin/update-desktop-database || exit 0'; 131 echo '/usr/bin/update-desktop-database' 132 ) | $BASEDIR/lib/postrun -b -u -c JDS 133 ( echo 'test -x /usr/bin/scrollkeeper-update || exit 0'; 134 echo '/usr/bin/scrollkeeper-update' 135 ) | $BASEDIR/lib/postrun -b -u -c JDS 136 137 %files 138 %defattr (-, root, bin) 139 %dir %attr (0755, root, bin) %{_bindir} 140 %{_bindir}/gphoto2 141 %{_bindir}/gtkam 142 %{_bindir}/gexif 143 %dir %attr (0755, root, bin) %{_libdir} 144 %{_libdir}/lib*.so* 145 %{_libdir}/libgphoto2 146 %{_libdir}/libgphoto2_port 147 %{_libdir}/gimp 148 %dir %attr (0755, root, sys) %{_datadir} 149 %dir %attr (0755, root, other) %{_datadir}/applications 150 %{_datadir}/applications/* 151 %doc libgphoto2-%{libgphoto2.version}/AUTHORS 152 %doc(bzip2) libgphoto2-%{libgphoto2.version}/COPYING 153 %doc(bzip2) libgphoto2-%{libgphoto2.version}/ChangeLog 154 %doc(bzip2) libgphoto2-%{libgphoto2.version}/NEWS 155 %doc(bzip2) libgphoto2-%{libgphoto2.version}/README.in 156 %doc libgphoto2-%{libgphoto2.version}/libgphoto2_port/AUTHORS 157 %doc libgphoto2-%{libgphoto2.version}/libgphoto2_port/NEWS 158 %doc libgphoto2-%{libgphoto2.version}/libgphoto2_port/README 159 %doc(bzip2) libgphoto2-%{libgphoto2.version}/libgphoto2_port/COPYING.LIB 160 %doc(bzip2) libgphoto2-%{libgphoto2.version}/libgphoto2_port/ChangeLog 161 %doc gphoto2-%{gphoto2.version}/NEWS 162 %doc(bzip2) gphoto2-%{gphoto2.version}/COPYING 163 %doc(bzip2) gphoto2-%{gphoto2.version}/ChangeLog 164 %doc(bzip2) gphoto2-%{gphoto2.version}/README 165 %doc gtkam-%{gtkam.version}/AUTHORS 166 %doc gtkam-%{gtkam.version}/CHANGES 167 %doc gtkam-%{gtkam.version}/NEWS 168 %doc gtkam-%{gtkam.version}/README 169 %doc(bzip2) gtkam-%{gtkam.version}/COPYING 170 %doc(bzip2) gtkam-%{gtkam.version}/ChangeLog 171 %doc gtkam-%{gtkam.version}/gexif-%{gtkam.gexif_version}/AUTHORS 172 %doc gtkam-%{gtkam.version}/gexif-%{gtkam.gexif_version}/ChangeLog 173 %doc(bzip2) gtkam-%{gtkam.version}/gexif-%{gtkam.gexif_version}/COPYING 174 %dir %attr (0755, root, other) %{_datadir}/doc 175 %{_datadir}/doc/gphoto2/* 176 %dir %attr (0755, root, other) %{_datadir}/gnome 177 %{_datadir}/gnome/help/gtkam/C 178 %{_datadir}/gtkam 179 %{_datadir}/images 180 %{_datadir}/libgphoto2 181 %{_datadir}/omf/*/*-C.omf 182 %dir %attr (0755, root, other) %{_datadir}/pixmaps 183 %{_datadir}/pixmaps/* 184 %dir %attr(0755, root, bin) %{_mandir} 185 %dir %attr(0755, root, bin) %{_mandir}/man1 186 %{_mandir}/man1/* 187 %dir %attr(0755, root, bin) %{_mandir}/man3 188 %{_mandir}/man3/* 189 190 %if %build_l10n 191 %files l10n 192 %defattr (-, root, bin) 193 %dir %attr (0755, root, sys) %{_datadir} 194 %dir %attr (0755, root, other) %{_datadir}/gnome 195 %attr (-, root, other) %{_datadir}/locale 196 %{_datadir}/gnome/help/*/[a-z]* 197 %{_datadir}/omf/*/*-[a-z]*.omf 198 %endif 199 200 %files devel 201 %defattr (-, root, bin) 202 %dir %attr (0755, root, bin) %{_bindir} 203 %{_bindir}/gphoto2-port-config 204 %{_bindir}/gphoto2-config 205 %dir %attr (0755, root, bin) %{_includedir} 206 %{_includedir}/* 207 %dir %attr (0755, root, bin) %{_libdir} 208 %dir %attr (0755, root, other) %{_libdir}/pkgconfig 209 %{_libdir}/pkgconfig/* 210 211 %changelog 212 * Wed Sep 10 2008 - matt.keenan@sun.com 213 - Update copyright 214 * Fri Aug 29 2008 - takao.fujiwara@sun.com 215 - Add SUNWgnu-gettext build require for gtkam .mo. 216 * Tue Jun 24 2008 - damien.carbery@sun.com 217 - Remove "-lgailutil" from LDFLAGS. Root cause found in gtk+: bugzilla 536430. 218 * Fri Jun 06 2008 - dmaien.carbery@sun.com 219 - Add "-lgailutil" to LDFLAGS so that libgailutil is linked in when 220 libgnomecanvas is linked. libgnomecanvas.so includes some gail functions. 221 * Mon Mar 03 2007 - matt.keenan@sun.com 222 - Remove udev files as udev not supported on solaris 223 * Mon Dec 17 2007 - patrick.ale@gmail.com 224 - Add Build/Requires SUNWltdl 225 - Remove Requires: SUNWlibtool 226 * Fri Dec 1 2007 - damien.carbery@sun.com 227 - Add Build/Requires SUNWlibtool. 228 * Wed Oct 10 2007 - damien.carbery@sun.com 229 - Update Build/Requires after running check-deps.pl script. 230 * Thu Oct 4 2007 - laca@sun.com 231 - define ACLOCAL_FLAGS 232 * Mon Aug 13 2007 - brian.cameron@sun.com 233 - Clean up. 234 * Tue Feb 13 2007 - brian.cameron@sun.com 235 - Add lib/udev to packaging - new directory in 2.3.1. 236 * Fri Feb 09 2007 - brian.cameron@sun.com 237 - Add SUNWdbus dependency since libgphoto2 requires D-Bus. 238 * Tue Dec 19 2006 - brian.cameron@sun.com 239 - Rework spec file after updating gtkam, libgphoto2, gphoto2 spec files. 240 * Sat Aug 12 2006 - laca@sun.com 241 - delete some unnecessary env variables 242 * Tue Jul 25 2006 - damien.carbery@sun.com 243 - Fix 'rm .omf' line to not delete the C locale file. 244 * Fri Jul 14 2006 - laca@sun.com 245 - update %post/%postun/etc scripts to support diskless client setup, 246 part of 6448317 247 * Thu Jun 29 2006 - laca@sun.com 248 - update postrun scripts 249 * Sun Jun 11 2006 - laca@sun.com 250 - change group from other to bin/sys 251 * Mon May 15 2006 - damien.carbery@sun.com 252 - Correct l10n package perms. 253 * Tue May 09 2006 - laca@sun.com 254 - merge -share pkg(s) into the base pkg(s) 255 * Tue Apr 4 2006 - glynn.foster@sun.com 256 - Remove the hotplug stuff which is Linux specific. This 257 cuts out the -root package currently. 258 * Tue Apr 4 2006 - glynn.foster@sun.com 259 - Move gphoto2-config into the -devel package. 260 * Wed Mar 15 2006 - damien.carbery@sun.com 261 - Add to Build/Requires after running check-deps.pl. 262 * Mon Jan 09 2006 - damien.carbery@sun.com 263 - Add SUNWlibusb dependency to get libusb-config. 264 * Sat Dec 3 2005 - laca@sun.com 265 - add %post script that runs update-desktop-database 266 * Tue Nov 29 2005 - laca@sun.com 267 - remove javahelp stuff 268 * Fri Sep 30 2005 - damien.carbery@sun.com 269 - Add root package for _sysconfdir files. Remove javahelp references. 270 Delete .la files and others before packaging. 271 * Mon Dec 13 2004 - damien.carbery@sun.com 272 - Move to /usr/sfw to implement ARC decision. 273 * Sun Nov 14 2004 - laca@sun.com 274 - add /usr/demo/jds/lib to RPATH 275 * Fri Nov 12 2004 - laca@sun.com 276 - move to /usr/demo/jds 277 * Mon Oct 11 2004 - brian.cameron@sun.com 278 - Corrected packaging of gimp plugin. 279 * Wed Oct 06 2004 - matt.keenan@sun.com 280 - added l10n help files section 281 * Sat Oct 02 2004 - laca@sun.com 282 - added %pkgbuild_postprocess 283 * Mon Sep 13 2004 vinay.mandyakoppal@wipro.com 284 - Added code to install javahelp documents. Fixes #5096653. 285 * Thu Sep 09 2004 kaushal.kumar@wipro.com 286 - Moved %{_datadir}/pixmaps to '%files share' from '%files l10n'. 287 Put %{_datadir}/omf/*/*-C.omf under '%files share'. 288 * Sun Sep 05 2004 - laca@sun.com 289 - removed root subpkg as it only contained 2 linux specific files (#5097102) 290 * Tue Aug 24 2004 - brian.cameron@sun.com 291 - Remove %{_datadir}/doc from install since these docs are not useful 292 to install 293 * Mon Aug 23 2004 - laca@sun.com 294 - s/SUNWpl5u/SUNWperl584usr/ 295 * Sun Jun 27 2004 shirley.woo@sun.com 296 - Changed install location to /usr/... 297 * Mon Jun 07 2004 - brian.cameron@sun.com 298 - Moved libexif to SUNWlibexif and libexif-gtk to SUNWgnome-libs since 299 nautilus also uses these libraries if available. 300 * Wed Jun 02 2004 - brian.cameron@sun.com 301 - Added gtkam to package. 302 * Wed Jun 02 2004 - takao.fujiwara@sun.com 303 - Added %{_datadir}/locale to install l10n messages 304 * Mon May 03 2004 - laca@sun.com 305 - renamed to SUNWgnome-camera 306 * Fri Mar 31 2004 - brian.cameron@sun.com 307 - Created, 308