SUNWgnome-wm.spec revision 18688
10139N/A#
10139N/A# spec file for package SUNWgnome-wm
10139N/A#
10139N/A# includes module(s): metacity
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 erwannc
10139N/A#
15322N/A%include Solaris.inc
10139N/A
16169N/A%use metacity = metacity.spec
10139N/A
10139N/AName: SUNWgnome-wm
10139N/AIPS_package_name: gnome/window-manager/metacity
10139N/AMeta(info.classification): %{classification_prefix}:Desktop (GNOME)/Window Managers
16169N/ASummary: GNOME window manager
10139N/AVersion: %{default_pkg_version}
12773N/ASource: %{name}-manpages-0.1.tar.gz
12773N/ASUNW_BaseDir: %{_basedir}
12773N/ASUNW_Copyright: %{name}.copyright
10139N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
10139N/A
16196N/A%include default-depend.inc
11927N/ABuildRequires: SUNWgtk2-devel
16169N/ABuildRequires: SUNWxorg-headers
16169N/ABuildRequires: SUNWgnome-libs-devel
10139N/ABuildRequires: SUNWgnome-config-devel
10139N/ABuildRequires: SUNWgnome-dialog
10139N/ARequires: SUNWxorg-clientlibs
10139N/ARequires: SUNWgtk2
10139N/ARequires: SUNWgnome-wm-root
10139N/ARequires: SUNWgnome-libs
10139N/ARequires: SUNWgnome-config
10139N/ARequires: SUNWpostrun
10139N/ARequires: SUNWbzip
10139N/ARequires: SUNWzlib
10139N/ARequires: SUNWlxml
10139N/ARequires: SUNWlibms
10139N/ARequires: SUNWdesktop-cache
10139N/ARequires: SUNWlibcanberra
10139N/A
10139N/A%package root
10139N/ASummary: %{summary} - / filesystem
10139N/ASUNW_BaseDir: /
10139N/A%include default-depend.inc
10139N/A
10139N/A%package devel
10139N/ASummary: %{summary} - development files
10139N/ASUNW_BaseDir: %{_basedir}
10139N/A%include default-depend.inc
10139N/ARequires: %{name}
10139N/ARequires: SUNWgtk2-devel
10139N/A
10139N/A%if %build_l10n
10139N/A%package l10n
10139N/ASummary: %{summary} - l10n files
10139N/ASUNW_BaseDir: %{_basedir}
10139N/A%include default-depend.inc
10139N/ARequires: %{name}
10139N/A%endif
10139N/A
10139N/A%prep
10139N/Arm -rf %name-%version
13034N/Amkdir %name-%version
10139N/A%metacity.prep -d %name-%version
10139N/Acd %{_builddir}/%name-%version
10139N/Agzcat %SOURCE0 | tar xf -
10139N/A
10139N/A%build
10139N/Aexport CFLAGS="%optflags -I/usr/sfw/include -I/usr/X11/include -I/usr/sfw/include/freetype2 -DANSICPP"
10139N/Aexport RPM_OPT_FLAGS="$CFLAGS"
10139N/Aexport LDFLAGS="%_ldflags -L/usr/X11/lib -R/usr/X11/lib -L/usr/sfw/lib -R/usr/sfw/lib -lXrender"
10139N/Aexport PKG_CONFIG_PATH=%{_pkg_config_path}
10139N/A
10139N/A%metacity.build -d %name-%version
10139N/A
10139N/A%install
10139N/Arm -rf $RPM_BUILD_ROOT
10139N/A%metacity.install -d %name-%version
12773N/A
12773N/Arm -rf $RPM_BUILD_ROOT%{_mandir}
12773N/Acd %{_builddir}/%name-%version/sun-manpages
12773N/Amake install DESTDIR=$RPM_BUILD_ROOT
12773N/A
10139N/A# Move demo to demo directory.
10139N/A#
10139N/Ainstall -d $RPM_BUILD_ROOT%{_prefix}/demo/jds/bin
10139N/Amv $RPM_BUILD_ROOT%{_bindir}/metacity-window-demo $RPM_BUILD_ROOT%{_prefix}/demo/jds/bin/metacity-window-demo
10139N/A
10139N/A%if %build_l10n
10139N/A%else
10139N/A# REMOVE l10n FILES
10139N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
10139N/A%endif
10139N/A
10139N/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
10139N/A%ifarch sparc
10139N/A( echo 'test -x /usr/bin/gconftool-2 || {';
10139N/A echo ' echo "ERROR: gconftool-2 not found"';
10139N/A echo ' exit 0';
10139N/A echo '}';
10139N/A echo 'umask 0022';
10139N/A echo "GCONF_CONFIG_SOURCE=xml:merged:/etc/gconf/gconf.xml.defaults";
10139N/A echo 'export GCONF_CONFIG_SOURCE';
10139N/A echo "SDIR=%{_sysconfdir}/gconf/schemas";
10139N/A echo '/usr/bin/gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE -t bool -s /apps/metacity/general/reduced_resources true'
10139N/A) | $BASEDIR/lib/postrun -c JDS
10139N/A%endif
10139N/A
10139N/A%postun
16169N/A%restart_fmri desktop-mime-cache
16169N/A
16169N/A%files
16169N/A%doc -d metacity-%{metacity.version} README AUTHORS MAINTAINERS
13348N/A%doc(bzip2) -d metacity-%{metacity.version} NEWS COPYING ChangeLog
13348N/A%dir %attr (0755, root, other) %{_datadir}/doc
13348N/A%defattr (-, root, bin)
13261N/A%dir %attr (0755, root, bin) %{_bindir}
13261N/A%{_bindir}/*
13034N/A%dir %attr (0755, root, bin) %{_libdir}
13034N/A%{_libdir}/lib*.so*
12812N/A%dir %attr (0755, root, sys) %{_datadir}
12812N/A%dir %attr (0755, root, other) %{_datadir}/applications
11926N/A%dir %attr (0755, root, other) %{_datadir}/gnome
11926N/A%dir %attr(0755, root, bin) %{_datadir}/gnome/wm-properties
11927N/A%{_datadir}/applications/*
11927N/A%{_datadir}/gnome/wm-properties/*
11927N/A%{_datadir}/gnome/help/*
11927N/A%{_datadir}/metacity/icons
11922N/A#%{_datadir}/themes
11922N/A%{_datadir}/gnome-control-center/keybindings
11416N/A%dir %attr(0755, root, bin) %{_mandir}
11416N/A%dir %attr(0755, root, bin) %{_mandir}/*
11252N/A%{_mandir}/*/*
11252N/A
10918N/A%{_datadir}/themes/AgingGorilla/metacity-1/*.png
10918N/A%{_datadir}/themes/AgingGorilla/metacity-1/metacity-theme-1.xml
10763N/A%{_datadir}/themes/Atlanta/metacity-1/metacity-theme-1.xml
10763N/A%{_datadir}/themes/Crux/metacity-1/*.png
10732N/A%{_datadir}/themes/Crux/metacity-1/metacity-theme-2.xml
10732N/A%{_datadir}/themes/Crux/metacity-1/metacity-theme-1.xml
10642N/A%{_datadir}/themes/Esco/metacity-1/metacity-theme-1.xml
10642N/A%{_datadir}/themes/Metabox/metacity-1/metacity-theme-1.xml
10479N/A%{_datadir}/themes/Bright/metacity-1/metacity-theme-1.xml
10479N/A%{_datadir}/themes/Bright/metacity-1/metacity-theme-2.xml
10280N/A%dir %attr (0755, root, root) %{_datadir}/themes/Simple
10280N/A%{_datadir}/themes/Simple/metacity-1/*.png
10194N/A%{_datadir}/themes/Simple/metacity-1/metacity-theme-1.xml
10194N/A
10181N/A%files devel
10181N/A%defattr (-, root, bin)
10139N/A%dir %attr (0755, root, bin) %{_includedir}
10139N/A%{_includedir}/*
10139N/A%dir %attr (0755, root, bin) %{_libdir}
10139N/A%dir %attr (0755, root, other) %{_libdir}/pkgconfig
10139N/A%{_libdir}/pkgconfig/*
10139N/A%{_prefix}/demo/jds/bin/metacity-window-demo
10139N/A
10139N/A%files root
10139N/A%defattr (-, root, sys)
10139N/A%attr (0755, root, sys) %dir %{_sysconfdir}
10139N/A%{_sysconfdir}/gconf/schemas/metacity.schemas
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%endif
10139N/A
10139N/A%changelog
10139N/A* Thu Nov 26 2009 - christian.kelly@sun.com
10139N/A- Fix directory perms.
10139N/A* Thu Jul 23 2009 - christian.kelly@sun.com
10139N/A- Add Requires: SUNWlibcanberra.
10139N/A* Tue Jul 21 2009 - christian.kelly@sun.com
10139N/A- Remove %{_libexecdir}/metacity-dialog.
10139N/A* Fri Apr 3 2009 - laca@sun.com
10139N/A- use desktop-cache instead of postrun
10139N/A* Wed Feb 18 2009 - dave.lin@sun.com
10139N/A- Add BuildRequires: SUNWgnome-dialog as it requires zenity.
10139N/A* Fri Dec 12 2008 - dave.lin@sun.com
10139N/A- Fix gnome/help attribute issue.
10139N/A* Thu Sep 02 2008 - christian.kelly@sun.com
10139N/A- Unbump to 2.23.377, reworked patch 8.
10139N/A* Thu Jan 3 2008 - laca@sun.com
10139N/A- use gconf-install.script instead of an inline script
10139N/A* Fri Sep 28 2007 - laca@sun.com
10139N/A- delete SUNWxwrtl and SUNWxorg-clientlibs deps
10139N/A- delete some unnecessary env variables
10139N/A* Tue Aug 07 2007 - damien.carbery@sun.com
10139N/A- Updated for %files for new tarball - change %{_datadir}/control-center to
10139N/A %{_datadir}/gnome-control-center.
10139N/A* Mon May 14 2007 - erwann.chenede@sun.com
10139N/A- Added new dir in %files
10139N/A* Mon Sep 04 2006 - Matt.Keenan@sun.com
10139N/A- New Manpage tarball
10139N/A* Fri Jul 14 2006 - laca@sun.com
10139N/A- update %post/%postun/etc scripts to support diskless client setup,
10139N/A part of 6448317
10139N/A* Thu Jun 29 2006 - laca@sun.com
10139N/A- update postrun scripts
10139N/A* Sun Jun 11 2006 - laca@sun.com
10139N/A- change group from other to bin/sys
10139N/A* Thu May 25 2006 - laca@sun.com
10139N/A- use post/preun scripts to install schemas into the merged gconf files
10139N/A* Fri May 12 2006 - damien.carbery@sun.com
10139N/A- Small update to dependency list after check-deps.pl run.
10139N/A* Thu May 11 2006 - brian.cameron@sun.com
10139N/A- Move metacity-window-demo to /usr/share/jds/bin and no longer include
10139N/A the useless manpage.
10139N/A* Wed May 10 2006 - laca@sun.com
10139N/A- merge -share pkg(s) into the base pkg(s)
10139N/A* Fri Feb 17 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
10139N/A- add %post script that runs update-desktop-database
10139N/A* Thu Jun 02 2005 - brian.cameron@sun.com
10139N/A- Install l10n package last since it fails when building
10139N/A outside of the official build.
10139N/A* Thu May 19 2005 - brian.cameron@sun.com
10139N/A- Update to 2.10 and fix packaging.
* Wed Nov 10 2004 - arvind.samptur@wipro.com
- Set reduced_resource key to true on sparc m/c's
* Fri Oct 08 2004 - kaushal.kumar@wipro.com
- Added patch metacity-02-enable-Sun-keys-Open-Front.diff.
Fixes bug 5103120.
* Sat Oct 02 2004 - laca@sun.com
- added %pkgbuild_postprocess
* Sat Sep 11 2004 - laca@sun.com
- Set LDFLAGS so Xrandr and Xrender can be found.
* Thu Sep 09 2004 - matt.keenan@sun.com
- Added metacity-message.1, metacity-window-demo.1 manpages
* Thu Aug 26 2004 - balamurali.viswanathan@wipro.com
- Added patch to use sdtprocess instead of gnome-system-monitor.
* Wed Aug 18 2004 - damien.carbery@sun.com
- Change manpage perms for Solaris integration.
* Sat Jun 26 2004 shirley.woo@sun.com
- Changed install location to /usr/...
* Wed Jun 2 2004 - takao.fujiwara@sun.com
- Added %{_datadir}/locale to install l10n messages
* Wed Mar 24 2004 - brian.cameron@sun.com
- Added SGML man page integration
* Mon Mar 01 2004 - <laca@sun.com>
- remove dependencies on SUNWgnome-libs-share and root
* Thu Feb 26 2004 - <laca@sun.com>
- set PERL5LIB for XML::Parser
* Mon Feb 22 2004 - <niall.power@sun.com>
- install gconf schemas at end of install stage.
- make clean stage clean stuff up.