]> git.pld-linux.org Git - packages/GConf2.git/blob - GConf2.spec
- updated to 2.24.0; merged changes from DEVEL
[packages/GConf2.git] / GConf2.spec
1 #
2 # TODO:
3 # - update documentation to follow changes introduced in Patch0
4 #
5 # Conditional build:
6 %bcond_without  static_libs     # don't build static libraries
7 #
8 Summary:        GNOME2 configuration database system
9 Summary(pl.UTF-8):      System konfiguracyjnej bazy danych dla GNOME 2
10 Summary(pt_BR.UTF-8):   Sistema de Configuração do GNOME 2
11 Summary(ru.UTF-8):      Система конфигурации GNOME 2
12 Name:           GConf2
13 Version:        2.24.0
14 Release:        1
15 License:        LGPL v2+
16 Group:          X11/Applications
17 Source0:        http://ftp.gnome.org/pub/GNOME/sources/GConf/2.24/GConf-%{version}.tar.bz2
18 # Source0-md5:  4971d96f5ba94fe4a69396267bd5afe8
19 Patch0:         %{name}-NO_MAJOR_VERSION.patch
20 Patch1:         %{name}-path.patch
21 Patch2:         %{name}-reload.patch
22 URL:            http://www.gnome.org/
23 BuildRequires:  ORBit2-devel >= 1:2.14.9
24 BuildRequires:  PolicyKit-devel >= 0.7
25 BuildRequires:  autoconf
26 BuildRequires:  automake >= 1:1.9
27 BuildRequires:  gettext-devel
28 BuildRequires:  glib2-devel >= 1:2.18.0
29 BuildRequires:  gtk+2-devel >= 2:2.12.8
30 BuildRequires:  gtk-doc >= 1.8
31 BuildRequires:  intltool >= 0.36.2
32 BuildRequires:  libtool
33 BuildRequires:  libxml2-devel >= 1:2.6.30
34 BuildRequires:  openldap-devel >= 2.4.6
35 BuildRequires:  perl-base
36 BuildRequires:  pkgconfig
37 BuildRequires:  rpmbuild(macros) >= 1.197
38 Requires(post): findutils
39 Requires:       ORBit2 >= 1:2.14.9
40 Requires:       glib2 >= 1:2.18.0
41 Obsoletes:      GConf2-xinitrc
42 Obsoletes:      libGConf2
43 # sr@Latn vs. sr@latin
44 Conflicts:      glibc-misc < 6:2.7
45 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
46
47 %description
48 GConf2 is a configuration database system, functionally similar to the
49 Windows registry but lots better. :-) It's being written for the
50 GNOME2 desktop but does not require GNOME2; configure should notice if
51 GNOME2 is not installed and compile the basic GConf2 library anyway.
52
53 %description -l pl.UTF-8
54 GConf2 jest systemem konfiguracyjnej bazy danych, funkcjonalnie
55 podobnej do rejestru Windows, ale o wiele lepszej :-). Jest pisana dla
56 desktopu GNOME2, ale nie wymaga GNOME2; skrypt configure powinien
57 wykryć brak GNOME2 i skompilować tylko wersję podstawową GConf2.
58
59 %description -l pt_BR.UTF-8
60 Gconf2 é o sistema de banco de dados de configuração do GNOME2.
61
62 %package apidocs
63 Summary:        GConf2 API documentation
64 Summary(pl.UTF-8):      Dokumentacja API GConf2
65 Group:          Documentation
66 Requires:       gtk-doc-common
67
68 %description apidocs
69 GConf2 API documentation.
70
71 %description apidocs -l pl.UTF-8
72 Dokumentacja API GConf2.
73
74 %package devel
75 Summary:        GConf2 includes, etc
76 Summary(pl.UTF-8):      Pliki nagłówkowe GConf2
77 Summary(pt_BR.UTF-8):   Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
78 Group:          X11/Development/Libraries
79 Requires:       %{name} = %{version}-%{release}
80 Requires:       ORBit2-devel >= 1:2.14.9
81 Requires:       libxml2-devel >= 1:2.6.30
82 Obsoletes:      libGConf2-devel
83
84 %description devel
85 GConf2 includes etc.
86
87 %description devel -l pl.UTF-8
88 Pliki nagłówkowe GConf2.
89
90 %description devel -l pt_BR.UTF-8
91 Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
92
93 %package static
94 Summary:        GConf2 static libraries
95 Summary(pl.UTF-8):      Biblioteki statyczne GConf2
96 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento com gconf2
97 Group:          X11/Development/Libraries
98 Requires:       %{name}-devel = %{version}-%{release}
99
100 %description static
101 GConf2 static libraries.
102
103 %description static -l pl.UTF-8
104 Biblioteki statyczne GConf2.
105
106 %description static -l pt_BR.UTF-8
107 Bibliotecas estáticas para desenvolvimento com gconf
108
109 %package examples
110 Summary:        GConf2 - example programs
111 Summary(pl.UTF-8):      GConf2 - przykładowe programy
112 Group:          X11/Development/Libraries
113 Requires:       %{name}-devel = %{version}-%{release}
114
115 %description examples
116 GConf2 - example programs.
117
118 %description examples -l pl.UTF-8
119 GConf2 - przykładowe programy.
120
121 %package backend-evoldap
122 Summary:        Evolution Data Sources LDAP backend for GConf
123 Summary(pl.UTF-8):      Backend LDAP źródeł danych Evolution dla GConfa
124 Group:          Libraries
125 Requires:       %{name} = %{version}-%{release}
126
127 %description backend-evoldap
128 This is a special-purpose backend for GConf which enables default mail
129 accounts, addressbooks and calendars for Evolution to be configured
130 using each user's LDAP entry. By setting each user's mail address,
131 incoming/outgoing mail server addresses and addressbook/calendar
132 addresses in the user's LDAP entry, Evolution will be automatically
133 configured to use these addresses.
134
135 %description backend-evoldap -l pl.UTF-8
136 To jest backend GConfa specjalnego przeznaczenia, pozwalający na
137 konfigurowanie domyślnych kont pocztowych, książek adresowych i
138 kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
139 użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
140 adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
141 adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
142 automatycznie skonfigurowane do używania tych adresów.
143
144 %prep
145 %setup -q -n GConf-%{version}
146 %patch0 -p1
147 %patch1 -p1
148 %patch2 -p1
149
150 %build
151 %{__gtkdocize}
152 %{__glib_gettextize}
153 %{__intltoolize}
154 %{__libtoolize}
155 %{__aclocal}
156 %{__autoheader}
157 %{__autoconf}
158 %{__automake}
159 %configure \
160         %{!?with_static_libs:--disable-static} \
161         --enable-gtk-doc \
162         --with-html-dir=%{_gtkdocdir}
163
164 %{__make}
165
166 %install
167 rm -rf $RPM_BUILD_ROOT
168 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/schemas}
169
170 %{__make} install \
171         DESTDIR=$RPM_BUILD_ROOT
172
173 cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
174 cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
175
176 %find_lang %{name}
177
178 # no *.{la,a} for modules - shut up check-files
179 rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a}
180
181 %clean
182 rm -rf $RPM_BUILD_ROOT
183
184 %post
185 /sbin/ldconfig
186 umask 022
187 for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
188     do
189     GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
190     if [ ! -f "$GCONF_TREE" ]; then
191         gconf-merge-tree "$GCONF_DIR"
192         chmod 644 "$GCONF_TREE"
193         find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
194         rm -f "$GCONF_DIR/%gconf.xml"
195     fi
196 done
197
198 %postun -p /sbin/ldconfig
199
200 %files -f %{name}.lang
201 %defattr(644,root,root,755)
202 %doc AUTHORS NEWS README
203 %attr(755,root,root) %{_bindir}/gconf-merge-tree
204 %attr(755,root,root) %{_bindir}/gconftool-2
205 %attr(755,root,root) %{_libexecdir}/gconf-defaults-mechanism
206 %attr(755,root,root) %{_libexecdir}/gconf-sanity-check-2
207 %attr(755,root,root) %{_libexecdir}/gconfd-2
208 %attr(755,root,root) %{_libdir}/libgconf-2.so.*.*.*
209 %attr(755,root,root) %ghost %{_libdir}/libgconf-2.so.4
210 %dir %{_libdir}/GConf2
211 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
212 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
213 %{_sysconfdir}/dbus-1/system.d/org.gnome.GConf.Defaults.conf
214 %dir %{_sysconfdir}/gconf
215 %dir %{_sysconfdir}/gconf/2
216 %{_sysconfdir}/gconf/gconf.xml.*
217 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
218 %dir %{_sysconfdir}/gconf/schemas
219 %{_datadir}/PolicyKit/policy/org.gnome.gconf.defaults.policy
220 %{_datadir}/dbus-1/services/org.gnome.GConf.service
221 %{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service
222 %dir %{_datadir}/GConf
223 %dir %{_datadir}/GConf/schema
224 %{_datadir}/sgml/gconf
225 %{_mandir}/man1/gconftool-2.1*
226
227 %files apidocs
228 %defattr(644,root,root,755)
229 %{_gtkdocdir}/gconf
230
231 %files devel
232 %defattr(644,root,root,755)
233 %doc ChangeLog TODO
234 %attr(755,root,root) %{_libdir}/libgconf-2.so
235 %{_libdir}/libgconf-2.la
236 %{_includedir}/gconf2
237 %{_aclocaldir}/gconf-2.m4
238 %{_pkgconfigdir}/gconf-2.0.pc
239
240 %if %{with static_libs}
241 %files static
242 %defattr(644,root,root,755)
243 %{_libdir}/libgconf-2.a
244 %endif
245
246 %files examples
247 %defattr(644,root,root,755)
248 %{_examplesdir}/%{name}-%{version}
249
250 %files backend-evoldap
251 %defattr(644,root,root,755)
252 %doc backends/README.evoldap
253 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
254 %{_datadir}/GConf/schema/evoldap.schema
255 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf
This page took 0.0626370000000001 seconds and 3 git commands to generate.