Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package brasero
      3 #
      4 # Copyright 2009 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 %define owner lin
      9 #
     10 
     11 %define OSR gnome.org:0
     12 
     13 %include l10n.inc
     14 %include Solaris.inc
     15 
     16 Name:           SUNWgnome-cd-burner
     17 License:        GPL
     18 Version:        2.28.2
     19 Summary:        Gnome CD/DVD burner
     20 Source:         http://ftp.gnome.org/pub/GNOME/sources/brasero/2.28/brasero-%{version}.tar.bz2
     21 Source1:        l10n-configure.sh 
     22 Source2:        brasero-po-sun-%{po_sun_version}.tar.bz2
     23 Source3:        %{name}-manpages-0.1.tar.gz
     24 URL:            http://www.gnome.org/projects/brasero
     25 SUNW_Basedir:   %{_basedir}
     26 SUNW_Copyright: %{name}.copyright
     27 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
     28 # date:2009-05-27 owner:lin type:branding
     29 Patch1:         brasero-01-load-by-gksu.diff
     30 
     31 %include default-depend.inc
     32 BuildRequires: SUNWgtk2-devel
     33 BuildRequires: SUNWgnome-media-devel
     34 BuildRequires: SUNWtotem-pl-parser-devel
     35 BuildRequires: SUNWlxml-devel
     36 BuildRequires: SUNWdbus-devel
     37 BuildRequires: SUNWhal
     38 Requires: SUNWgtk2
     39 Requires: %{name}-root
     40 Requires: SUNWdesktop-cache
     41 Requires: SUNWdbus
     42 Requires: SUNWgnome-media
     43 Requires: SUNWtotem-pl-parser
     44 Requires: SUNWlxml
     45 Requires: SUNWhal
     46 Requires: SUNWgksu
     47 Requires: SUNWgnome-file-mgr
     48 
     49 %description
     50 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.
     51 
     52 %package devel
     53 Summary:                 %summary - developer files
     54 SUNW_BaseDir:            %{_basedir}
     55 %include default-depend.inc
     56 Requires:                %name
     57 
     58 %package root
     59 Summary:                 %{summary} - / filesystem
     60 SUNW_BaseDir:            /
     61 %include default-depend.inc
     62 
     63 %if %build_l10n
     64 %package l10n
     65 Summary: %{summary} - l10n files
     66 %include default-depend.inc
     67 Requires: %{name}
     68 %endif
     69 
     70 %prep
     71 %setup -q -n brasero-%{version}
     72 
     73 gzcat %SOURCE3 | tar -xf -
     74 
     75 bzcat %SOURCE2 | tar xf -
     76 cd po-sun; make; cd ..
     77 
     78 %patch1 -p1
     79 
     80 find . -name "*.[ch]" -exec dos2unix -ascii {} {} \;
     81 
     82 %build
     83 CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     84 if test "x$CPUS" = "x" -o $CPUS = 0; then
     85     CPUS=1
     86 fi
     87 export CFLAGS="%optflags"
     88 export LDFLAGS="%_ldflags"
     89 
     90 intltoolize --copy --force --automake
     91 sh %SOURCE1 --enable-copyright
     92 libtoolize --copy --force
     93 aclocal $ACLOCAL_FLAGS
     94 autoheader
     95 automake -a -c -f 
     96 autoconf
     97 
     98 ./configure --prefix=%{_prefix} --mandir=%{_mandir} \
     99     --libdir=%{_libdir}		\
    100     --libexecdir=%{_libexecdir}	\
    101     --sysconfdir=%{_sysconfdir}	\
    102     --disable-inotify		\
    103     --enable-shared		\
    104     --disable-static		\
    105     --disable-scrollkeeper	\
    106     --disable-gtk-doc		\
    107     --disable-cdrkit
    108 
    109 make -j$CPUS 
    110 
    111 %install
    112 rm -rf $RPM_BUILD_ROOT
    113 make install DESTDIR=$RPM_BUILD_ROOT
    114 find $RPM_BUILD_ROOT%{_libdir} -type f -name "*.la" -exec rm -f {} ';'
    115 rm -rf $RPM_BUILD_ROOT%{_libdir}/nautilus
    116 cd sun-manpages
    117 make install DESTDIR=$RPM_BUILD_ROOT
    118 
    119 # RBAC related
    120 mkdir $RPM_BUILD_ROOT/etc/security
    121 
    122 # prof_attr(4)
    123 cat >> $RPM_BUILD_ROOT/etc/security/prof_attr <<EOF
    124 Desktop Removable Media User:::Access removable media for desktop user:
    125 Console User::::profiles=Desktop Removable Media User
    126 EOF
    127 
    128 # exec_attr(4)
    129 cat >> $RPM_BUILD_ROOT/etc/security/exec_attr <<EOF
    130 Desktop Removable Media User:solaris:cmd:::/usr/bin/brasero:privs=sys_devices
    131 EOF
    132 
    133 %if %build_l10n
    134 %else
    135 # REMOVE l10n FILES
    136 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
    137 %endif
    138 
    139 %clean
    140 rm -rf $RPM_BUILD_ROOT
    141 
    142 %post
    143 %restart_fmri icon-cache desktop-mime-cache gconf-cache
    144 
    145 %postun
    146 %restart_fmri desktop-mime-cache
    147 
    148 %files
    149 %doc README AUTHORS
    150 %doc(bzip2) ChangeLog NEWS COPYING
    151 %dir %attr (0755, root, other) %{_datadir}/doc
    152 %defattr(-, root, bin)
    153 %dir %attr (0755, root, bin) %{_bindir}
    154 %attr (0755, root, bin)%{_bindir}/*
    155 %dir %attr (0755, root, bin) %{_libdir}
    156 %{_libdir}/lib*.so*
    157 %dir %attr (0755, root, bin) %{_libdir}/brasero
    158 %dir %attr (0755, root, bin) %{_libdir}/brasero/plugins
    159 %{_libdir}/brasero/plugins/lib*.so
    160 # %{_libdir}/nautilus/extensions-2.0/*.so
    161 %dir %attr(0755, root, sys) %{_datadir}
    162 %dir %attr(0755, root, other) %{_datadir}/applications
    163 %{_datadir}/applications/*
    164 %dir %attr(0755, root, bin) %{_datadir}/brasero
    165 %{_datadir}/brasero/*
    166 %dir %attr(0755, root, bin) %{_datadir}/omf
    167 %{_datadir}/omf/*
    168 %dir %attr(0755, root, root) %{_datadir}/mime
    169 %dir %attr(0755, root, root) %{_datadir}/mime/packages
    170 %{_datadir}/mime/packages/*
    171 %dir %attr(0755, root, other) %{_datadir}/icons
    172 %attr(-, root, other) %{_datadir}/icons/*
    173 %dir %attr(0755, root, other) %{_datadir}/gnome
    174 %dir %attr(0755, root, bin) %{_datadir}/gnome/help
    175 %{_datadir}/gnome/help/*
    176 %dir %attr (0755, root, bin) %{_mandir}/man1
    177 %{_mandir}/man1/*
    178 
    179 %files devel
    180 %defattr (-, root, bin)
    181 %dir %attr (0755, root, bin) %{_includedir}
    182 %{_includedir}/*
    183 %dir %attr (0755, root, other) %{_libdir}/pkgconfig
    184 %{_libdir}/pkgconfig/*
    185 %dir %attr (0755, root, sys) %{_datadir}
    186 %{_datadir}/gtk-doc
    187 
    188 %files root
    189 %defattr (0755, root, sys)
    190 %attr (0755, root, sys) %dir %{_sysconfdir}
    191 %{_sysconfdir}/gconf/schemas/brasero.schemas
    192 %config %class (rbac) %attr (0644, root, sys) /etc/security/prof_attr
    193 %config %class (rbac) %attr (0644, root, sys) /etc/security/exec_attr
    194 
    195 %if %build_l10n
    196 %files l10n
    197 %defattr(-, root, bin)
    198 %dir %attr (0755, root, sys) %{_datadir}
    199 %dir %attr (0755, root, other) %{_datadir}/locale
    200 %attr(-, root, other) %{_datadir}/locale/*
    201 %endif
    202 
    203 %changelog
    204 * Mon Nov 16 2009 - lin.ma@sun.com
    205 - Move manpage patch to manpages-roff
    206 - Update patch2 for 12650
    207 * Wed Oct 21 2009 - dave.lin@sun.com
    208 - Bump to 2.28.2
    209 * Wed Oct 14 2009 - dave.lin@sun.com
    210 - Bump to 2.28.1
    211 * Wed Sep 23 2009 - dave.lin@sun.com
    212 - Bump to 2.28.0
    213 * Wed Sep 16 2009 - lin.ma@sun.com
    214 - Bump to 2.27.92 and remove upstreamed patch.
    215 * Thu Aug 27 2009 - lin.ma@sun.com
    216 - Bump to 2.27.91 and update patches.
    217 * Fri Aug 21 2009 - lin.ma@sun.com
    218 - Disable nautilus extension because normal uses cant obtain privileges.
    219 * Fri Aug 14 2009 - lin.ma@sun.com
    220 - Bump to 2.27.90, updated patch3 which has been upstreamed,
    221 - could be removed in the next version.
    222 * Mon Jun 29 2009 - lin.ma@sun.com
    223 - Add patch for doo:9673
    224 * Tue Jun 16 2009 - christian.kelly@sun.com
    225 - Bump to 2.27.3.
    226 * Tue Jun 02 2009 - dave.lin@sun.com
    227 - fixed dependency issue(CR6843581).
    228 * Mon Jun 01 2009 - lin.ma@sun.com
    229 - Bump to 2.27.2
    230 * Sat Map 30 2009 - lin.ma@sun.com
    231 - Bump to 2.26.2
    232 - removed patches/brasero-02-src-data.diff.
    233 - Updated and reordered gksu related patch.
    234 * Tue Apr 22 2009 - lin.ma@sun.com
    235 - Updated gksu related patch, and fixed a nit of spec.
    236 * Tue Apr 21 2009 - lin.ma@sun.com
    237 - Added gksu related patch.
    238 - Added dependency for gksu.
    239 - Changed profile name.
    240 * Tue Apr 14 2009 - brian.cameron@sun.com
    241 - Bump to 2.26.1.
    242 * Fri Apr  3 2009 - laca@sun.com
    243 - use desktop-cache instead of postrun
    244 * Tue Mar 17 2009 - dave.lin@sun.com
    245 - Bump to 2.26.0.
    246 * Wed Mar 11 2009 - lin.ma@sun.com
    247 - Create and new profile 'Desktop CD User' and 'Console User'.
    248 - Removed file_dac_read, because console user owns the device.
    249 * Tue Mar 03 2009 - lin.ma@sun.com
    250 - Removed run-time dependency SUNWgksu, renamed to SUNWgnome-cd-burner.
    251 - Restored removed patch 02-src-data.diff, because it's partly upstreamed.
    252 * Mon Mar 02 2009 - dave.lin (at] sun.com
    253 - Bump to 2.25.92.
    254 - Removed upstreamed patch 02-src-data.diff.
    255 * Tue Feb 24 2009 - lin.ma (at] sun.com
    256 - Bump to 2.25.91.2 Add brasero-02-src-data.diff, add RBAC stuff.
    257 * Tue Feb 17 2009 - brian.cameron (at] sun.com
    258 - Bump to 2.25.91.  Remove upstream patch brasero-04-po.diff.
    259 * Tue Feb 10 2009 - halton.huo (at] sun.com
    260 - Add dependency on SUNWgnome-media-player, CR #6755918
    261 * Fri Jan 16 2009 - takao.fujiwara (at] sun.com
    262 - Add l10n tarball.
    263 * Fri Jan 09 2009 - takao.fujiwara (at] sun.com
    264 - Add patch po.diff from community trunk.
    265 * Wed Sep 18 2008 - lin.ma (at] sun.com
    266 - Bump to 0.8.2. Update copyright.
    267 * Mon Sep 15 2008 - takao.fujiwara (at] sun.com
    268 - Add brasero-03-g11n-im-jacket.diff to enable IM for jacket editor.
    269 * Mon Aug 18 2008 - lin.ma (at] sun.com
    270 - Initial version.
    271 
    272