]> git.pld-linux.org Git - packages/GConf2.git/blob - GConf2.spec
- release 2 (rebuild with P: *.la)
[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):    System konfiguracyjnej bazy danych dla GNOME 2
10 Summary(pt_BR): Sistema de Configuração do GNOME 2
11 Summary(ru):    óÉÓÔÅÍÁ ËÏÎÆÉÇÕÒÁÃÉÉ GNOME 2
12 Name:           GConf2
13 Version:        2.16.0
14 Release:        2
15 License:        LGPL
16 Group:          X11/Applications
17 Source0:        http://ftp.gnome.org/pub/gnome/sources/GConf/2.16/GConf-%{version}.tar.bz2
18 # Source0-md5:  b1a202f36661c0d9c87f8fe27a28bd52
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.3
24 BuildRequires:  autoconf
25 BuildRequires:  automake >= 1:1.7
26 BuildRequires:  gettext-devel
27 BuildRequires:  glib2-devel >= 1:2.12.4
28 BuildRequires:  gtk+2-devel >= 2:2.10.6
29 BuildRequires:  gtk-doc >= 1.7
30 BuildRequires:  intltool >= 0.35.0
31 BuildRequires:  libtool
32 BuildRequires:  libxml2-devel >= 1:2.6.26
33 BuildRequires:  openldap-devel
34 BuildRequires:  perl-base
35 BuildRequires:  pkgconfig
36 BuildRequires:  rpmbuild(macros) >= 1.197
37 Requires(post): GConf2 >= 2.14.0
38 Requires:       ORBit2 >= 1:2.14.3
39 Requires:       glib2 >= 1:2.12.4
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
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
57 Gconf2 é o sistema de banco de dados de configuração do GNOME2.
58
59 %package devel
60 Summary:        GConf2 includes, etc
61 Summary(pl):    Pliki nag³ówkowe GConf2
62 Summary(pt_BR): Sistema de Configuração do GNOME2 - arquivos para desenvolvimento
63 Group:          X11/Development/Libraries
64 Requires:       %{name} = %{version}-%{release}
65 Requires:       ORBit2-devel >= 1:2.14.3
66 Requires:       gtk-doc-common
67 Requires:       libxml2-devel >= 1:2.6.26
68 Obsoletes:      libGConf2-devel
69
70 %description devel
71 GConf2 includes etc.
72
73 %description devel -l pl
74 Pliki nag³ówkowe GConf2.
75
76 %description devel -l pt_BR
77 Sistema de Configuração do GNOME2 - arquivos para desenvolvimento.
78
79 %package static
80 Summary:        GConf2 static libraries
81 Summary(pl):    Biblioteki statyczne GConf2
82 Summary(pt_BR): Bibliotecas estáticas para desenvolvimento com gconf2
83 Group:          X11/Development/Libraries
84 Requires:       %{name}-devel = %{version}-%{release}
85
86 %description static
87 GConf2 static libraries.
88
89 %description static -l pl
90 Biblioteki statyczne GConf2.
91
92 %description static -l pt_BR
93 Bibliotecas estáticas para desenvolvimento com gconf
94
95 %package backend-evoldap
96 Summary:        Evolution Data Sources LDAP backend for GConf
97 Summary(pl):    Backend LDAP ¼róde³ danych Evolution dla GConfa
98 Group:          Libraries
99 Requires:       %{name} = %{version}-%{release}
100
101 %description backend-evoldap
102 This is a special-purpose backend for GConf which enables default mail
103 accounts, addressbooks and calendars for Evolution to be configured
104 using each user's LDAP entry. By setting each user's mail address,
105 incoming/outgoing mail server addresses and addressbook/calendar
106 addresses in the user's LDAP entry, Evolution will be automatically
107 configured to use these addresses.
108
109 %description backend-evoldap -l pl
110 To jest backend GConfa specjalnego przeznaczenia, pozwalaj±cy na
111 konfigurowanie domy¶lnych kont pocztowych, ksi±¿ek adresowych i
112 kalendarzy dla Evolution przy u¿yciu wpisu LDAP dla ka¿dego
113 u¿ytkownika. Poprzez ustawienie ka¿demu u¿ytkownikowi adres pocztowy,
114 adresy serwerów poczty przychodz±cej/wychodz±cej oraz adresy ksi±¿ki
115 adresowej i kalendarza w jego wpisie LDAP, Evolution zostanie
116 automatycznie skonfigurowane do u¿ywania tych adresów.
117
118 %prep
119 %setup -q -n GConf-%{version}
120 %patch0 -p1
121 %patch1 -p1
122 %patch2 -p1
123
124 %build
125 %{__gtkdocize}
126 %{__glib_gettextize}
127 %{__intltoolize}
128 %{__libtoolize}
129 %{__aclocal}
130 %{__autoheader}
131 %{__autoconf}
132 %{__automake}
133 %configure \
134         %{!?with_static_libs:--disable-static} \
135         --enable-gtk-doc \
136         --with-html-dir=%{_gtkdocdir}
137
138 %{__make}
139
140 %install
141 rm -rf $RPM_BUILD_ROOT
142 install -d $RPM_BUILD_ROOT%{_sysconfdir}/gconf/schemas
143
144 %{__make} install \
145         DESTDIR=$RPM_BUILD_ROOT
146
147 %find_lang %{name}
148
149 # no *.{la,a} for modules - shut up check-files
150 rm -f $RPM_BUILD_ROOT%{_libdir}/GConf2/lib*.{la,a}
151
152 %clean
153 rm -rf $RPM_BUILD_ROOT
154
155 %post
156 /sbin/ldconfig
157 umask 022
158 for GCONF_DIR in %{_sysconfdir}/gconf/gconf.xml.mandatory %{_sysconfdir}/gconf/gconf.xml.defaults ;
159     do
160     GCONF_TREE=$GCONF_DIR/%gconf-tree.xml
161     if [ ! -f "$GCONF_TREE" ]; then
162         gconf-merge-tree "$GCONF_DIR"
163         chmod 644 "$GCONF_TREE"
164         find "$GCONF_DIR" -mindepth 1 -maxdepth 1 -type d -exec rm -rf \{\} \;
165         rm -f "$GCONF_DIR/%gconf.xml"
166     fi
167 done
168             
169 %postun -p /sbin/ldconfig
170
171 %files -f %{name}.lang
172 %defattr(644,root,root,755)
173 %doc AUTHORS NEWS README
174 %attr(755,root,root) %{_bindir}/gconf*
175 %attr(755,root,root) %{_libdir}/gconf-sanity-check-2
176 %attr(755,root,root) %{_libdir}/gconfd-2
177 %attr(755,root,root) %{_libdir}/lib*.so.*.*
178 %dir %{_libdir}/GConf2
179 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-oldxml.so
180 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-xml.so
181 %dir %{_sysconfdir}/gconf
182 %dir %{_sysconfdir}/gconf/2
183 %{_sysconfdir}/gconf/gconf.xml.*
184 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/path
185 %dir %{_sysconfdir}/gconf/schemas
186 %dir %{_datadir}/GConf
187 %dir %{_datadir}/GConf/schema
188 %{_datadir}/sgml/gconf
189 %{_mandir}/man1/*
190
191 %files devel
192 %defattr(644,root,root,755)
193 %doc ChangeLog TODO
194 %attr(755,root,root) %{_libdir}/lib*.so
195 %{_libdir}/lib*.la
196 %{_includedir}/gconf2
197 %{_aclocaldir}/*.m4
198 %{_pkgconfigdir}/*.pc
199 %{_gtkdocdir}/gconf
200
201 %if %{with static_libs}
202 %files static
203 %defattr(644,root,root,755)
204 %{_libdir}/lib*.a
205 %endif
206
207 %files backend-evoldap
208 %defattr(644,root,root,755)
209 %doc backends/README.evoldap
210 %attr(755,root,root) %{_libdir}/GConf2/libgconfbackend-evoldap.so
211 %{_datadir}/GConf/schema/evoldap.schema
212 %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/gconf/2/evoldap.conf
This page took 0.128982 seconds and 4 git commands to generate.