SUNWgnome-calculator.spec revision 19219
673N/A#
673N/A# spec file for package SUNWgnome-calculator
673N/A#
7822N/A# includes module(s): gcalctool
7822N/A#
7794N/A# Copyright 2010 Sun Microsystems, Inc.
7822N/A# This file and all modifications and additions to the pristine
7822N/A# package are under the same license as the package itself.
8052N/A#
8052N/A%define owner laca
7794N/A#
7822N/A%include Solaris.inc
673N/A
673N/A%use gcalctool = gcalctool.spec
7822N/A
7822N/AName: SUNWgnome-calculator
7822N/AIPS_package_name: desktop/calculator/gcalctool
7822N/AMeta(info.classification): %{classification_prefix}:Applications/Accessories
673N/ASummary: GNOME calculator utility
673N/AVersion: %{gcalctool.version}
673N/ASource: %{name}-manpages-0.1.tar.gz
673N/ASUNW_BaseDir: %{_basedir}
7822N/ASUNW_Copyright: %{name}.copyright
7822N/ALicense: %{gcalctool.license}
673N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
673N/A
673N/A%include default-depend.inc
673N/A%include gnome-consolidation.inc
7822N/ARequires: SUNWlibglade
7822N/ARequires: SUNWgnome-calculator-root
7822N/ARequires: SUNWgnome-libs
7822N/ARequires: SUNWgnome-config
673N/ARequires: SUNWlibms
673N/ABuildRequires: SUNWlibglade-devel
673N/ABuildRequires: SUNWgnome-config-devel
673N/ARequires: SUNWdesktop-cache
673N/ABuildRequires: SUNWgnome-doc-utils
673N/A
673N/A%if %build_l10n
673N/A%package l10n
673N/AIPS_package_name: desktop/calculator/gcalctool/l10n
7822N/ASummary: %{summary} - l10n files
673N/ASUNW_BaseDir(relocate_from:%{_prefix}): %{_gnome_il10n_basedir}
673N/A%include default-depend.inc
7822N/A%include gnome-consolidation.inc
7822N/ARequires: %{name}
8052N/A%endif
673N/A
7822N/A%package root
7822N/ASummary: %{summary} - / filesystem
7822N/ASUNW_BaseDir: /
673N/A%include default-depend.inc
7822N/A%include gnome-consolidation.inc
673N/A
9243N/A%prep
7794N/Arm -rf %name-%version
7822N/Amkdir %name-%version
7822N/A%gcalctool.prep -d %name-%version
7822N/Acd %{_builddir}/%name-%version
7822N/Agzcat %SOURCE0 | tar xf -
7822N/A
7794N/A%build
7794N/Aexport PKG_CONFIG_PATH=%{_pkg_config_path}
8052N/Aexport CFLAGS="%optflags -I%{_includedir}"
8052N/Aexport RPM_OPT_FLAGS="$CFLAGS"
8052N/Aexport LDFLAGS="%_ldflags"
8052N/A
8052N/A%gcalctool.build -d %name-%version
8052N/A
8052N/A%install
8052N/Arm -rf $RPM_BUILD_ROOT
8052N/A%gcalctool.install -d %name-%version
8052N/A
8052N/Arm -rf $RPM_BUILD_ROOT%{_mandir}
8052N/Acd %{_builddir}/%name-%version/sun-manpages
8052N/Amake install DESTDIR=$RPM_BUILD_ROOT
7794N/Arm $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/.help.copyright
7822N/Armdir $RPM_BUILD_ROOT%{_datadir}/gnome/help/[a-z][a-z]
7822N/Armdir $RPM_BUILD_ROOT%{_datadir}/gnome/help/[a-z][a-z]_*
7822N/A
7822N/A%if %build_l10n
7822N/A%else
7822N/A# REMOVE l10n FILES
7822N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/gnome/help/*/[a-z]*
7822N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z].omf
7822N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/omf/*/*-[a-z][a-z]_[A-Z]*.omf
7822N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
7822N/A%endif
7822N/A
7822N/A%{?pkgbuild_postprocess: %pkgbuild_postprocess -v -c "%{version}:%{jds_version}:%{name}:$RPM_ARCH:%(date +%%Y-%%m-%%d):%{support_level}" $RPM_BUILD_ROOT}
673N/A
673N/A%clean
7822N/Arm -rf $RPM_BUILD_ROOT
673N/A
7822N/A%post
8052N/A%restart_fmri desktop-mime-cache gconf-cache
7822N/A
8052N/A%postun
9198N/A%restart_fmri desktop-mime-cache
673N/A
7822N/A%files
7822N/A%defattr (-, root, bin)
7822N/A%dir %attr (0755, root, bin) %{_bindir}
7822N/A%{_bindir}/*
7822N/A%dir %attr (0755, root, sys) %{_datadir}
7822N/A%dir %attr (0755, root, other) %{_datadir}/applications
7822N/A%{_datadir}/applications/*
7822N/A%{_datadir}/gcalctool
7822N/A%dir %attr (0755, root, other) %{_datadir}/gnome
7822N/A%{_datadir}/gnome/help/*/C
7822N/A%dir %attr(0755, root, bin) %{_mandir}
7822N/A%dir %attr(0755, root, bin) %{_mandir}/*
7822N/A%{_mandir}/*/*
7822N/A
7822N/A%if %build_l10n
7822N/A%files l10n
7822N/A%defattr (-, root, bin)
7822N/A%dir %attr (0755, root, sys) %{_datadir}
7822N/A%dir %attr (0755, root, other) %{_datadir}/gnome
7822N/A%attr (-, root, other) %{_datadir}/locale
7822N/A%{_datadir}/gnome/help/*/[a-z]*
7822N/A%endif
7822N/A
7822N/A%files root
7822N/A%defattr (-, root, sys)
7822N/A%attr (0755, root, sys) %dir %{_sysconfdir}
7822N/A%{_sysconfdir}/gconf/schemas/gcalctool.schemas
7822N/A
7822N/A%changelog
7822N/A* Tue Jun 08 2010 - Michal.Pryc@Oracle.Com
7822N/A- Updated BuildRequires to fit SourceJuicer.
7822N/A* Fri Apr 3 2009 - laca@sun.com
7822N/A- use desktop-cache instead of postrun
7822N/A* Thu Jan 3 2008 - laca@sun.com
7822N/A- use gconf-install.script instead of an inline script
7822N/A* Wed Oct 31 2007 - damien.carbery@sun.com
7822N/A- Add %{_datadir}/gcalctool to %files.
673N/A* Fri Sep 21 2007 - brian.cameron@sunc.om
7822N/A- Re-add the desktop file back into the packaging. It wasn't getting
7822N/A built before because we weren't calling the proper autotools.
7822N/A* Thu Aug 16 2007 - damien.carbery@sun.com
7822N/A- Remove %files line because dir not installed.
7822N/A* Tue Apr 24 2007 - laca@sun.com
7822N/A- s/0755/-/ in defattr so that files are not made all executable
7822N/A* Fri Sep 01 2006 - Matt.Keenan@sun.com
7822N/A- New Manpage tarball
673N/A* Sat Aug 12 2006 - laca@sun.com
7822N/A- delete some unnecessary env variables
673N/A* Fri Jul 14 2006 - laca@sun.com
7822N/A- update %post/%postun/etc scripts to support diskless client setup,
7822N/A part of 6448317
673N/A* Thu Jun 29 2006 - laca@sun.com
7822N/A- update postrun scripts
673N/A* Sun Jun 11 2006 - laca@sun.com
673N/A- change group from other to bin/sys
7822N/A* Thu May 25 2006 - laca@sun.com
673N/A- use post/preun scripts to install schemas into the merged gconf files
7822N/A* Tue May 09 2006 - laca@sun.com
7822N/A- merge -share pkg(s) into the base pkg(s)
673N/A* Mon Feb 20 2006 - damien.carbery@sun.com
673N/A- Update Build/Requires after running check-deps.pl script.
7822N/A* Sat Dec 3 2005 - laca@sun.com
8052N/A- add %post script that runs update-desktop-database
8052N/A* Tue Nov 29 2005 - laca@sun.com
8052N/A- remove javahelp stuff
8052N/A* Fri Oct 28 2005 - damien.carbery@sun.com
8052N/A- Remove more l10n files for non-l10n build.
8052N/A* Tue May 25 2005 - brian.cameron@sun.com
8052N/A- Bump to 2.10.0, fix packaging.
8052N/A* Sat Oct 02 2004 - laca@sun.com
8052N/A- added %pkgbuild_postprocess
8052N/A* Wed Aug 25 2004 - Kazuhiko.Maekawa@sun.com
8052N/A- Updated files sect to extracted l10n help into l10n pkg
8052N/A- s/SUNWpl5u/SUNWperl584usr/
8052N/A* Mon Aug 23 2004 - laca@sun.com
8052N/A- s/SUNWpl5u/SUNWperl584usr/
8052N/A* Wed Aug 18 2004 damien.carbery@sun.com
8052N/A- Change manpage perms for Solaris integration.
8052N/A* Sat Jun 26 2004 shirley.woo@sun.com
8052N/A- Changed install location to /usr/...
8052N/A* Wed Jun 2 2004 - takao.fujiwara@sun.com
673N/A- Added %{_datadir}/locale to install l10n messages
7822N/A* Thu May 06 2004 - brian.cameron@sun.com
7822N/A- Removed %{_sysconfdir}/gconf from share package since
7822N/A it is already included in root.
673N/A* Wed Mar 24 2004 - brian.cameron@sun.com
673N/A- Added SGML man page integration
7822N/A* Mon Mar 01 2004 - laca@sun.com
673N/A- define PERL5LIB
673N/A* Mon Feb 23 2004 - niall.power@sun.com
673N/A- add a *-root package and install schemas
673N/A- fix up dependencies
673N/A
8052N/A
8052N/A