]> git.pld-linux.org Git - packages/GConf2.git/blob - GConf2.spec
f8381aa88fb4fe0967f901b3dff8b2f39a05dea0
[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.9
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         POLKIT_POLICY_FILE_VALIDATE=/usr/bin/polkit-policy-file-validate \
161         %{!?with_static_libs:--disable-static} \
162         --enable-gtk-doc \
163         --with-html-dir=%{_gtkdocdir}
164
165 %{__make}
166
167 %install
168 rm -rf $RPM_BUILD_ROOT
169 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/schemas}
170
171 %{__make} install \
172         DESTDIR=$RPM_BUILD_ROOT
173
174 cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
175 cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
176
177 %find_lang %{name}
178
179 # no *.{la,a} for modules - shut up check-files
180 rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a}
181
182 %clean
183 rm -rf $RPM_BUILD_ROOT
184
185 %post
186 /sbin/ldconfig
187 umask 022
188 for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
189     do
190     GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
191     if [ ! -f "$GCONF_TREE" ]; then
192         gconf-merge-tree "$GCONF_DIR"
193         chmod 644 "$GCONF_TREE"
194         find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
195         rm -f "$GCONF_DIR/%gconf.xml"
196     fi
197 done
198
199 %postun -p /sbin/ldconfig
200
201 %files -f %{name}.lang
202 %defattr(644,root,root,755)
203 %doc AUTHORS NEWS README
204 %attr(755,root,root) %{_bindir}/gconf-merge-tree
205 %attr(755,root,root) %{_bindir}/gconftool-2
206 %attr(755,root,root) %{_libexecdir}/gconf-defaults-mechanism
207 %attr(755,root,root) %{_libexecdir}/gconf-sanity-check-2
208 %attr(755,root,root) %{_libexecdir}/gconfd-2
209 %attr(755,root,root) %{_libdir}/libgconf-2.so.*.*.*
210 %attr(755,root,root) %ghost %{_libdir}/libgconf-2.so.4
211 %dir %{_libdir}/GConf2
212 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
213 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
214 %{_sysconfdir}/dbus-1/system.d/org.gnome.GConf.Defaults.conf
215 %dir %{_sysconfdir}/gconf
216 %dir %{_sysconfdir}/gconf/2
217 %{_sysconfdir}/gconf/gconf.xml.*
218 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
219 %dir %{_sysconfdir}/gconf/schemas
220 %{_datadir}/PolicyKit/policy/org.gnome.gconf.defaults.policy
221 %{_datadir}/dbus-1/services/org.gnome.GConf.service
222 %{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service
223 %dir %{_datadir}/GConf
224 %dir %{_datadir}/GConf/schema
225 %{_datadir}/sgml/gconf
226 %{_mandir}/man1/gconftool-2.1*
227
228 %files apidocs
229 %defattr(644,root,root,755)
230 %{_gtkdocdir}/gconf
231
232 %files devel
233 %defattr(644,root,root,755)
234 %doc ChangeLog TODO
235 %attr(755,root,root) %{_libdir}/libgconf-2.so
236 %{_libdir}/libgconf-2.la
237 %{_includedir}/gconf2
238 %{_aclocaldir}/gconf-2.m4
239 %{_pkgconfigdir}/gconf-2.0.pc
240
241 %if %{with static_libs}
242 %files static
243 %defattr(644,root,root,755)
244 %{_libdir}/libgconf-2.a
245 %endif
246
247 %files examples
248 %defattr(644,root,root,755)
249 %{_examplesdir}/%{name}-%{version}
250
251 %files backend-evoldap
252 %defattr(644,root,root,755)
253 %doc backends/README.evoldap
254 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
255 %{_datadir}/GConf/schema/evoldap.schema
256 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf
This page took 0.070445 seconds and 2 git commands to generate.