SUNWgnome-cd.spec revision 20913
18861N/A#
18861N/A# spec file for package SUNWgnome-cd
18861N/A#
18861N/A# includes module(s): sound-juicer
18861N/A#
18861N/A# Copyright 2009, 2011, Oracle and/or its affiliates. All rights reserved.
18861N/A# This file and all modifications and additions to the pristine
18861N/A# package are under the same license as the package itself.
18861N/A#
18861N/A%define owner yippi
18861N/A#
18861N/A%include Solaris.inc
18861N/A%use soundjuicer = sound-juicer.spec
18861N/A
18861N/AName: SUNWgnome-cd
18861N/AIPS_package_name: desktop/cd-ripping/sound-juicer
18861N/AMeta(info.classification): %{classification_prefix}:Applications/Sound and Video
18861N/ASummary: CD ripping tool
18861N/AVersion: %{soundjuicer.version}
18861N/ASource: %{name}-manpages-0.1.tar.gz
18861N/ASource1: solaris-cdda.schemas
18861N/ASUNW_BaseDir: %{_basedir}
18861N/ASUNW_Copyright: %{name}.copyright
18861N/ALicense: %{soundjuicer.license}
18861N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
18861N/A
18861N/A%include default-depend.inc
18861N/A%include desktop-incorporation.inc
19142N/ABuildRequires: desktop/cd-burning/brasero
18861N/ABuildRequires: developer/gnome/gnome-doc-utils
18861N/ABuildRequires: gnome/config/gconf
18861N/ABuildRequires: gnome/media/gnome-media
18861N/ABuildRequires: library/audio/gstreamer
18861N/ABuildRequires: library/desktop/libglade
18861N/ABuildRequires: library/desktop/xdg/libcanberra
18861N/ABuildRequires: library/gnome/gnome-libs
18861N/ABuildRequires: library/gnome/gnome-vfs
18861N/ABuildRequires: library/musicbrainz/libmusicbrainz
18861N/ARequires: desktop/cd-burning/brasero
18861N/ARequires: gnome/media/gnome-media
18861N/ARequires: system/library/math
18861N/ARequires: library/desktop/libglade
18885N/ARequires: library/desktop/xdg/libcanberra
18861N/ARequires: library/musicbrainz/libmusicbrainz
18861N/ARequires: service/gnome/desktop-cache
18861N/ARequires: system/library/c++-runtime
18861N/A
18861N/A%package l10n
18885N/ASummary: %{summary} - l10n files
18885N/ARequires: %{name}
18861N/A
18861N/A%package root
18861N/ASummary: %{summary} - / filesystem
18861N/ASUNW_BaseDir: /
18861N/A%include default-depend.inc
18861N/A%include desktop-incorporation.inc
18861N/A
18861N/A%prep
18861N/Arm -rf %name-%version
18861N/Amkdir %name-%version
18861N/A%soundjuicer.prep -d %name-%version
18861N/Acd %{_builddir}/%name-%version
18861N/Agzcat %SOURCE0 | tar xf -
18861N/Acd %{_builddir}/%name-%version/sound-juicer-%{soundjuicer.version}
18861N/Acd ..
18861N/A
18861N/A%build
18861N/Aexport ACLOCAL_FLAGS="-I %{_datadir}/aclocal"
18861N/Aexport CXXFLAGS="%cxx_optflags -I/usr/sfw/include -lCrun -lCstd"
18861N/Aexport LDFLAGS="%_ldflags -L/usr/sfw/lib"
18861N/Aexport CFLAGS="%optflags -I/usr/sfw/include"
18861N/A%soundjuicer.build -d %name-%version
18861N/A
18861N/A%install
18861N/Arm -rf $RPM_BUILD_ROOT
18861N/A%soundjuicer.install -d %name-%version
18861N/Ainstall --mode=0644 %SOURCE1 $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas/solaris-cdda.schemas
18861N/A# rm -rf $RPM_BUILD_ROOT%{_mandir}
18861N/Acd %{_builddir}/%name-%version/sun-manpages
18861N/Amake install DESTDIR=$RPM_BUILD_ROOT
18861N/A
18861N/A# RBAC related
18861N/Amkdir -p $RPM_BUILD_ROOT/etc/security/exec_attr.d
18861N/A# exec_attr(4)
18861N/Acat >> $RPM_BUILD_ROOT/etc/security/exec_attr.d/desktop-cd-ripping-sound-juicer <<EOF
18861N/ADesktop Removable Media User:solaris:cmd:RO::/usr/bin/sound-juicer:privs=sys_devices
18861N/AEOF
18861N/A
18861N/Acd $RPM_BUILD_ROOT%{_bindir}
19375N/Aln -s sound-juicer gnome-cd
19692N/A
%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
%clean
rm -rf $RPM_BUILD_ROOT
%post
%restart_fmri desktop-mime-cache gconf-cache
%postun
%restart_fmri desktop-mime-cache
%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_bindir}
%dir %attr (0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/applications
%attr (0755, root, bin)%{_bindir}/*
%{_datadir}/applications/*
%doc -d sound-juicer-%{soundjuicer.version} AUTHORS README
%doc(bzip2) -d sound-juicer-%{soundjuicer.version} COPYING NEWS
%doc(bzip2) -d sound-juicer-%{soundjuicer.version} ChangeLog po/ChangeLog
%doc(bzip2) -d sound-juicer-%{soundjuicer.version} help/sound-juicer/ChangeLog
%dir %attr (0755, root, other) %{_datadir}/doc
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/*/C
%attr (-, root, other) %{_datadir}/icons
%{_datadir}/sound-juicer
%{_datadir}/omf/*/*-C.omf
%dir %attr(0755, root, bin) %{_mandir}
%dir %attr(0755, root, bin) %{_mandir}/*
%{_mandir}/*/*
%files l10n
%defattr (-, root, bin)
%dir %attr (0755, root, sys) %{_datadir}
%attr (-, root, other) %{_datadir}/locale
%dir %attr (0755, root, other) %{_datadir}/gnome
%{_datadir}/gnome/help/*/??
%{_datadir}/gnome/help/*/??_??
%{_datadir}/omf/*/*-??.omf
%{_datadir}/omf/*/*-??_??.omf
%files root
%defattr (-, root, sys)
%attr (0755, root, sys) %dir %{_sysconfdir}
%{_sysconfdir}/gconf/schemas/solaris-cdda.schemas
%{_sysconfdir}/gconf/schemas/sound-juicer.schemas
%attr (0755, root, sys) %dir /etc/security
%attr (0755, root, sys) %dir /etc/security/exec_attr.d
%config %ips_tag(restart_fmri=svc:/system/rbac:default) %attr (0444, root, sys) /etc/security/exec_attr.d/*
%changelog
* Fri Nov 04 2011 - brian.cameron@oracle.com
- Change SUNWgnome-media-apps dependency to SUNWlibgnome-media.
* Wed Apr 06 2011 - brian.cameron@oracle.com
- Add "RO" to exec_attr config.
* Tue Jun 08 2010 - Michal.Pryc@Oracle.Com
- Updated BuildRequires to fit SourceJuicer.
* Fri Apr 3 2009 - laca@sun.com
- use desktop-cache instead of postrun
* Tue Mar 03 2009 - lin.ma@sun.com
- Renamed SUNWbrasero to SUNWgnome-cd-burner.
* Thu Feb 19 2009 - brian.cameron@sun.com
- Add SUNWbrasero as a dependency.
* Fri Sep 26 2008 - brian.cameron@sun.com
- Add new copyright files.
* Thu Mar 27 2008 - brian.cameron@sun.com
- Add SUNW_Copyright.
* Thu Jan 3 2008 - laca@sun.com
- use gconf-install.script instead of an inline script
* Tue Jun 26 2007 - irene.huang@sun.com
- remove libcdio as dependency.
* Tue Apr 24 2007 - laca@sun.com
- s/0755/-/ in defattr so that files are not made all executable
* Mon Apr 16 2007 - damien.carbery@sun.com
- Add en_GB files to l10n package for new tarball.
* Tue Oct 31 2006 - takao.fujiwara@sun.com
- Added /usr/share/locale in files l10n. Fixes 6488189.
* Fri Sep 08 2006 - Matt.Keenan@sun.com
- Add manpage tarball
* Sat Aug 12 2006 - laca@sun.com
- change datadir/icons permissions back to root:other since it's a stable
interface and wasn't supposed to be changed
* Fri Jul 28 2006 - damien.carbery@sun.com
- Omit locale files from packaging as not installed.
* Fri Jul 14 2006 - laca@sun.com
- update %post/%postun/etc scripts to support diskless client setup,
part of 6448317
* Fri Jul 14 2006 - brian.cameron@sun.com
- Install schemas file for CDDA URL Handler.
* Thu Jun 29 2006 - laca@sun.com
- update postrun scripts
* Wed Jun 21 2006 - brian.cameron@sun.com
- Fix packaging.
* Sun Jun 11 2006 - laca@sun.com
- change group from other to bin/sys
* Thu Jun 1 2006 - laca@sun.com
- use post/preun scripts to install schemas into the merged gconf files
* Fri May 12 2006 - damien.carbery@sun.com
- Small update to dependency list after check-deps.pl run.
* Wed May 10 2006 - laca@sun.com
- merge -share pkg(s) into the base pkg(s)
* Fri May 5 2006 - brian.cameron@sun.com
- Backing out "merged" GCONF change, since it doesn't work right. For now
it seems you need to delete /etc/gconf/gconf.xml.defaults/%gconf-tree*.xml
and run /usr/bin/gconf-merge-tree /etc/gconf/gconf.xml.defaults to get
the GCONF set up for this to work. I talked with Laca and he plans to
fix this in the build process so this is not necessary.
* Sun Apr 20 2006 - damien.carbery@sun.com
- Correct %install line that removes omf files for non-l10n build.
* Sun Apr 9 2006 - damien.carbery@sun.com
- Add help files to share and l10n packages.
* Tue Mar 28 2006 - brian.cameron@sun.com
- Now building Sound Juicer as CD player on Solaris.
* Thu Feb 16 2006 - damien.carbery@sun.com
- Update Build/Requires after running check-deps.pl script.
* Tue Nov 29 2005 - laca@sun.com
- remove javahelp stuff
* Mon Jul 25 2005 - balamurali.viswanathan@wipro.com
- Add dependency SUNWgnome-media-apps, SUNWmusicbrainz
and SUNWgnome-cd-burner
* Fri Jul 22 2005 - balamurali.viswanathan@wipro.com
- Changed the name to SUNWgnome-cd from SUNWsound-juicer
* Thu Jul 07 2005 - balamurali.viswanathan@wipro.com
- Initial spec-file created