5518
|
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 |
|
|
9 |
Name: gnome-system-tools
|
|
10 |
License: GPL
|
|
11 |
Group: System/GUI/GNOME
|
|
12 |
Version: 1.2.0
|
|
13 |
Release: 1
|
|
14 |
Distribution: Java Desktop System
|
|
15 |
Vendor: Sun Microsystems, Inc.
|
|
16 |
Summary: GNOME System Tools
|
|
17 |
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/1.2/%{name}-%{version}.tar.bz2
|
|
18 |
URL: http://www.gnome.org
|
|
19 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
20 |
Docdir: %{_defaultdocdir}/%{name}
|
|
21 |
Autoreqprov: on
|
|
22 |
Prereq: GConf
|
|
23 |
|
|
24 |
%define libgnomeui_version 2.9.0
|
|
25 |
%define GConf_version 2.2.0
|
|
26 |
%define system_tools_backends_version 1.2.0
|
|
27 |
%define nautilus_version 2.9.3
|
|
28 |
|
|
29 |
Requires: libgnomeui >= %{libgnomeui_version}
|
|
30 |
Requires: GConf >= %{GConf_version}
|
|
31 |
Requires: system-tools-backends >= %{system_tools_backends_version}
|
|
32 |
Requires: nautilus >= %{nautilus_version}
|
|
33 |
BuildRequires: libgnomeui-devel >= %{libgnomeui_version}
|
|
34 |
BuildRequires: GConf-devel >= %{GConf_version}
|
|
35 |
BuildRequires: system-tools-backends >= %{system_tools_backends_version}
|
|
36 |
BuildRequires: nautilus-devel >= %{nautilus_version}
|
|
37 |
BuildRequires: intltool
|
|
38 |
|
|
39 |
%description
|
|
40 |
These tools are intended to simplify the tasks of configuring a Unix system
|
|
41 |
for workstations. They are not intended for configuring Unix servers.
|
|
42 |
|
|
43 |
Configuring different Unix systems is different; every Unix system has
|
|
44 |
different ways of being administrated. The GNOME System Tools aspire to
|
|
45 |
unify these systems.
|
|
46 |
|
|
47 |
Each one of the GNOME System Tools is split in two parts: a backend (which
|
|
48 |
is typically written in Perl) and a user interface frontend (which is
|
|
49 |
typically written in C or Python).
|
|
50 |
|
|
51 |
The backends are written in a way that should allow us to quickly adapt
|
|
52 |
them to various different flavors of Unix; the backend probes your system
|
|
53 |
and parses the existing system files. When the user has finished editing
|
|
54 |
the system settings, the configuration is written back as patches to the
|
|
55 |
system files.
|
|
56 |
|
|
57 |
This means that the GNOME System Tools use whatever configuration files are
|
|
58 |
available on your system, and you can still edit those files by hand or
|
|
59 |
with other configuration tools without conflicts or data loss.
|
|
60 |
|
|
61 |
%prep
|
|
62 |
%setup -q
|
|
63 |
|
|
64 |
|
|
65 |
%build
|
|
66 |
%ifos linux
|
|
67 |
if [ -x /usr/bin/getconf ]; then
|
|
68 |
CPUS=`getconf _NPROCESSORS_ONLN`
|
|
69 |
fi
|
|
70 |
%else
|
|
71 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '`
|
|
72 |
%endif
|
|
73 |
if test "x$CPUS" = "x" -o $CPUS = 0; then
|
|
74 |
CPUS=1
|
|
75 |
fi
|
|
76 |
|
|
77 |
CFLAGS="$RPM_OPT_FLAGS" \
|
|
78 |
./configure \
|
|
79 |
--prefix=%{_prefix} \
|
|
80 |
--sysconfdir=%{_sysconfdir} \
|
|
81 |
--mandir=%{_mandir}
|
|
82 |
make -j $CPUS
|
|
83 |
|
|
84 |
%install
|
|
85 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
|
|
86 |
make -i install DESTDIR=$RPM_BUILD_ROOT
|
|
87 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
|
|
88 |
rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/libnautilus-gst-shares.la
|
|
89 |
rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/libnautilus-gst-shares.a
|
|
90 |
|
|
91 |
%clean
|
|
92 |
rm -rf $RPM_BUILD_ROOT
|
|
93 |
|
|
94 |
%post
|
|
95 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
|
|
96 |
SCHEMAS="gnome-system-tools.schemas"
|
|
97 |
for S in $SCHEMAS; do
|
|
98 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null
|
|
99 |
done
|
|
100 |
|
|
101 |
%files
|
|
102 |
%defattr (-, root, root)
|
|
103 |
%{_bindir}/*
|
|
104 |
%{_libdir}/nautilus/extensions-1.0/libnautilus-gst-shares.so
|
|
105 |
%{_libdir}/pkgconfig/
|
|
106 |
%{_datadir}/applications/
|
|
107 |
%{_datadir}/gnome-system-tools/
|
|
108 |
%{_datadir}/gnome/help/
|
|
109 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo
|
|
110 |
%{_datadir}/omf/
|
|
111 |
%{_sysconfdir}/gconf/schemas/*
|
|
112 |
|
|
113 |
%changelog
|
|
114 |
* Tue May 24 2005 - [email protected]
|
|
115 |
- Initial spec
|