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