1 # 2 # spec file for package brasero 3 # 4 # Copyright (c) 2008 Sun Microsystems, Inc. 5 # This file and all modifications and additions to the pristine 6 # package are under the same license as the package itself. 7 # 8 # Owner: lin 9 # 10 #### DO NOT BUMP MODULE TO 0.8.3 AND ABOVE AS IT 11 #### NOT YET READY FOR SOLARIS 12 13 %include l10n.inc 14 %include Solaris.inc 15 16 Name: SUNWbrasero 17 License: GPL 18 Version: 0.8.2 19 Summary: Gnome CD/DVD burner 20 Source: http://ftp.gnome.org/pub/GNOME/sources/brasero/0.8/brasero-%{version}.tar.bz2 21 Source1: l10n-configure.sh 22 Source2: brasero-po-sun-%{po_sun_version}.tar.bz2 23 URL: http://www.gnome.org/projects/brasero 24 SUNW_Basedir: %{_basedir} 25 SUNW_Copyright: %{name}.copyright 26 BuildRoot: %{_tmppath}/%{name}-%{version}-build 27 # date:2008-09-05 owner:lin type:bug bugzilla:542136,551228 28 Patch1: brasero-01-allinone.diff 29 # date:2008-09-05 owner:lin type:branding 30 Patch2: brasero-02-manpages.diff 31 # date:2008-09-15 owner:fujiwara type:feature bugster:6748382 bugzilla:552366 32 Patch3: brasero-03-g11n-im-jacket.diff 33 # date:2009-01-09 owner:fujiwara type:bug bugster:6787415 bugzilla:549580 state:upstream 34 Patch4: brasero-04-po.diff 35 36 %include default-depend.inc 37 BuildRequires: SUNWgnome-base-libs-devel 38 BuildRequires: SUNWgnome-media-devel 39 BuildRequires: SUNWgnome-media-player-devel 40 BuildRequires: SUNWlxml-devel 41 BuildRequires: SUNWdbus-devel 42 Requires: SUNWpostrun 43 Requires: SUNWdbus 44 Requires: SUNWgnome-base-libs 45 Requires: SUNWgnome-media 46 Requires: SUNWgnome-media-player 47 Requires: SUNWlxml 48 Requires: SUNWgksu 49 50 %description 51 Brasero is a application to burn CD/DVD for the Gnome Desktop. It is designed to be as simple as possible and has some unique features to enable users to create their discs easily and quickly. 52 53 %package root 54 Summary: %{summary} - / filesystem 55 SUNW_BaseDir: / 56 %include default-depend.inc 57 Requires: SUNWpostrun-root 58 Requires: SUNWgnome-config 59 60 %if %build_l10n 61 %package l10n 62 Summary: %{summary} - l10n files 63 %include default-depend.inc 64 Requires: %{name} 65 %endif 66 67 %prep 68 %setup -q -n brasero-%{version} 69 find . -name '*.c' -o -name '*.h' -exec dos2unix {} {} \; 70 71 %patch4 -p1 72 bzcat %SOURCE2 | tar xf - 73 cd po-sun; make; cd .. 74 75 %patch1 -p0 76 %patch2 -p0 77 %patch3 -p1 78 79 %build 80 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` 81 if test "x$CPUS" = "x" -o $CPUS = 0; then 82 CPUS=1 83 fi 84 export CFLAGS="%optflags" 85 export LDFLAGS="%_ldflags" 86 87 intltoolize --copy --force --automake 88 sh %SOURCE1 --enable-copyright 89 libtoolize --copy --force 90 aclocal $ACLOCAL_FLAGS 91 autoheader 92 automake -a -c -f 93 autoconf 94 95 ./configure --prefix=%{_prefix} --mandir=%{_mandir} \ 96 --libdir=%{_libdir} \ 97 --libexecdir=%{_libexecdir} \ 98 --sysconfdir=%{_sysconfdir} \ 99 --disable-gnome2 \ 100 --disable-inotify \ 101 --enable-shared \ 102 --disable-static \ 103 --disable-scrollkeeper \ 104 --disable-gtk-doc 105 106 make -j$CPUS 107 108 %install 109 rm -rf $RPM_BUILD_ROOT 110 make install DESTDIR=$RPM_BUILD_ROOT 111 find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';' 112 # According to the ARC case, we don't ship the following backends. 113 rm -f $RPM_BUILD_ROOT%{_libdir}/brasero/plugins/libbrasero-toc2cue.so 114 rm -f $RPM_BUILD_ROOT%{_libdir}/brasero/plugins/libbrasero-cdrdao.so 115 116 %if %build_l10n 117 %else 118 # REMOVE l10n FILES 119 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale 120 %endif 121 122 %clean 123 rm -rf $RPM_BUILD_ROOT 124 125 %post 126 %include icon-cache.script 127 %include desktop-database-install.script 128 129 %postun 130 test -x $BASEDIR/lib/postrun || exit 0 131 %include icon-cache.script 132 %include desktop-database-uninstall.script 133 134 %post root 135 %include gconf-install.script 136 137 %postun root 138 test -x $BASEDIR/var/lib/postrun/postrun || exit 0 139 ( echo 'test -x $PKG_INSTALL_ROOT/usr/bin/gconftool-2 || {'; 140 echo ' echo "WARNING: gconftool-2 not found; not uninstalling gconf schemas"'; 141 echo ' exit 0'; 142 echo '}'; 143 echo 'umask 0022'; 144 echo 'GCONF_CONFIG_SOURCE=xml:merged:$BASEDIR/etc/gconf/gconf.xml.defaults'; 145 echo 'GCONF_BACKEND_DIR=$PKG_INSTALL_ROOT/usr/lib/GConf/2'; 146 echo 'LD_LIBRARY_PATH=$PKG_INSTALL_ROOT/usr/lib'; 147 echo 'export GCONF_CONFIG_SOURCE GCONF_BACKEND_DIR LD_LIBRARY_PATH'; 148 echo 'SDIR=$BASEDIR%{_sysconfdir}/gconf/schemas'; 149 echo 'schemas="$SDIR/brasero.schemas"'; 150 echo '$PKG_INSTALL_ROOT/usr/bin/gconftool-2 --makefile-uninstall-rule $schemas' 151 ) | $BASEDIR/var/lib/postrun/postrun -i -c JDS -a 152 153 %files 154 %doc README AUTHORS 155 %doc(bzip2) ChangeLog NEWS COPYING 156 %dir %attr (0755, root, other) %{_datadir}/doc 157 %defattr(-, root, bin) 158 %dir %attr (0755, root, bin) %{_bindir} 159 %{_bindir}/* 160 %dir %attr (0755, root, bin) %{_libdir} 161 %dir %attr (0755, root, bin) %{_libdir}/brasero 162 %dir %attr (0755, root, bin) %{_libdir}/brasero/plugins 163 %{_libdir}/brasero/plugins/*.so 164 %dir %attr(0755, root, sys) %{_datadir} 165 %dir %attr(0755, root, other) %{_datadir}/applications 166 %{_datadir}/applications/* 167 %dir %attr(0755, root, bin) %{_datadir}/brasero 168 %{_datadir}/brasero/* 169 # %dir %attr(0755, root, bin) %{_datadir}/omf 170 # %{_datadir}/omf/* 171 %dir %attr(0755, root, root) %{_datadir}/mime 172 %dir %attr(0755, root, root) %{_datadir}/mime/packages 173 %{_datadir}/mime/packages/* 174 %dir %attr(0755, root, other) %{_datadir}/icons 175 %attr(-, root, other) %{_datadir}/icons/* 176 # %dir %attr(0755, root, other) %{_datadir}/gnome 177 # %dir %attr(0755, root, bin) %{_datadir}/gnome/help 178 # %{_datadir}/gnome/help/* 179 %dir %attr (0755, root, bin) %{_mandir}/man1 180 %{_mandir}/man1/* 181 182 %files root 183 %defattr (0755, root, sys) 184 %attr (0755, root, sys) %dir %{_sysconfdir} 185 %{_sysconfdir}/gconf/schemas/brasero.schemas 186 187 %if %build_l10n 188 %files l10n 189 %defattr(-, root, bin) 190 %dir %attr (0755, root, sys) %{_datadir} 191 %dir %attr (0755, root, other) %{_datadir}/locale 192 %attr(-, root, other) %{_datadir}/locale/* 193 %endif 194 195 %changelog 196 * Tue Feb 10 2009 - halton.huo@sun.com 197 - Add dependency on SUNWgnome-media-player, CR #6755918 198 * Fri Jan 16 2009 - takao.fujiwara@sun.com 199 - Add l10n tarball. 200 * Fri Jan 09 2009 - takao.fujiwara@sun.com 201 - Add patch po.diff from community trunk. 202 * Wed Sep 18 2008 - lin.ma@sun.com 203 - Bump to 0.8.2. Update copyright. 204 * Mon Sep 15 2008 - takao.fujiwara@sun.com 205 - Add brasero-03-g11n-im-jacket.diff to enable IM for jacket editor. 206 * Mon Aug 18 2008 - lin.ma@sun.com 207 - Initial version 208