Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package SUNWccsm
      3 ####################################################################
      4 # compizconfig-settings-manager(ccsm): A fully featured Python/GTK 
      5 # based settings manager for the CompizConfig system.
      6 ####################################################################
      7 #
      8 # Copyright 2009 Sun Microsystems, Inc.
      9 # This file and all modifications and additions to the pristine
     10 # package are under the same license as the package itself.
     11 #
     12 %define owner erwannc
     13 
     14 %include Solaris.inc
     15 
     16 %define OSR 8297:1.6.2
     17 
     18 %define src_name ccsm
     19 
     20 Name:                    SUNWccsm
     21 Summary:                 ccsm settings manager for the CompizConfig system
     22 Version:                 0.8.2
     23 Source:			 http://releases.compiz-fusion.org/%{version}/%{src_name}-%{version}.tar.bz2	 
     24 # owner:jedy date:2008-08-11 type:branding
     25 Patch1:			 ccsm-01-desktop.diff
     26 SUNW_BaseDir:            %{_basedir}
     27 SUNW_Copyright:          %{name}.copyright
     28 
     29 %ifnarch sparc
     30 # these packages are only avavilable on x86
     31 # =========================================
     32 
     33 BuildRoot:               %{_tmppath}/%{name}-%{version}-build
     34 %include default-depend.inc
     35 # add build and runtime dependencies here:
     36 BuildRequires:  SUNWgnome-python-libs-devel
     37 BuildRequires:  SUNWPython
     38 BuildRequires:  SUNWpython-setuptools
     39 BuildRequires:  SUNWcompizconfig-python
     40 BuildRequires:  SUNWlibsexy
     41 Requires:       SUNWdbus-python24
     42 Requires:       SUNWgnome-python-libs
     43 Requires:       SUNWPython
     44 Requires:       SUNWcompizconfig-python
     45 Requires:       SUNWlibsexy
     46 Requires:       SUNWdesktop-cache
     47 %include default-depend.inc
     48 
     49 %define pythonver 2.4
     50 
     51 %if %build_l10n
     52 %package l10n
     53 Summary:                 %{summary} - l10n files
     54 SUNW_BaseDir:            %{_basedir}
     55 %include default-depend.inc
     56 Requires:                %{name}
     57 %endif
     58 
     59 %prep
     60 %setup -q -n %{src_name}-%version
     61 %patch1 -p1
     62 
     63 %build
     64 python setup.py build --prefix=%{_prefix}
     65 
     66 %install
     67 rm -rf $RPM_BUILD_ROOT
     68 python setup.py install --prefix=%{_prefix} --root=$RPM_BUILD_ROOT
     69 
     70 # move to vendor-packages
     71 mkdir -p $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages
     72 mv $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages/* \
     73    $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/vendor-packages/
     74 rmdir $RPM_BUILD_ROOT%{_libdir}/python%{pythonver}/site-packages
     75 
     76 #
     77 # when not building -l10n packages, remove anything l10n related from
     78 # $RPM_BUILD_ROOT
     79 #
     80 %if %build_l10n
     81 %else
     82 # REMOVE l10n FILES
     83 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale
     84 %endif
     85 
     86 %post
     87 %restart_fmri desktop-mime-cache mime-types-cache
     88 
     89 %postun
     90 %restart_fmri desktop-mime-cache mime-types-cache
     91 
     92 %clean
     93 rm -rf $RPM_BUILD_ROOT
     94 
     95 %files
     96 %defattr (-, root, bin)
     97 %dir %attr (0755, root, bin) %{_bindir}
     98 %{_bindir}/*
     99 %dir %attr (0755, root, bin) %{_libdir}
    100 %{_libdir}/python%{pythonver}/vendor-packages/ccm
    101 %dir %attr(0755, root, sys) %{_datadir}
    102 %dir %attr (0755, root, other) %{_datadir}/ccsm
    103 %{_datadir}/ccsm/*
    104 %dir %attr (0755, root, other) %{_datadir}/applications
    105 %{_datadir}/applications/ccsm.desktop
    106 %attr (0755, root, other) %{_datadir}/icons
    107 #
    108 # The files included here should match the ones removed in %install
    109 #
    110 %if %build_l10n
    111 %files l10n
    112 %defattr (-, root, other)
    113 %dir %attr (0755, root, sys) %{_datadir}
    114 %{_datadir}/locale/*
    115 %endif
    116 
    117 # endif for "ifnarch sparc"
    118 %endif
    119 
    120 %changelog
    121 * Thu Aug 13 2009 - christian.kelly@sun.com
    122 - Bump to 0.8.2.
    123 * Fri Apr  3 2009 - laca@sun.com
    124 - use desktop-cache instead of postrun
    125 * Mon Aug 11 2008 - jedy.wang@sun.com
    126 - Add 02-desktop.diff to hide the menu enty form the menu because it has
    127   been integrated into gnome-appearance-properties.
    128 * Tue Jun 01 2008 - damien.carbery@sun.com
    129 - Fix perms in %files.
    130 * Wed Mar 26 2008 - dave.lin@sun.com
    131 - change to not build this component on SPARC
    132 * Fri Feb 22 2008 - takao.fujiwara@sun.com
    133 - Add ccsm-01-po.diff to add cs.po, es.po, hu.po, ja.po, ko.po from HEAD.
    134 * Wed Feb 13 2008 - erwann@sun.com
    135 - Moved to SFO
    136 * Wed Nov 14 2007 - daymobrew@users.sourceforge.net
    137 - Add l10n package.
    138 * Mon Oct 29 2007 - trisk@acm.jhu.edu
    139 - Bump to 0.6.0
    140 * Sat Sep 08 2007 - trisk@acm.jhu.edu
    141 - Correct rules, remove -root, fix Python library location
    142 * Fri Aug  14 2007 - erwann@sun.com
    143 - Initial spec
    144 
    145