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