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