Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package deskbar-applet
      3 #
      4 # Copyright (c) 2005 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 # Owner: gman
      8 #
      9 Name:			deskbar-applet
     10 License:		GPL
     11 Group:			System/GUI/GNOME
     12 Version:		2.16.1
     13 Release:		1
     14 Distribution:		Java Desktop System
     15 Vendor:			Sun Microsystems, Inc.
     16 Summary:		Deskbar Applet
     17 Source:			http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.16/%{name}-%{version}.tar.bz2
     18 Patch1:                 deskbar-applet-01-browser-locations.diff
     19 Patch2:                 deskbar-applet-02-webeyes-compatibility.diff
     20 URL:			http://www.gnome.org
     21 BuildRoot:		%{_tmppath}/%{name}-%{version}-build
     22 Docdir:			%{_defaultdocdir}/%{name}
     23 Autoreqprov:		on
     24 Prereq:                 /sbin/ldconfig
     25 Prereq:                 GConf
     26 
     27 %define pygtk2_version 2.7.0
     28 %define python_version 2.4
     29 %define gnome_desktop_version 2.10
     30 %define gnome_python 2.10
     31 %define gnome_python_desktop 2.13
     32 %define evolution_data_server_version 1.5
     33 
     34 Requires: pygtk2 >= %{pygtk2_version}
     35 Requires: gnome-python >= %{gnome_python_version}
     36 Requires: gnome-python-desktop >= %{gnome_python_desktop_version}
     37 Requires: gnome-desktop >= %{gnome_desktop_version}
     38 Requires: evolution-data-server >= %{evolution_data_server_version}
     39 BuildRequires: pygtk2-devel >= %{pygtk2_version}
     40 BuildRequires: gnome-python-devel >= %{gnome_python_version}
     41 BuildRequires: gnome-python-desktop-devel >= %{gnome_python_desktop_version}
     42 BuildRequires: gnome-desktop-devel >= %{gnome_desktop_version}
     43 BuildRequires: evolution-data-server-devel >= %{evolution_data_server_version}
     44 BuildRequires: intltool
     45 
     46 %description
     47 Search applet for the GNOME panel.
     48 
     49 %prep
     50 %setup -q
     51 %patch1 -p1
     52 %patch2 -p1
     53 
     54 for po in po/*.po; do
     55   dos2unix -ascii $po $po
     56 done
     57 
     58 %build
     59 %ifos linux
     60 if [ -x /usr/bin/getconf ]; then
     61   CPUS=`getconf _NPROCESSORS_ONLN`
     62 fi
     63 %else
     64   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     65 %endif
     66 if test "x$CPUS" = "x" -o $CPUS = 0; then
     67   CPUS=1
     68 fi
     69 
     70 aclocal -I m4 $ACLOCAL_FLAGS
     71 automake -a -c -f
     72 autoconf
     73 ./configure --prefix=%{_prefix}			\
     74 	    --sysconfdir=%{_sysconfdir}		\
     75             --mandir=%{_mandir}
     76 make -j $CPUS \
     77     pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
     78     pythondir=%{_libdir}/python%{python_version}/vendor-packages
     79 
     80 %install
     81 make DESTDIR=$RPM_BUILD_ROOT install \
     82     pyexecdir=%{_libdir}/python%{python_version}/vendor-packages \
     83     pythondir=%{_libdir}/python%{python_version}/vendor-packages
     84 find $RPM_BUILD_ROOT -type f -name "*.a" -exec rm -f {} ';'
     85 find $RPM_BUILD_ROOT -type f -name "*.la" -exec rm -f {} ';'
     86 find $RPM_BUILD_ROOT -type f -name "*.pyo" -exec rm -f {} ';'
     87 find $RPM_BUILD_ROOT -type f -name "*.pyc" -exec rm -f {} ';'
     88 
     89 %post
     90 /sbin/ldconfig
     91 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
     92 SCHEMAS="deskbar-applet.schemas"
     93 for S in $SCHEMAS; do
     94         gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
     95 done
     96 
     97 %postun
     98 /sbin/ldconfig
     99 
    100 %clean
    101 rm -rf $RPM_BUILD_ROOT
    102 
    103 %files
    104 %defattr(-,root,root)
    105 %{_libdir}/bonobo/servers
    106 %{_libdir}/pkgconfig
    107 %{_libdir}/deskbar-applet
    108 %{_sysconfdir}/gconf/schemas/*
    109 %{_datadir}/deskbar-applet/
    110 %{_datadir}/locale
    111 %{_datadir}/pixmaps
    112 %{_libdir}/python2.4/
    113 
    114 %changelog
    115 * Tue Oct 24 2006 - damien.carbery@sun.com
    116 - Bump to 2.16.1.
    117 
    118 * Tue Oct 17 2006 - glynn.foster@sun.com
    119 - Add a patch for webeyes compatibility, a recently
    120   EOL'd component.
    121 
    122 * Mon Sep 04 2006 - damien.carbery (at] sun.com
    123 - Bump to 2.16.0.
    124 
    125 * Tue Aug 29 2006 - damien.carbery (at] sun.com
    126 - Bump to 2.15.92.1.
    127 
    128 * Thu Aug 24 2006 - damien.carbery (at] sun.com
    129 - Bump to 2.15.92.
    130 
    131 * Tue Aug 08 2006 - damien.carbery (at] sun.com
    132 - Bump to 2.15.91.
    133 
    134 * Fri Jul 28 2006 - damien.carbery (at] sun.com
    135 - Bump to 2.15.90.1. dos2unix the po files.
    136 
    137 * Wed Jul 24 2006 - damien.carbery (at] sun.com
    138 - Bump to 2.15.90.
    139 
    140 * Wed Jul 20 2006 - dermot.mccluskey (at] sun.com
    141 - Bump to 2.15.5.
    142 
    143 * Tue Apr 18 2006 - damien.carbery (at] sun.com
    144 - Bump to 2.14.1.1.
    145 
    146 * Mon Apr 10 2006 - damien.carbery (at] sun.com
    147 - Bump to 2.14.1.
    148 
    149 * Fri Mar 17 2006 - glynn.foster (at] sun.com
    150 - Fix up the browser locations. Patch from Rich Lowe.
    151 
    152 * Tue Mar 14 2006 - damien.carbery (at] sun.com
    153 - Bump to 2.14.0.1.
    154 
    155 * Mon Mar 13 2006 - damien.carbery (at] sun.com
    156 - Bump to 2.14.0.
    157 
    158 * Wed Mar 1 2006 - damien.carbery (at] sun.com
    159 - Bump to 2.13.92.
    160 
    161 * Wed Mar 1 2006 - glynn.foster (at] sun.com
    162 - Initial version
    163