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