SUNWccsm.spec revision 19821
13623N/A#
13623N/A# spec file for package SUNWccsm
13623N/A####################################################################
13623N/A# compizconfig-settings-manager(ccsm): A fully featured Python/GTK
13623N/A# based settings manager for the CompizConfig system.
13623N/A####################################################################
13623N/A#
13623N/A# Copyright 2009 Sun Microsystems, Inc.
13623N/A# This file and all modifications and additions to the pristine
13623N/A# package are under the same license as the package itself.
13623N/A#
13623N/A%define owner erwannc
13623N/A
13623N/A%include Solaris.inc
13623N/A
13623N/A%define OSR 8297:1.6.2
13623N/A
13623N/A%define src_name ccsm
13623N/A
13623N/AName: SUNWccsm
13623N/AIPS_package_name: desktop/compiz/ccsm
13623N/AMeta(info.classification): %{classification_prefix}:Applications/Graphics and Imaging
13623N/ASummary: ccsm settings manager for the CompizConfig system
13623N/ALicense: GPL v2
13623N/AVendor: compiz-fusion.org
13623N/AVersion: 0.8.2
13623N/ASource: http://releases.compiz-fusion.org/%{version}/%{src_name}-%{version}.tar.bz2
13623N/A# owner:jedy date:2008-08-11 type:branding
13623N/APatch1: ccsm-01-desktop.diff
13623N/ASUNW_BaseDir: %{_basedir}
13623N/ASUNW_Copyright: %{name}.copyright
13623N/A
13623N/A%ifnarch sparc
13623N/A# these packages are only avavilable on x86
13623N/A# =========================================
13623N/A
13623N/ABuildRoot: %{_tmppath}/%{name}-%{version}-build
13623N/A%include default-depend.inc
13623N/A%include gnome-consolidation.inc
13623N/A# add build and runtime dependencies here:
13623N/ABuildRequires: SUNWgnome-python26-libs-devel
13623N/ABuildRequires: SUNWPython26
13623N/ABuildRequires: SUNWpython26-setuptools
13623N/ABuildRequires: SUNWcompizconfig-python
13623N/ABuildRequires: SUNWlibsexy
13623N/ARequires: SUNWdbus-python26
13623N/ARequires: SUNWgnome-python26-libs
13623N/ARequires: SUNWPython26
13623N/ARequires: SUNWcompizconfig-python
13623N/ARequires: SUNWlibsexy
13623N/ARequires: SUNWdesktop-cache
13623N/A%include default-depend.inc
13623N/A%include gnome-consolidation.inc
13623N/A
13623N/A%define pythonver 2.6
13623N/A
13623N/A%if %build_l10n
13623N/A%package l10n
13623N/AIPS_package_name: desktop/compiz/ccsm/l10n
13623N/ASummary: %{summary} - l10n files
13623N/ASUNW_BaseDir(relocate_from:%{_prefix}): %{_dto_il10n_basedir}
13623N/A%include default-depend.inc
13623N/A%include gnome-consolidation.inc
13623N/ARequires: %{name}
13623N/A%endif
13623N/A
13623N/A%prep
13623N/A%setup -q -n %{src_name}-%version
13623N/A%patch1 -p1
13623N/A
13623N/A%build
13623N/Apython%{pythonver} setup.py build --prefix=%{_prefix}
13623N/A
13623N/A%install
13623N/Arm -rf $RPM_BUILD_ROOT
13623N/Apython%{pythonver} setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
13623N/A
13623N/A# move to vendor-packages
13623N/Amkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
13623N/Amv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
13623N/A $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
13623N/Armdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
13623N/A
13623N/A#
13623N/A# when not building -l10n packages, remove anything l10n related from
13623N/A# $RPM_BUILD_ROOT
13623N/A#
13623N/A%if %build_l10n
13623N/A%else
13623N/A# REMOVE l10n FILES
13623N/Arm -rf $RPM_BUILD_ROOT%{_datadir}/locale
13623N/A%endif
13623N/A
13623N/A%post
13623N/A%restart_fmri desktop-mime-cache mime-types-cache
13623N/A
13623N/A%postun
13623N/A%restart_fmri desktop-mime-cache mime-types-cache
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr (-, root, bin)
%dir %attr (0755, root, bin) %{_bindir}
%{_bindir}/*
%dir %attr (0755, root, bin) %{_libdir}
%{_libdir}/python%{pythonver}/vendor-packages
%dir %attr(0755, root, sys) %{_datadir}
%dir %attr (0755, root, other) %{_datadir}/ccsm
%{_datadir}/ccsm/*
%dir %attr (0755, root, other) %{_datadir}/applications
%{_datadir}/applications/ccsm.desktop
%attr (0755, root, other) %{_datadir}/icons
#
# The files included here should match the ones removed in %install
#
%if %build_l10n
%files l10n
%defattr (-, root, other)
%dir %attr (0755, root, sys) %{_datadir}
%{_datadir}/locale/*
%endif
# endif for "ifnarch sparc"
%endif
%changelog
* Thu Aug 13 2009 - christian.kelly@sun.com
- Bump to 0.8.2.
* Fri Apr 3 2009 - laca@sun.com
- use desktop-cache instead of postrun
* Mon Aug 11 2008 - jedy.wang@sun.com
- Add 02-desktop.diff to hide the menu enty form the menu because it has
been integrated into gnome-appearance-properties.
* Tue Jun 01 2008 - damien.carbery@sun.com
- Fix perms in %files.
* Wed Mar 26 2008 - dave.lin@sun.com
- change to not build this component on SPARC
* Fri Feb 22 2008 - takao.fujiwara@sun.com
- Add ccsm-01-po.diff to add cs.po, es.po, hu.po, ja.po, ko.po from HEAD.
* Wed Feb 13 2008 - erwann@sun.com
- Moved to SFO
* Wed Nov 14 2007 - daymobrew@users.sourceforge.net
- Add l10n package.
* Mon Oct 29 2007 - trisk@acm.jhu.edu
- Bump to 0.6.0
* Sat Sep 08 2007 - trisk@acm.jhu.edu
- Correct rules, remove -root, fix Python library location
* Fri Aug 14 2007 - erwann@sun.com
- Initial spec