Home | History | Annotate | Download | only in core
      1 #
      2 # spec file for package terminator
      3 #
      4 # Copyright 2009 Sun Microsystems, Inc.
      5 # This file and all modifications and additions to the pristine
      6 # package are under the same license as the package itself.
      7 #
      8 %define owner kevmca
      9 #
     10 
     11 %include Solaris.inc
     12 
     13 %define OSR 9644:0.9
     14 
     15 %define python_version 2.6
     16 
     17 Name:           SUNWterminator
     18 License:        GPL
     19 Version:        0.13
     20 Summary:        Multiple GNOME terminals in one window
     21 Source:         http://launchpad.net/terminator/trunk/%{version}/+download/terminator_%{version}.tar.gz
     22 # date:2009-02-19 owner:mattman type:branding
     23 Patch1:         terminator-01-manpages.diff
     24 URL:            http://www.tenshu.net/terminator/
     25 SUNW_Basedir:   %{_basedir}
     26 SUNW_Copyright: %{name}.copyright
     27 BuildRoot:      %{_tmppath}/%{name}-%{version}-build
     28 
     29 %include default-depend.inc
     30 BuildRequires: SUNWPython26-devel
     31 BuildRequires: SUNWpython26-setuptools
     32 Requires: SUNWgnome-python26-libs
     33 Requires: SUNWdesktop-cache
     34 Requires: SUNWPython26
     35 Requires: SUNWgnome-libs
     36 
     37 %description
     38 This is a project to produce an efficient way of filling a
     39 large area of screen space with terminals. This is done by
     40 splitting the window into a resizeable grid of terminals. As
     41 such, you can  produce a very flexible arrangements of terminals
     42 for different tasks.
     43 
     44 %if %build_l10n
     45 %package l10n
     46 Summary: %{summary} - l10n files
     47 %include default-depend.inc
     48 Requires: %{name}
     49 %endif
     50 
     51 %prep
     52 %setup -q -c -n terminator-%{version}
     53 %patch1 -p1
     54 
     55 %build
     56 export PYTHON="/usr/bin/python%{python_version}"
     57 cd %{version}
     58 python%{python_version} setup.py build
     59 
     60 %install
     61 rm -rf $RPM_BUILD_ROOT
     62 cd %{version}
     63 python%{python_version} setup.py install --root=$RPM_BUILD_ROOT
     64 rm -rf $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/icon-theme.cache
     65 
     66 %if %build_l10n
     67 %else
     68 rm -r $RPM_BUILD_ROOT%{_datadir}/locale
     69 %endif
     70 
     71 mv $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/site-packages \
     72    $RPM_BUILD_ROOT%{_libdir}/python%{python_version}/vendor-packages
     73 
     74 %clean
     75 rm -rf $RPM_BUILD_ROOT
     76 
     77 #%post
     78 #%restart_fmri icon-cache desktop-mime-cache
     79 
     80 #%postun
     81 #%restart_fmri icon-cache desktop-mime-cache
     82 
     83 %files
     84 %defattr(-, root, bin)
     85 %dir %attr (0755, root, bin) %{_bindir}
     86 %{_bindir}/*
     87 %dir %attr (0755, root, bin) %{_libdir}
     88 %{_libdir}/*
     89 %dir %attr(0755, root, sys) %{_datadir}
     90 %dir %attr(0755, root, other) %{_datadir}/applications
     91 %{_datadir}/applications/*
     92 %dir %attr(0755, root, other) %{_datadir}/pixmaps
     93 %{_datadir}/pixmaps/*
     94 %dir %attr(0755, root, other) %{_datadir}/icons
     95 %attr(-, root, other) %{_datadir}/icons/*
     96 %dir %attr (0755, root, bin) %{_mandir}/man1
     97 %{_mandir}/man1/*
     98 %dir %attr (0755, root, bin) %{_mandir}/man5
     99 %{_mandir}/man5/*
    100 
    101 %if %build_l10n
    102 %files l10n
    103 %defattr(-, root, bin)
    104 %dir %attr (0755, root, sys) %{_datadir}
    105 %dir %attr (0755, root, other) %{_datadir}/locale
    106 %attr(-, root, other) %{_datadir}/locale/*
    107 %endif
    108 
    109 %changelog
    110 * Mon Nov 09 2009 - ke.wang@sun.com
    111 - Change dependency from SUNWPython to SUNWPython26.
    112 * Fri Oct 02 2009 - brian.cameron@sun.com
    113 - Now build with Python 2.6.  Terminator no longer works with Python 2.4.
    114   See CR #6885253.
    115 * Wed Aug 12 2009 - christian.kelly@sun.com
    116 - Bump to 0.13.
    117 - Remove terminator-02-interpreters.diff, upstream.
    118 * Fri May 29 2009 - kevin.mcareavey@sun.com
    119 - Add patch to fix python path
    120 * Wed Apr 22 2009 - kevin.mcareavey@sun.com
    121 - Bump to 0.12
    122 * Fri Apr  3 2009 - laca@sun.com
    123 - use desktop-cache instead of postrun
    124 * Thu Feb 19 2009 - matt.keenan@sun.com
    125 - Add manpages patch for Attributes and ARC case comments
    126 * Thu Sep 11 2008 - kevin.mcareavey@sun.com
    127 - Add %doc to %files for copyright
    128 * Fri Aug 8 2008 - kevin.mcareavey@sun.com
    129 - Updated Summary and %description
    130 * Tue Aug 5 2008 - kevin.mcareavey@sun.com
    131 - Initial version
    132 
    133