Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package gnome-screensaver 
      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 #
      8 # Owner: me, me, me, I want it!
      9 #
     10 Name:         gnome-screensaver
     11 License:      GPL
     12 Group:        System/GUI/GNOME
     13 Version:      2.16.1
     14 Release:      1
     15 Distribution: Java Desktop System
     16 Vendor:	      Sun Microsystems, Inc.
     17 Summary:      The GNOME screen saver 
     18 Source:       http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.16/%{name}-%{version}.tar.bz2
     19 URL:          www.gnome.org
     20 BuildRoot:    %{_tmppath}/%{name}-%{version}-build
     21 Autoreqprov:  on
     22 
     23 # TODO: Get full list of dependencies.
     24 # See: http://packages.ubuntu.com/breezy/gnome/gnome-screensaver
     25 %define dbus_version 0.30
     26 %define libxml_version 2.6.0
     27 %define GConf_version 2.6.1
     28 %define gdk_version 2.7.0
     29 %define gtk2_version 2.7.0
     30 %define gnome_vfs_version 2.6.0
     31 %define libgnomeui_versin 2.6.0
     32 %define glade_version 2.5.0
     33 %define libgnome_menu_version 2.11.1
     34 %define libexif_version 0.6.12
     35 Requires:	dbus >= %{dbus_version}
     36 Requires:	libxml >= %{libxml_version}
     37 Requires:	GConf >= %{GConf_version}
     38 Requires:	gdk >= %{gdk_version}
     39 Requires:	gtk2 >= %{gtk2_version}
     40 Requires:	gnome-vfs >= %{gnome_vfs_version}
     41 Requires:	libgnomeui >= %{libgnomeui_version}
     42 Requires:	glade >= %{glade_version}
     43 Requires:	gnome-menus >= %{libgnome_menu_version}
     44 Requires:	libexif >= %{libexif_version}
     45 BuildRequires: gtk2-devel >= %{gtk2_version}
     46 
     47 %description
     48 gnome-screensaver is a screen saver and locker that aims to have
     49 simple, sane, secure defaults and be well integrated with the desktop.
     50 It is designed to support:
     51         * the ability to lock down configuration settings
     52         * translation into many languages
     53         * user switching
     54 
     55 %prep
     56 %setup -q
     57 # Fix for 332967.
     58 for po in po/*.po; do
     59   dos2unix -ascii $po $po
     60 done
     61 
     62 %build
     63 %ifos linux
     64 if [ -x /usr/bin/getconf ]; then
     65   CPUS=`getconf _NPROCESSORS_ONLN`
     66 fi
     67 %else
     68   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     69 %endif
     70 if test "x$CPUS" = "x" -o $CPUS = 0; then
     71   CPUS=1
     72 fi
     73 
     74 
     75 libtoolize --force
     76 intltoolize --force --copy
     77 aclocal $ACLOCAL_FLAGS
     78 autoconf
     79 autoheader
     80 automake -a -c -f
     81 ./configure \
     82     --prefix=%{_prefix} \
     83     --sysconfdir=%{_sysconfdir} \
     84     --libexecdir=%{_libexecdir} \
     85     --localstatedir=/var/lib \
     86     --enable-locking
     87 make -j $CPUS
     88 
     89 %install
     90 make install DESTDIR=$RPM_BUILD_ROOT
     91 
     92 %clean
     93 rm -rf $RPM_BUILD_ROOT
     94 
     95 %files
     96 %defattr (-, root, root)
     97 %{_bindir}/*
     98 %{_datadir}/*
     99 %{_libdir}/*
    100 
    101 %changelog
    102 * Mon Oct 23 2006 - glynn.foster@sun.com
    103 - Remove src-libs patch since it's now upstream.
    104 
    105 * Tue Oct 03 2006 - damien.carbery (at] sun.com
    106 - Bump to 2.16.1.
    107 
    108 * Tue Sep 05 2006 - damien.carbery (at] sun.com
    109 - Bump to 2.16.0.
    110 
    111 * Tue Aug 22 2006 - brian.cameron (at] sun.com
    112 - Bump to 2.15.7.
    113 
    114 * Tue Aug 08 2006 - brian.cameron (at] sun.com
    115 - Bump to 2.15.6.
    116 
    117 * Tue Jul 25 2006 - damien.carbery (at] sun.com
    118 - Bump to 2.15.5.
    119 
    120 * Thu Apr 13 2006 - dermot.mccluskey (at] sun.com
    121 - replace sed with dos2unix to work around ^M problem in SVN
    122 
    123 * Mon Apr 10 2006 - damien.carbery (at] sun.com
    124 - Bump to 2.14.1.
    125 
    126 * Mon Mar 13 2006 - damien.carbery (at] sun.com
    127 - Bump to 2.14.0.
    128 
    129 * Thu Mar  2 2006 - damien.carbery (at] sun.com
    130 - Correct sed conversion code.
    131 
    132 * Wed Mar  1 2006 - damien.carbery (at] sun.com
    133 - Use sed to convert po files from DOS to Unix line ending format.
    134 
    135 * Tue Feb 28 2006 - damien.carbery (at] sun.com
    136 - Bump to 2.13.92.
    137 
    138 * Wed Feb 15 2006 - damien.carbery (at] sun.com
    139 - Bump to 2.13.91.
    140 
    141 * Tue Jan 31 2006 - damien.carbery (at] sun.com
    142 - Bump to 2.13.90.
    143 
    144 * Wed Jan 18 2006 - damien.carbery (at] sun.com
    145 - Add intltoolize call.
    146 
    147 * Sun Jan 15 2006 - damien.carbery (at] sun.com
    148 - Bump to 0.0.24.
    149 
    150 * Mon Nov 28 2005 - laca (at] sun.com
    151 - update to 0.0.20
    152 
    153 * Fri Nov 04 2005 - damien.carbery (at] sun.com
    154 - Bump to 0.0.18. Remove autofoo and patches.
    155 
    156 * Tue Nov 01 2005 - damien.carbery (at] sun.com
    157 - Add autofoo for configure.ac patch.
    158 
    159 * Wed Oct 26 2005 - damien.carbery (at] sun.com
    160 - Bump to 0.0.17.
    161 
    162 * Mon Oct 24 2005 - damien.carbery (at] sun.com
    163 - Add patches, add 'locale.h' to two files and extra libs to src/Makefile.*.
    164 
    165 * Fri Oct 21 2005 - damien.carbery (at] sun.com
    166 - Initial version.
    167