Home | History | Annotate | Download | only in gnome-2-16
      1 #
      2 # spec file for package gnome-system-tools
      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: dkenny
      9 #
     10 Name:		gnome-system-tools
     11 License:	GPL
     12 Group:		System/GUI/GNOME
     13 # WARNING: Do NOT bump version as other dependencies (e.g DBUS) need work first.
     14 Version:	2.14.0
     15 Release:	1
     16 Distribution:	Java Desktop System
     17 Vendor:		Sun Microsystems, Inc.
     18 Summary:	GNOME System Tools
     19 Source:		http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.14/%{name}-%{version}.tar.bz2
     20 Patch1:		gnome-system-tools-01-config.diff
     21 Patch2:		gnome-system-tools-02-forkpty.diff
     22 Patch3:		gnome-system-tools-03-network.diff
     23 Patch4:		gnome-system-tools-04-tz.diff
     24 Patch5:		gnome-system-tools-05-shares.diff
     25 Patch6:		gnome-system-tools-06-time.diff
     26 Patch7:		gnome-system-tools-07-users.diff
     27 Patch8:		gnome-system-tools-08-services.diff
     28 #date:2006-11-15 owner:calumb bugster:6489289 bugzilla:375678 type:bug
     29 Patch9:         gnome-system-tools-09-launch-menu-item.diff
     30 URL:		http://www.gnome.org
     31 BuildRoot:	%{_tmppath}/%{name}-%{version}-build
     32 Docdir:		%{_defaultdocdir}/%{name}
     33 Autoreqprov:	on
     34 Prereq:         GConf
     35 
     36 %define libgnomeui_version 2.9.0
     37 %define GConf_version 2.2.0
     38 %define system_tools_backends_version 1.2.0
     39 %define nautilus_version 2.9.3
     40 
     41 Requires:	libgnomeui >= %{libgnomeui_version}
     42 Requires:	GConf >= %{GConf_version}
     43 Requires:	system-tools-backends >= %{system_tools_backends_version}
     44 Requires:	nautilus >= %{nautilus_version}
     45 BuildRequires:  libgnomeui-devel >= %{libgnomeui_version}
     46 BuildRequires:  GConf-devel >= %{GConf_version}
     47 BuildRequires:	system-tools-backends >= %{system_tools_backends_version}
     48 BuildRequires:	nautilus-devel >= %{nautilus_version}
     49 BuildRequires:  intltool
     50 
     51 %description
     52 These tools are intended to simplify the tasks of configuring a Unix system
     53 for workstations. They are not intended for configuring Unix servers.
     54 
     55 Configuring different Unix systems is different; every Unix system has
     56 different ways of being administrated. The GNOME System Tools aspire to
     57 unify these systems.
     58 
     59 Each one of the GNOME System Tools is split in two parts: a backend (which
     60 is typically written in Perl) and a user interface frontend (which is
     61 typically written in C or Python).
     62 
     63 The backends are written in a way that should allow us to quickly adapt
     64 them to various different flavors of Unix; the backend probes your system
     65 and parses the existing system files. When the user has finished editing
     66 the system settings, the configuration is written back as patches to the
     67 system files.
     68 
     69 This means that the GNOME System Tools use whatever configuration files are
     70 available on your system, and you can still edit those files by hand or
     71 with other configuration tools without conflicts or data loss.
     72 
     73 %prep
     74 %setup -q
     75 %patch1 -p1
     76 %patch2 -p1
     77 %patch3 -p1
     78 %patch4 -p1
     79 %patch5 -p1
     80 %patch6 -p1
     81 %patch7 -p1
     82 %patch8 -p1
     83 %patch9 -p1
     84 
     85 %build
     86 %ifos linux
     87 if [ -x /usr/bin/getconf ]; then
     88   CPUS=`getconf _NPROCESSORS_ONLN`
     89 fi
     90 %else
     91   CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
     92 %endif
     93 if test "x$CPUS" = "x" -o $CPUS = 0; then
     94   CPUS=1
     95 fi
     96 
     97 glib-gettextize -f
     98 aclocal $ACLOCAL_FLAGS
     99 libtoolize --force
    100 autoheader
    101 autoconf
    102 
    103 %ifos solaris
    104 CFLAGS="-D NOPTY -D USE_AUTHEN_PAM $RPM_OPT_FLAGS" \
    105 %else
    106 CFLAGS="$RPM_OPT_FLAGS" \
    107 %endif
    108 
    109   ./configure \
    110 	--prefix=%{_prefix} 		  \
    111 	--sysconfdir=%{_sysconfdir}       \
    112 	--localstatedir=%{_localstatedir} \
    113 	--mandir=%{_mandir}	          \
    114 	--disable-scrollkeeper
    115 make -j $CPUS
    116 
    117 %install
    118 export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
    119 make -i install DESTDIR=$RPM_BUILD_ROOT
    120 unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
    121 rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/libnautilus-gst-shares.la
    122 rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/libnautilus-gst-shares.a
    123 rm -rf $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper
    124 
    125 %clean
    126 rm -rf $RPM_BUILD_ROOT
    127 
    128 %post
    129 export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
    130 SCHEMAS="gnome-system-tools.schemas"
    131 for S in $SCHEMAS; do
    132         gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
    133 done
    134 
    135 %files
    136 %defattr (-, root, root)
    137 %{_bindir}/*
    138 %{_libdir}/nautilus/extensions-1.0/libnautilus-gst-shares.so
    139 %{_libdir}/pkgconfig/
    140 %{_datadir}/applications/
    141 %{_datadir}/gnome-system-tools/
    142 %{_datadir}/gnome/help/
    143 %{_datadir}/locale/*/LC_MESSAGES/*.mo
    144 %{_datadir}/omf/
    145 %{_sysconfdir}/gconf/schemas/*
    146 
    147 %changelog
    148 * Wed Nov 15 2006 - calum.benson@sun.com
    149 - Change menu item to match latest UI spec.
    150 
    151 * Sat Oct 21 2006 - jim.li@sun.com
    152 - Run autoconf since we're patching configure.ac to look for gksu.
    153 
    154 * Mon Apr 10 2006 - padraig.obriain (at] sun.com
    155 - Add define USE_AUTHEN_PAM for Solaris
    156 
    157 * Fri Mar 24 2006 - padraig.obriain (at] sun.com
    158 - Add patch gnome-system-tools-07-users.diff.
    159 
    160 * Thu Mar 16 2006 - padraig.obriain (at] sun.com
    161 - Move patches here from Solaris package spec file.
    162 
    163 * Tue Mar 14 2006 - damien.carbery (at] sun.com
    164 - Bump to 2.14.0.
    165 
    166 * Thu Feb  2 2006 - damien.carbery (at] sun.com
    167 - Bump to 2.13.2.
    168 
    169 * Fri Jan 20 2006 - damien.carbery (at] sun.com
    170 - Bump to 2.13.1.
    171 
    172 * Tue Sep 27 2005 - damien.carbery (at] sun.com
    173 - Bump to 1.3.92.
    174 
    175 * Mon Aug 15 2005 - damien.carbery (at] sun.com
    176 - Bump to 1.3.2.
    177 
    178 * Tue May 24 2005 - glynn.foster (at] sun.com
    179 - Initial spec
    180