]> git.pld-linux.org Git - packages/GConf2.git/blob - GConf2.spec
3cb8106e96ebc81b223de522bf1c1189cca60cfa
[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.28.0
14 Release:        1
15 License:        LGPL v2+
16 Group:          X11/Applications
17 Source0:        http://ftp.gnome.org/pub/GNOME/sources/GConf/2.28/GConf-%{version}.tar.bz2
18 # Source0-md5:  ad2aeb9c7d906b274954c51a615caeac
19 Patch0:         %{name}-NO_MAJOR_VERSION.patch
20 Patch1:         %{name}-reload.patch
21 URL:            http://www.gnome.org/
22 BuildRequires:  ORBit2-devel >= 1:2.14.9
23 BuildRequires:  autoconf >= 2.60
24 BuildRequires:  automake >= 1:1.9
25 BuildRequires:  docbook-dtd412-xml
26 BuildRequires:  gettext-devel
27 BuildRequires:  dbus-glib-devel >= 0.74
28 BuildRequires:  glib2-devel >= 1:2.20.0
29 BuildRequires:  gtk+2-devel >= 2:2.16.0
30 BuildRequires:  gtk-doc >= 1.8
31 BuildRequires:  intltool >= 0.40.0
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:  polkit-devel >= 0.92
38 BuildRequires:  rpmbuild(macros) >= 1.197
39 Requires(post): findutils
40 Requires:       %{name}-libs = %{version}-%{release}
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 libs
63 Summary:        GConf2 shared library
64 Summary(pl.UTF-8):      Biblioteka współdzielona GConf2
65 Group:          Libraries
66 Requires:       ORBit2 >= 1:2.14.9
67 Requires:       glib2 >= 1:2.20.0
68 Conflicts:      GConf2 < 2.24.0-2
69
70 %description libs
71 GConf2 shared library and gconftool utility (used both for
72 configuration management and development purposes).
73
74 %description libs -l pl.UTF-8
75 Biblioteka współdzielona GConf2 oraz narzędzie gconftool (używane
76 zarówno przy zarządzaniu konfiguracją, jak i tworzeniu
77 oprogramowania).
78
79 %package devel
80 Summary:        Header files for GConf2 library
81 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki GConf2
82 Summary(pt_BR.UTF-8):   Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
83 Group:          Development/Libraries
84 Requires:       %{name}-libs = %{version}-%{release}
85 Requires:       ORBit2-devel >= 1:2.14.9
86 Requires:       dbus-devel >= 1.0.0
87 Requires:       libxml2-devel >= 1:2.6.30
88 Obsoletes:      libGConf2-devel
89
90 %description devel
91 Header files for GConf2 library.
92
93 %description devel -l pl.UTF-8
94 Pliki nagłówkowe biblioteki GConf2.
95
96 %description devel -l pt_BR.UTF-8
97 Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
98
99 %package static
100 Summary:        GConf2 static libraries
101 Summary(pl.UTF-8):      Biblioteki statyczne GConf2
102 Summary(pt_BR.UTF-8):   Bibliotecas estáticas para desenvolvimento com gconf2
103 Group:          Development/Libraries
104 Requires:       %{name}-devel = %{version}-%{release}
105
106 %description static
107 GConf2 static libraries.
108
109 %description static -l pl.UTF-8
110 Biblioteki statyczne GConf2.
111
112 %description static -l pt_BR.UTF-8
113 Bibliotecas estáticas para desenvolvimento com gconf
114
115 %package apidocs
116 Summary:        GConf2 API documentation
117 Summary(pl.UTF-8):      Dokumentacja API GConf2
118 Group:          Documentation
119 Requires:       gtk-doc-common
120
121 %description apidocs
122 GConf2 API documentation.
123
124 %description apidocs -l pl.UTF-8
125 Dokumentacja API GConf2.
126
127 %package examples
128 Summary:        GConf2 - example programs
129 Summary(pl.UTF-8):      GConf2 - przykładowe programy
130 Group:          Development/Libraries
131 Requires:       %{name}-devel = %{version}-%{release}
132
133 %description examples
134 GConf2 - example programs.
135
136 %description examples -l pl.UTF-8
137 GConf2 - przykładowe programy.
138
139 %package backend-evoldap
140 Summary:        Evolution Data Sources LDAP backend for GConf
141 Summary(pl.UTF-8):      Backend LDAP źródeł danych Evolution dla GConfa
142 Group:          Libraries
143 Requires:       %{name} = %{version}-%{release}
144
145 %description backend-evoldap
146 This is a special-purpose backend for GConf which enables default mail
147 accounts, addressbooks and calendars for Evolution to be configured
148 using each user's LDAP entry. By setting each user's mail address,
149 incoming/outgoing mail server addresses and addressbook/calendar
150 addresses in the user's LDAP entry, Evolution will be automatically
151 configured to use these addresses.
152
153 %description backend-evoldap -l pl.UTF-8
154 To jest backend GConfa specjalnego przeznaczenia, pozwalający na
155 konfigurowanie domyślnych kont pocztowych, książek adresowych i
156 kalendarzy dla Evolution przy użyciu wpisu LDAP dla każdego
157 użytkownika. Poprzez ustawienie każdemu użytkownikowi adres pocztowy,
158 adresy serwerów poczty przychodzącej/wychodzącej oraz adresy książki
159 adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
160 automatycznie skonfigurowane do używania tych adresów.
161
162 %prep
163 %setup -q -n GConf-%{version}
164 %patch0 -p1
165 %patch1 -p1
166
167 %build
168 %{__gtkdocize}
169 %{__glib_gettextize}
170 %{__intltoolize}
171 %{__libtoolize}
172 %{__aclocal}
173 %{__autoheader}
174 %{__autoconf}
175 %{__automake}
176 %configure \
177         POLKIT_POLICY_FILE_VALIDATE=/usr/bin/polkit-policy-file-validate \
178         %{!?with_static_libs:--disable-static} \
179         --enable-gtk-doc \
180         --with-html-dir=%{_gtkdocdir}
181
182 %{__make}
183
184 %install
185 rm -rf $RPM_BUILD_ROOT
186 install -d $RPM_BUILD_ROOT{%{_examplesdir}/%{name}-%{version},%{_sysconfdir}/gconf/{schemas,gconf.xml.system}}
187
188 %{__make} install \
189         DESTDIR=$RPM_BUILD_ROOT
190
191 cp examples/*.c $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
192 cp examples/*.schemas $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
193
194 rm -rf $RPM_BUILD_ROOT%{_datadir}/locale/ca@valencia
195
196 %find_lang %{name}
197
198 # no *.{la,a} for modules - shut up check-files
199 rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a}
200
201 %clean
202 rm -rf $RPM_BUILD_ROOT
203
204 %post
205 umask 022
206 for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
207     do
208     GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
209     if [ ! -f "$GCONF_TREE" ]; then
210         gconf-merge-tree "$GCONF_DIR"
211         chmod 644 "$GCONF_TREE"
212         find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
213         rm -f "$GCONF_DIR/%gconf.xml"
214     fi
215 done
216
217 %post   libs -p /sbin/ldconfig
218 %postun libs -p /sbin/ldconfig
219
220 %files
221 %defattr(644,root,root,755)
222 %doc AUTHORS NEWS README
223 %attr(755,root,root) %{_bindir}/gconf-merge-tree
224 %attr(755,root,root) %{_libexecdir}/gconf-defaults-mechanism
225 %attr(755,root,root) %{_libexecdir}/gconf-sanity-check-2
226 %attr(755,root,root) %{_libexecdir}/gconfd-2
227 %dir %{_libdir}/GConf2
228 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
229 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
230 %{_sysconfdir}/dbus-1/system.d/org.gnome.GConf.Defaults.conf
231 %dir %{_sysconfdir}/gconf
232 %dir %{_sysconfdir}/gconf/2
233 %{_sysconfdir}/gconf/gconf.xml.*
234 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
235 %dir %{_sysconfdir}/gconf/schemas
236 %{_datadir}/dbus-1/services/org.gnome.GConf.service
237 %{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service
238 %{_datadir}/polkit-1/actions/org.gnome.gconf.defaults.policy
239 %dir %{_datadir}/GConf
240 %dir %{_datadir}/GConf/schema
241 %{_datadir}/sgml/gconf
242
243 %files libs -f %{name}.lang
244 %defattr(644,root,root,755)
245 %attr(755,root,root) %{_libdir}/libgconf-2.so.*.*.*
246 %attr(755,root,root) %ghost %{_libdir}/libgconf-2.so.4
247 %attr(755,root,root) %{_bindir}/gconftool-2
248 %{_mandir}/man1/gconftool-2.1*
249
250 %files devel
251 %defattr(644,root,root,755)
252 %doc ChangeLog TODO
253 %attr(755,root,root) %{_libdir}/libgconf-2.so
254 %{_libdir}/libgconf-2.la
255 %{_includedir}/gconf2
256 %{_aclocaldir}/gconf-2.m4
257 %{_pkgconfigdir}/gconf-2.0.pc
258
259 %if %{with static_libs}
260 %files static
261 %defattr(644,root,root,755)
262 %{_libdir}/libgconf-2.a
263 %endif
264
265 %files apidocs
266 %defattr(644,root,root,755)
267 %{_gtkdocdir}/gconf
268
269 %files examples
270 %defattr(644,root,root,755)
271 %{_examplesdir}/%{name}-%{version}
272
273 %files backend-evoldap
274 %defattr(644,root,root,755)
275 %doc backends/README.evoldap
276 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
277 %{_datadir}/GConf/schema/evoldap.schema
278 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf
This page took 0.039619 seconds and 3 git commands to generate.