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