Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package gdesklets
      3 #
      4 # Copyright (c) 2007 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 # Owner: bewitche
      9 #
     10 Name:		gDesklets
     11 Version:	0.35.4
     12 Release:        1
     13 License:	GPL
     14 Group:		Applications/Internet
     15 Distribution:	Java Desktop System
     16 Vendor:		Sun Microsystems, Inc.
     17 Summary:	System for bringing mini programs (desklets) onto the desktop
     18 Source:         http://www.gdesklets.de/files/gDesklets-%{version}.tar.bz2
     19 # date:2007-02-05 owner:bewitche type:feature state:upstream
     20 Patch1:         gdesklets-01-Solaris-support.diff
     21 # date:2007-02-06 owner:dcarbery type:bug bugzilla:405100
     22 Patch2:         gdesklets-02-rel-symlinks.diff
     23 # date:2007-02-12 owner:bewitche type:bug bugzilla:406957 state:upstream
     24 Patch3:	        gdesklets-03-number-of-cpu.diff
     25 # date 2007-02-12 owner:bewitche type:bug bugzilla:406961 state:upstream
     26 Patch4:	        gdesklets-04-parse-args.diff
     27 # date 2007-02-16 owner:bewitche type:bug bugzilla:408484
     28 Patch6:         gdesklets-06-tar.diff
     29 # date 2007-04-10 owner:bewitche type:feature bugzilla:426825
     30 Patch7:         gdesklets-07-proxy.diff
     31 URL:		http://www.gdesklets.de/
     32 BuildRoot:	%{_tmppath}/%{name}-%{version}-build
     33 Autoreqprov:	on
     34 
     35 
     36 %prep
     37 %setup -q 
     38 %patch1 -p1
     39 %patch2 -p1
     40 %patch3 -p1
     41 %patch4 -p1
     42 %patch6 -p1
     43 %patch7 -p1
     44 %build
     45 %ifos linux
     46 if [ -x /usr/bin/getconf ]; then
     47   CPUS=`getconf _NPROCESSORS_ONLN`
     48 fi
     49 %else
     50   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     51 %endif
     52 if test "x$CPUS" = "x" -o $CPUS = 0; then
     53   CPUS=1
     54 fi
     55 
     56 libtoolize --force
     57 intltoolize --copy --force
     58 aclocal $ACLOCAL_FLAGS 
     59 autoheader
     60 automake -a -c -f
     61 autoconf
     62 CFLAGS="$RPM_OPT_FLAGS" \
     63   ./configure \
     64 	--prefix=%{_prefix} \
     65 	--sysconfdir=%{_sysconfdir} \
     66 	--mandir=%{_mandir} \
     67 	--localstatedir=%{_localstatedir} \
     68 	--disable-scrollkeeper
     69 
     70 make -j $CPUS
     71 
     72 
     73 %install
     74 make DESTDIR=$RPM_BUILD_ROOT install 
     75 
     76 
     77 %files
     78 %defattr(-, root, root)
     79 %{_bindir}/*
     80 %{_libdir}/gdesklets/*
     81 %{_datadir}/locale/*/*/*
     82 %{_datadir}/pixmaps/*
     83 %{_datadir}/applications/*
     84 %{_datadir}/icons/*/*/*/*
     85 
     86 
     87 %clean
     88 rm -r $RPM_BUILD_ROOT
     89 
     90 %changelog
     91 * Tue Apr 10 2007 - chris.wang@sun.com
     92 - Add feature that gdesklets engine can read proxy setting from gconf
     93 * Fri Feb 16 2007 - damien.carbery@sun.com
     94 - Bump to 0.35.4. Update URL to gdesklets.de.
     95 * Fri Feb 16 2007 - chris.wang@sun.com
     96 - Add patch -06-tar, to solve the problem that the tar bundled with Solaris
     97   don't support -j and -z options.
     98 * Thu Feb 15 2007 - chris.wang (at] sun.com
     99 - Update the state of current patch
    100 * Thu Feb 15 2007 - chris.wang (at] sun.com
    101 - Add patch -05-performance, optimize the performance of gdesklets on Solaris
    102 * Mon Feb 12 2007 - chris.wang (at] sun.com
    103 - Add patch -03-number-of-cpu, to solve the problem that the number of cpu info cannot be
    104   retrieve correctly on Sparc bug:406957
    105 *Mon Feb 12 2007 - chris.wang (at] sun.com
    106 - Add patch -04-parse-args, to correct the args cannot be parsed correctly on 
    107   Sparc box  bug:406961
    108 * Tue Feb  6 2007 - damien.carbery (at] sun.com
    109 - Add patch, 02-rel-symlinks, to change absolute symlinks to relative. #405100.
    110 
    111 * Mon Feb  5 2007 - damien.carbery (at] sun.com
    112 - Remove the unnecessary reference to LD_LIBRARY_PATH.
    113 
    114 * Thu Jan 29 2007 - <chris.wang (at] sun.com>
    115 - initial creation
    116