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