Home | History | Annotate | Download | only in trunk
      1 #
      2 # spec file for package SUNWgnome-cd
      3 #
      4 # includes module(s): sound-juicer
      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 yippi
     11 #
     12 %include Solaris.inc
     13 %use soundjuicer = sound-juicer.spec
     14 
     15 Name:                    SUNWgnome-cd
     16 Summary:                 CD ripping tool
     17 Version:                 %{default_pkg_version}
     18 Source:                  %{name}-manpages-0.1.tar.gz
     19 Source1:                 solaris-cdda.schemas
     20 SUNW_BaseDir:            %{_basedir}
     21 SUNW_Copyright:          %{name}.copyright
     22 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     23                                                                                 
     24 %include default-depend.inc
     25 BuildRequires: SUNWlibglade-devel
     26 BuildRequires: SUNWgnome-cd-burner-devel
     27 BuildRequires: SUNWgnome-config-devel
     28 BuildRequires: SUNWgnome-libs-devel
     29 BuildRequires: SUNWgnome-media-apps-devel
     30 BuildRequires: SUNWgnome-media-devel
     31 BuildRequires: SUNWgnome-vfs-devel
     32 BuildRequires: SUNWmusicbrainz-devel
     33 Requires: SUNWlibglade
     34 Requires: SUNWlibcanberra
     35 Requires: SUNWgnome-cd-burner
     36 Requires: SUNWgnome-config
     37 Requires: SUNWgnome-libs
     38 Requires: SUNWgnome-media-apps
     39 Requires: SUNWgnome-media
     40 Requires: SUNWgnome-vfs
     41 Requires: SUNWlibC
     42 Requires: SUNWlibms
     43 Requires: SUNWmusicbrainz
     44 Requires: SUNWdesktop-cache
     45 Requires: %{name}-root
     46 
     47 %if %build_l10n
     48 %package l10n
     49 Summary:                 %{summary} - l10n files
     50 SUNW_BaseDir:            %{_basedir}
     51 %include default-depend.inc
     52 Requires:                %{name}
     53 %endif
     54 
     55 %package root
     56 Summary:                 %{summary} - / filesystem
     57 SUNW_BaseDir:            /
     58 %include default-depend.inc
     59 
     60 %prep
     61 rm -rf %name-%version
     62 mkdir %name-%version
     63 %soundjuicer.prep -d %name-%version
     64 cd %{_builddir}/%name-%version
     65 gzcat %SOURCE0 | tar xf -
     66 cd %{_builddir}/%name-%version/sound-juicer-%{soundjuicer.version}
     67 cd ..
     68 
     69 %build
     70 export ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
     71 export CXXFLAGS="%cxx_optflags -I/usr/sfw/include -lCrun -lCstd"
     72 export LDFLAGS="%_ldflags -L/usr/sfw/lib"
     73 export CFLAGS="%optflags -I/usr/sfw/include"
     74 %soundjuicer.build -d %name-%version
     75 
     76 %install
     77 rm -rf $RPM_BUILD_ROOT
     78 %soundjuicer.install -d %name-%version
     79 install --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/solaris-cdda.schemas
     80 # rm -rf $RPM_BUILD_ROOT%{_mandir}
     81 cd %{_builddir}/%name-%version/sun-manpages
     82 make install DESTDIR=$RPM_BUILD_ROOT
     83 
     84 # RBAC related
     85 mkdir $RPM_BUILD_ROOT/etc/security
     86 # exec_attr(4)
     87 cat >> $RPM_BUILD_ROOT/etc/security/exec_attr <<EOF
     88 Desktop Removable Media User:solaris:cmd:::/usr/bin/sound-juicer:privs=sys_devices
     89 EOF
     90 
     91 cd $RPM_BUILD_ROOT%{_bindir}
     92 ln -s sound-juicer gnome-cd
     93 
     94 %if %build_l10n
     95 %else
     96 # REMOVE l10n FILES
     97 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     98 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/[a-c]*/[a-z]*
     99 rm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/[e-z]*/[a-z]*
    100 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-??.omf
    101 rm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-??_??.omf
    102 %endif
    103 
    104 %{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
    105 
    106 %clean
    107 rm -rf $RPM_BUILD_ROOT
    108 
    109 %post
    110 %restart_fmri desktop-mime-cache gconf-cache
    111 
    112 %postun
    113 %restart_fmri desktop-mime-cache
    114 
    115 %files
    116 %defattr (-, root, bin)
    117 %dir %attr (0755, root, bin) %{_bindir}
    118 %dir %attr (0755, root, sys) %{_datadir}
    119 %dir %attr (0755, root, other) %{_datadir}/applications
    120 %attr (0755, root, bin)%{_bindir}/*
    121 %{_datadir}/applications/*
    122 %doc -d sound-juicer-%{soundjuicer.version} AUTHORS README
    123 %doc(bzip2) -d sound-juicer-%{soundjuicer.version} COPYING NEWS
    124 %doc(bzip2) -d sound-juicer-%{soundjuicer.version} ChangeLog po/ChangeLog
    125 %doc(bzip2) -d sound-juicer-%{soundjuicer.version} help/sound-juicer/ChangeLog
    126 %dir %attr (0755, root, other) %{_datadir}/doc
    127 %dir %attr (0755, root, other) %{_datadir}/gnome
    128 %{_datadir}/gnome/help/*/C
    129 %attr (-, root, other) %{_datadir}/icons
    130 %{_datadir}/sound-juicer
    131 %{_datadir}/omf/*/*-C.omf
    132 %dir %attr(0755, root, bin) %{_mandir}
    133 %dir %attr(0755, root, bin) %{_mandir}/*
    134 %{_mandir}/*/*
    135 
    136 %if %build_l10n
    137 %files l10n
    138 %defattr (-, root, bin)
    139 %dir %attr (0755, root, sys) %{_datadir}
    140 %attr (-, root, other) %{_datadir}/locale
    141 %dir %attr (0755, root, other) %{_datadir}/gnome
    142 %{_datadir}/gnome/help/*/??
    143 %{_datadir}/gnome/help/*/??_??
    144 %{_datadir}/omf/*/*-??.omf
    145 %{_datadir}/omf/*/*-??_??.omf
    146 %endif
    147 
    148 %files root
    149 %defattr (-, root, sys)
    150 %attr (0755, root, sys) %dir %{_sysconfdir}
    151 %{_sysconfdir}/gconf/schemas/solaris-cdda.schemas
    152 %{_sysconfdir}/gconf/schemas/sound-juicer.schemas
    153 %config %class (rbac) %attr (0644, root, sys) /etc/security/exec_attr
    154 
    155 %changelog
    156 * Fri Apr  3 2009 - laca@sun.com
    157 - use desktop-cache instead of postrun
    158 * Tue Mar 03 2009 - lin.ma@sun.com
    159 - Renamed SUNWbrasero to SUNWgnome-cd-burner.
    160 * Thu Feb 19 2009 - brian.cameron@sun.com
    161 - Add SUNWbrasero as a dependency.
    162 * Fri Sep 26 2008 - brian.cameron@sun.com
    163 - Add new copyright files.
    164 * Thu Mar 27 2008 - brian.cameron@sun.com
    165 - Add SUNW_Copyright.
    166 * Thu Jan  3 2008 - laca@sun.com
    167 - use gconf-install.script instead of an inline script
    168 * Tue Jun 26 2007 - irene.huang@sun.com
    169 - remove libcdio as dependency.
    170 * Tue Apr 24 2007 - laca@sun.com
    171 - s/0755/-/ in defattr so that files are not made all executable
    172 * Mon Apr 16 2007 - damien.carbery@sun.com
    173 - Add en_GB files to l10n package for new tarball.
    174 * Tue Oct 31 2006 - takao.fujiwara@sun.com
    175 - Added /usr/share/locale in files l10n. Fixes 6488189.
    176 * Fri Sep 08 2006 - Matt.Keenan@sun.com
    177 - Add manpage tarball
    178 * Sat Aug 12 2006 - laca@sun.com
    179 - change datadir/icons permissions back to root:other since it's a stable
    180   interface and wasn't supposed to be changed
    181 * Fri Jul 28 2006 - damien.carbery@sun.com
    182 - Omit locale files from packaging as not installed.
    183 * Fri Jul 14 2006 - laca@sun.com
    184 - update %post/%postun/etc scripts to support diskless client setup,
    185   part of 6448317
    186 * Fri Jul 14 2006 - brian.cameron@sun.com
    187 - Install schemas file for CDDA URL Handler.
    188 * Thu Jun 29 2006 - laca@sun.com
    189 - update postrun scripts
    190 * Wed Jun 21 2006 - brian.cameron@sun.com
    191 - Fix packaging.
    192 * Sun Jun 11 2006 - laca@sun.com
    193 - change group from other to bin/sys
    194 * Thu Jun  1 2006 - laca@sun.com
    195 - use post/preun scripts to install schemas into the merged gconf files
    196 * Fri May 12 2006 - damien.carbery@sun.com
    197 - Small update to dependency list after check-deps.pl run.
    198 * Wed May 10 2006 - laca@sun.com
    199 - merge -share pkg(s) into the base pkg(s)
    200 * Fri May 5  2006 - brian.cameron@sun.com
    201 - Backing out "merged" GCONF change, since it doesn't work right.  For now
    202   it seems you need to delete /etc/gconf/gconf.xml.defaults/%gconf-tree*.xml
    203   and run /usr/bin/gconf-merge-tree /etc/gconf/gconf.xml.defaults to get
    204   the GCONF set up for this to work.  I talked with Laca and he plans to 
    205   fix this in the build process so this is not necessary.
    206 * Sun Apr 20 2006 - damien.carbery (at] sun.com
    207 - Correct %install line that removes omf files for non-l10n build.
    208 * Sun Apr  9 2006 - damien.carbery (at] sun.com
    209 - Add help files to share and l10n packages.
    210 * Tue Mar 28 2006 - brian.cameron (at] sun.com
    211 - Now building Sound Juicer as CD player on Solaris.
    212 * Thu Feb 16 2006 - damien.carbery (at] sun.com
    213 - Update Build/Requires after running check-deps.pl script.
    214 * Tue Nov 29 2005 - laca (at] sun.com
    215 - remove javahelp stuff
    216 * Mon Jul 25 2005 - balamurali.viswanathan (at] wipro.com
    217 - Add dependency SUNWgnome-media-apps, SUNWmusicbrainz
    218   and SUNWgnome-cd-burner
    219 * Fri Jul 22 2005 - balamurali.viswanathan (at] wipro.com
    220 - Changed the name to SUNWgnome-cd from SUNWsound-juicer
    221 * Thu Jul 07 2005 - balamurali.viswanathan (at] wipro.com
    222 - Initial spec-file created
    223 
    224