author | darrenk |
Mon, 29 May 2006 13:29:34 +0000 | |
changeset 7329 | ea6dd6dd48ce |
parent 7035 | 3cfd68e4e41f |
child 7678 | 4315b59d2622 |
permissions | -rw-r--r-- |
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 |
|
6929 | 12 |
Version: 2.14.0 |
5518 | 13 |
Release: 1 |
14 |
Distribution: Java Desktop System |
|
15 |
Vendor: Sun Microsystems, Inc. |
|
16 |
Summary: GNOME System Tools |
|
6929 | 17 |
Source: http://ftp.gnome.org/pub/GNOME/sources/%{name}/2.14/%{name}-%{version}.tar.bz2 |
6955 | 18 |
Patch1: gnome-system-tools-01-config.diff |
19 |
Patch2: gnome-system-tools-02-forkpty.diff |
|
7329 | 20 |
Patch3: gnome-system-tools-03-network.diff |
6955 | 21 |
Patch4: gnome-system-tools-04-tz.diff |
22 |
Patch5: gnome-system-tools-05-shares.diff |
|
6975 | 23 |
Patch6: gnome-system-tools-06-time.diff |
24 |
Patch7: gnome-system-tools-07-users.diff |
|
5518 | 25 |
URL: http://www.gnome.org |
26 |
BuildRoot: %{_tmppath}/%{name}-%{version}-build |
|
27 |
Docdir: %{_defaultdocdir}/%{name} |
|
28 |
Autoreqprov: on |
|
29 |
Prereq: GConf |
|
30 |
||
31 |
%define libgnomeui_version 2.9.0 |
|
32 |
%define GConf_version 2.2.0 |
|
33 |
%define system_tools_backends_version 1.2.0 |
|
34 |
%define nautilus_version 2.9.3 |
|
35 |
||
36 |
Requires: libgnomeui >= %{libgnomeui_version} |
|
37 |
Requires: GConf >= %{GConf_version} |
|
38 |
Requires: system-tools-backends >= %{system_tools_backends_version} |
|
39 |
Requires: nautilus >= %{nautilus_version} |
|
40 |
BuildRequires: libgnomeui-devel >= %{libgnomeui_version} |
|
41 |
BuildRequires: GConf-devel >= %{GConf_version} |
|
42 |
BuildRequires: system-tools-backends >= %{system_tools_backends_version} |
|
43 |
BuildRequires: nautilus-devel >= %{nautilus_version} |
|
44 |
BuildRequires: intltool |
|
45 |
||
46 |
%description |
|
47 |
These tools are intended to simplify the tasks of configuring a Unix system |
|
48 |
for workstations. They are not intended for configuring Unix servers. |
|
49 |
||
50 |
Configuring different Unix systems is different; every Unix system has |
|
51 |
different ways of being administrated. The GNOME System Tools aspire to |
|
52 |
unify these systems. |
|
53 |
||
54 |
Each one of the GNOME System Tools is split in two parts: a backend (which |
|
55 |
is typically written in Perl) and a user interface frontend (which is |
|
56 |
typically written in C or Python). |
|
57 |
||
58 |
The backends are written in a way that should allow us to quickly adapt |
|
59 |
them to various different flavors of Unix; the backend probes your system |
|
60 |
and parses the existing system files. When the user has finished editing |
|
61 |
the system settings, the configuration is written back as patches to the |
|
62 |
system files. |
|
63 |
||
64 |
This means that the GNOME System Tools use whatever configuration files are |
|
65 |
available on your system, and you can still edit those files by hand or |
|
66 |
with other configuration tools without conflicts or data loss. |
|
67 |
||
68 |
%prep |
|
69 |
%setup -q |
|
6955 | 70 |
%patch1 -p1 |
71 |
%patch2 -p1 |
|
72 |
%patch3 -p1 |
|
73 |
%patch4 -p1 |
|
74 |
%patch5 -p1 |
|
6975 | 75 |
%patch6 -p1 |
76 |
%patch7 -p1 |
|
5518 | 77 |
|
78 |
||
79 |
%build |
|
80 |
%ifos linux |
|
81 |
if [ -x /usr/bin/getconf ]; then |
|
82 |
CPUS=`getconf _NPROCESSORS_ONLN` |
|
83 |
fi |
|
84 |
%else |
|
85 |
CPUS=`/usr/sbin/psrinfo | grep on-line | wc -l | tr -d ' '` |
|
86 |
%endif |
|
87 |
if test "x$CPUS" = "x" -o $CPUS = 0; then |
|
88 |
CPUS=1 |
|
89 |
fi |
|
90 |
||
6995 | 91 |
%ifos solaris |
7035 | 92 |
CFLAGS="-D NOPTY -D USE_AUTHEN_PAM $RPM_OPT_FLAGS" \ |
6995 | 93 |
%else |
5518 | 94 |
CFLAGS="$RPM_OPT_FLAGS" \ |
6995 | 95 |
%endif |
5518 | 96 |
./configure \ |
6923 | 97 |
--prefix=%{_prefix} \ |
98 |
--sysconfdir=%{_sysconfdir} \ |
|
99 |
--localstatedir=%{_localstatedir} \ |
|
100 |
--mandir=%{_mandir} \ |
|
101 |
--disable-scrollkeeper |
|
5518 | 102 |
make -j $CPUS |
103 |
||
104 |
%install |
|
105 |
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 |
|
106 |
make -i install DESTDIR=$RPM_BUILD_ROOT |
|
107 |
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL |
|
108 |
rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/libnautilus-gst-shares.la |
|
109 |
rm $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-1.0/libnautilus-gst-shares.a |
|
6923 | 110 |
rm -rf $RPM_BUILD_ROOT%{_localstatedir}/scrollkeeper |
5518 | 111 |
|
112 |
%clean |
|
113 |
rm -rf $RPM_BUILD_ROOT |
|
114 |
||
115 |
%post |
|
116 |
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` |
|
117 |
SCHEMAS="gnome-system-tools.schemas" |
|
118 |
for S in $SCHEMAS; do |
|
119 |
gconftool-2 --makefile-install-rule %{_sysconfdir}/gconf/schemas/$S >/dev/null |
|
120 |
done |
|
121 |
||
122 |
%files |
|
123 |
%defattr (-, root, root) |
|
124 |
%{_bindir}/* |
|
125 |
%{_libdir}/nautilus/extensions-1.0/libnautilus-gst-shares.so |
|
126 |
%{_libdir}/pkgconfig/ |
|
127 |
%{_datadir}/applications/ |
|
128 |
%{_datadir}/gnome-system-tools/ |
|
129 |
%{_datadir}/gnome/help/ |
|
130 |
%{_datadir}/locale/*/LC_MESSAGES/*.mo |
|
131 |
%{_datadir}/omf/ |
|
132 |
%{_sysconfdir}/gconf/schemas/* |
|
133 |
||
134 |
%changelog |
|
7035 | 135 |
* Mon Apr 10 2006 - [email protected] |
136 |
- Add define USE_AUTHEN_PAM for Solaris |
|
137 |
||
6975 | 138 |
* Fri Mar 24 2006 - [email protected] |
139 |
- Add patch gnome-system-tools-07-users.diff. |
|
140 |
||
6955 | 141 |
* Thu Mar 16 2006 - [email protected] |
142 |
- Move patches here from Solaris package spec file. |
|
143 |
||
6929 | 144 |
* Tue Mar 14 2006 - [email protected] |
145 |
- Bump to 2.14.0. |
|
146 |
||
6713 | 147 |
* Thu Feb 2 2006 - [email protected] |
148 |
- Bump to 2.13.2. |
|
149 |
||
6628 | 150 |
* Fri Jan 20 2006 - [email protected] |
151 |
- Bump to 2.13.1. |
|
152 |
||
6016
b54189f766bc
*.spec: Bump versions. Fix Source url in some files without bumping.
dc144907
parents:
5529
diff
changeset
|
153 |
* Tue Sep 27 2005 - [email protected] |
b54189f766bc
*.spec: Bump versions. Fix Source url in some files without bumping.
dc144907
parents:
5529
diff
changeset
|
154 |
- Bump to 1.3.92. |
b54189f766bc
*.spec: Bump versions. Fix Source url in some files without bumping.
dc144907
parents:
5529
diff
changeset
|
155 |
|
5529
9133a916e53a
* *.spec: More bumping to latest versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
156 |
* Mon Aug 15 2005 - [email protected] |
9133a916e53a
* *.spec: More bumping to latest versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
157 |
- Bump to 1.3.2. |
9133a916e53a
* *.spec: More bumping to latest versions for 2.11 work.
dc144907
parents:
5518
diff
changeset
|
158 |
|
5518 | 159 |
* Tue May 24 2005 - [email protected] |
160 |
- Initial spec |