1 | # |
---|
2 | # Note that this is NOT a relocatable package |
---|
3 | # $Id: gconf.spec.in,v 1.1.1.1 2002-12-26 19:44:09 ghudson Exp $ |
---|
4 | # |
---|
5 | %define ver @VERSION@ |
---|
6 | %define rel 1 |
---|
7 | %define prefix %{_prefix} |
---|
8 | %define name @PACKAGE@ |
---|
9 | %define sysconfdir /etc |
---|
10 | |
---|
11 | Summary: Gnome Config System |
---|
12 | Name: %name |
---|
13 | Version: %ver |
---|
14 | Release: %rel |
---|
15 | Copyright: LGPL |
---|
16 | Group: System Environment/Base |
---|
17 | Source: ftp://ftp.gnome.org/pub/GNOME/unstable/sources/GConf/GConf-%{ver}.tar.gz |
---|
18 | BuildRoot: /var/tmp/gconf-root |
---|
19 | Packager: Eskil Heyn Olsen <eskil@eazel.com> |
---|
20 | URL: http://www.gnome.org/ |
---|
21 | Prereq: /sbin/install-info |
---|
22 | Prefix: %{prefix} |
---|
23 | Docdir: %{prefix}/doc |
---|
24 | Requires: glib >= 1.2.0 |
---|
25 | Requires: oaf >= 0.3.0 |
---|
26 | Requires: gtk+ >= 1.2.0 |
---|
27 | Requires: ORBit >= 0.5.0 |
---|
28 | Requires: libxml >= 1.8.0 |
---|
29 | |
---|
30 | %description |
---|
31 | GConf is the GNOME Configuration database system. |
---|
32 | |
---|
33 | GNOME is the GNU Network Object Model Environment. That's a fancy |
---|
34 | name but really GNOME is a nice GUI desktop environment. It makes |
---|
35 | using your computer easy, powerful, and easy to configure. |
---|
36 | |
---|
37 | %package devel |
---|
38 | Summary: Gnome Config System development package |
---|
39 | Group: Development/Libraries |
---|
40 | Requires: %name = %{ver} |
---|
41 | Requires: ORBit-devel |
---|
42 | Requires: glib-devel |
---|
43 | Requires: oaf-devel |
---|
44 | Requires: gtk+-devel |
---|
45 | PreReq: /sbin/install-info |
---|
46 | |
---|
47 | %description devel |
---|
48 | GConf development package. Contains files needed for doing |
---|
49 | development using GConf. |
---|
50 | |
---|
51 | %changelog |
---|
52 | |
---|
53 | * Sat Oct 13 2001 Ross Golder <ross@golder.org> |
---|
54 | - Updated to reflect installation path changes |
---|
55 | |
---|
56 | * Sun Jun 11 2000 Eskil Heyn Olsen <deity@eazel.com> |
---|
57 | - Created the .spec file |
---|
58 | |
---|
59 | %prep |
---|
60 | %setup |
---|
61 | |
---|
62 | %build |
---|
63 | # Needed for snapshot releases. |
---|
64 | if [ ! -f configure ]; then |
---|
65 | CFLAGS="$RPM_OPT_FLAGS" ./autogen.sh --prefix=%prefix --sysconfdir=%{sysconfdir} |
---|
66 | else |
---|
67 | CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%prefix --sysconfdir=%{sysconfdir} |
---|
68 | fi |
---|
69 | |
---|
70 | if [ "$SMP" != "" ]; then |
---|
71 | (make "MAKE=make -k -j $SMP"; exit 0) |
---|
72 | make |
---|
73 | else |
---|
74 | make |
---|
75 | fi |
---|
76 | |
---|
77 | %install |
---|
78 | rm -rf $RPM_BUILD_ROOT |
---|
79 | make prefix=$RPM_BUILD_ROOT%{prefix} sysconfdir=$RPM_BUILD_ROOT%{sysconfdir} install |
---|
80 | |
---|
81 | %clean |
---|
82 | rm -rf $RPM_BUILD_ROOT |
---|
83 | |
---|
84 | %post -p /sbin/ldconfig |
---|
85 | |
---|
86 | %postun -p /sbin/ldconfig |
---|
87 | |
---|
88 | %files |
---|
89 | %defattr(-, root, root) |
---|
90 | %doc AUTHORS COPYING ChangeLog NEWS README |
---|
91 | %config(noreplace) %{sysconfdir}/gconf/2/path |
---|
92 | %config(noreplace) %{sysconfdir}/gconf/schemas/*.schemas |
---|
93 | %dir %{sysconfdir}/gconf/gconf.xml.defaults |
---|
94 | %dir %{sysconfdir}/gconf/gconf.xml.mandatory |
---|
95 | %{prefix}/libexec/gconfd-2 |
---|
96 | %{prefix}/bin/gconftool |
---|
97 | %{prefix}/bin/gconftool-2 |
---|
98 | %{prefix}/lib/lib*.so.* |
---|
99 | %{prefix}/lib/GConf/2/*.so |
---|
100 | %{prefix}/lib/pkgconfig/*.pc |
---|
101 | %{prefix}/share/locale/*/LC_MESSAGES/*.mo |
---|
102 | %{prefix}/share/gconf/2 |
---|
103 | |
---|
104 | |
---|
105 | ## /etc/gconf/schemas/desktop.schemas is notably missing; |
---|
106 | ## it will be shared between versions of GConf, preventing |
---|
107 | ## simulataneous installation, so maybe should be in |
---|
108 | ## a different (minuscule) package. |
---|
109 | |
---|
110 | %files devel |
---|
111 | %defattr(-, root, root) |
---|
112 | %{prefix}/lib/*.a |
---|
113 | %{prefix}/lib/*.la |
---|
114 | %{prefix}/lib/*.so |
---|
115 | #%{prefix}/lib/GConf/2/*.a |
---|
116 | #%{prefix}/lib/GConf/2/*.la |
---|
117 | %{prefix}/include/gconf/2/gconf/*.h |
---|
118 | %{prefix}/share/aclocal/*.m4 |
---|