]>
Commit | Line | Data |
---|---|---|
e7aed550 MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
6af17bd7 | 4 | %bcond_without vala # do not build Vala API |
e7aed550 MB |
5 | # |
6 | Summary: Low-level configuration system | |
3397c65e | 7 | Summary(pl.UTF-8): Niskopoziomowy system konfiguracji |
e7aed550 | 8 | Name: dconf |
6f3ef8c2 ŁK |
9 | Version: 0.22.0 |
10 | Release: 1 | |
e7aed550 MB |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
6f3ef8c2 ŁK |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/dconf/0.22/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 5459a539ffc483f9c002ddeab626a64e | |
e7aed550 | 15 | URL: http://live.gnome.org/dconf |
6b3d8bea | 16 | BuildRequires: autoconf >= 2.50 |
332b96e6 | 17 | BuildRequires: automake >= 1:1.11.2 |
94dc6384 | 18 | BuildRequires: dbus-devel |
07f656c1 | 19 | BuildRequires: gettext-devel |
332b96e6 | 20 | BuildRequires: glib2-devel >= 1:2.39.1 |
dec1abea | 21 | BuildRequires: gtk+3-devel >= 3.4.0 |
5758313d | 22 | BuildRequires: gtk-doc >= 1.15 |
07f656c1 | 23 | BuildRequires: intltool >= 0.50.0 |
ccd1b4d1 | 24 | BuildRequires: libxml2-devel |
07f656c1 | 25 | BuildRequires: libxslt-progs |
e7aed550 | 26 | BuildRequires: rpmbuild(macros) >= 1.527 |
8fd7600e | 27 | BuildRequires: tar >= 1:1.22 |
3397c65e | 28 | # not needed atm., generated files are packaged |
6b3d8bea | 29 | #%{?with_vala:BuildRequires: vala >= 2:0.17.0} |
8fd7600e | 30 | BuildRequires: xz |
332b96e6 | 31 | Requires(post,postun): glib2 >= 1:2.39.1 |
e7aed550 | 32 | Requires: dbus |
332b96e6 | 33 | Requires: glib2 >= 1:2.39.1 |
e7aed550 MB |
34 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
35 | ||
36 | %description | |
37 | dconf is a low-level configuration system. Its main purpose is to | |
38 | provide a backend to GSettings on platforms that don't already have | |
39 | configuration storage systems. | |
40 | ||
3397c65e JB |
41 | %description -l pl.UTF-8 |
42 | dconf to niskopoziomowy system konfiguracji. Głównym celem jest | |
43 | dostarczenie backendu dla GSettings na platformach, które jeszcze nie | |
44 | mają systemów przechowywania danych konfiguracyjnych. | |
45 | ||
e7aed550 MB |
46 | %package devel |
47 | Summary: Header files for dconf library | |
48 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dconf | |
49 | Group: Development/Libraries | |
50 | Requires: %{name} = %{version}-%{release} | |
94dc6384 | 51 | Requires: dbus-devel |
332b96e6 | 52 | Requires: glib2-devel >= 1:2.39.1 |
e7aed550 MB |
53 | |
54 | %description devel | |
55 | Header files for dconf library. | |
56 | ||
57 | %description devel -l pl.UTF-8 | |
58 | Pliki nagłówkowe biblioteki dconf. | |
59 | ||
ccd1b4d1 MB |
60 | %package editor |
61 | Summary: Configuration editor for dconf | |
62 | Summary(pl.UTF-8): Edytor konfiguracji dla dconf | |
63 | Group: X11/Applications | |
64 | Requires: %{name} = %{version}-%{release} | |
036fd944 ŁK |
65 | Requires(post,postun): gtk-update-icon-cache |
66 | Requires: hicolor-icon-theme | |
ccd1b4d1 MB |
67 | |
68 | %description editor | |
69 | dconf-editor allows you to browse and modify dconf database. | |
70 | ||
71 | %description editor -l pl.UTF-8 | |
72 | dconf-editor pozwala na przeglądanie i modyfikowanie bazy dconf. | |
73 | ||
e7aed550 MB |
74 | %package apidocs |
75 | Summary: dconf API documentation | |
76 | Summary(pl.UTF-8): Dokumentacja API biblioteki dconf | |
77 | Group: Documentation | |
78 | Requires: gtk-doc-common | |
79 | ||
80 | %description apidocs | |
81 | API documentation for dconf library. | |
82 | ||
83 | %description apidocs -l pl.UTF-8 | |
84 | Dokumentacja API biblioteki dconf. | |
85 | ||
d6a51e65 MB |
86 | %package -n bash-completion-dconf |
87 | Summary: bash-completion for dconf | |
88 | Summary(pl.UTF-8): Bashowe uzupełnianie nazw dla dconf | |
89 | Group: Applications/Shells | |
6b3d8bea | 90 | Requires: bash-completion >= 2 |
a1b21a70 ER |
91 | %if "%{_rpmversion}" >= "5" |
92 | BuildArch: noarch | |
93 | %endif | |
d6a51e65 MB |
94 | |
95 | %description -n bash-completion-dconf | |
96 | bash-completion for dconf. | |
97 | ||
98 | %description -n bash-completion-dconf -l pl.UTF-8 | |
99 | Bashowe uzupełnianie nazw dla dconf. | |
100 | ||
6af17bd7 ŁK |
101 | %package -n vala-dconf |
102 | Summary: dconf API for Vala language | |
103 | Summary(pl.UTF-8): API dconf dla języka Vala | |
104 | Group: Development/Libraries | |
105 | Requires: %{name}-devel = %{version}-%{release} | |
332b96e6 | 106 | Requires: vala >= 2:0.18.0 |
6af17bd7 ŁK |
107 | |
108 | %description -n vala-dconf | |
109 | dconf API for Vala language. | |
110 | ||
111 | %description -n vala-dconf -l pl.UTF-8 | |
112 | API dconf dla języka Vala. | |
113 | ||
e7aed550 MB |
114 | %prep |
115 | %setup -q | |
116 | ||
117 | %build | |
07f656c1 | 118 | %{__intltoolize} |
e7aed550 MB |
119 | %{__aclocal} |
120 | %{__autoconf} | |
07f656c1 | 121 | %{__autoheader} |
e7aed550 MB |
122 | %{__automake} |
123 | %configure \ | |
124 | --with-html-dir=%{_gtkdocdir} \ | |
125 | %{__enable_disable apidocs gtk-doc} \ | |
126 | --disable-silent-rules | |
127 | %{__make} | |
128 | ||
129 | %install | |
130 | rm -rf $RPM_BUILD_ROOT | |
131 | ||
58dc6351 | 132 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/dconf/{db,profile} |
8b267a87 | 133 | install -d $RPM_BUILD_ROOT%{_datadir}/dconf/profile |
58dc6351 | 134 | |
e7aed550 MB |
135 | %{__make} install \ |
136 | DESTDIR=$RPM_BUILD_ROOT | |
137 | ||
e7aed550 MB |
138 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
139 | ||
07f656c1 ŁK |
140 | %find_lang %{name} |
141 | ||
e7aed550 MB |
142 | %clean |
143 | rm -rf $RPM_BUILD_ROOT | |
144 | ||
145 | %post | |
146 | /sbin/ldconfig | |
147 | ||
148 | umask 022 | |
eeb66e24 MB |
149 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : |
150 | ||
151 | %glib_compile_schemas | |
e7aed550 MB |
152 | |
153 | %postun | |
154 | /sbin/ldconfig | |
155 | ||
156 | umask 022 | |
eeb66e24 MB |
157 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : |
158 | ||
159 | %glib_compile_schemas | |
e7aed550 | 160 | |
036fd944 ŁK |
161 | %post editor |
162 | %update_icon_cache hicolor | |
add93f6e | 163 | %update_icon_cache HighContrast |
036fd944 ŁK |
164 | |
165 | %postun editor | |
166 | %update_icon_cache hicolor | |
add93f6e | 167 | %update_icon_cache HighContrast |
036fd944 | 168 | |
07f656c1 | 169 | %files -f %{name}.lang |
e7aed550 | 170 | %defattr(644,root,root,755) |
6b3d8bea | 171 | %doc NEWS README |
e7aed550 | 172 | %attr(755,root,root) %{_bindir}/dconf |
806ac688 | 173 | %attr(755,root,root) %{_libdir}/libdconf.so.*.*.* |
07f656c1 | 174 | %attr(755,root,root) %ghost %{_libdir}/libdconf.so.1 |
806ac688 AF |
175 | %attr(755,root,root) %{_libdir}/libdconf-dbus-1.so.*.*.* |
176 | %attr(755,root,root) %ghost %{_libdir}/libdconf-dbus-1.so.0 | |
e7aed550 MB |
177 | %attr(755,root,root) %{_libexecdir}/dconf-service |
178 | %attr(755,root,root) %{_libdir}/gio/modules/libdconfsettings.so | |
e7aed550 | 179 | %{_datadir}/dbus-1/services/ca.desrt.dconf.service |
eeb66e24 | 180 | %{_datadir}/glib-2.0/schemas/ca.desrt.dconf-editor.gschema.xml |
58dc6351 PZ |
181 | %dir %{_sysconfdir}/dconf |
182 | %dir %{_sysconfdir}/dconf/db | |
183 | %dir %{_sysconfdir}/dconf/profile | |
8b267a87 ŁK |
184 | %dir %{_datadir}/dconf |
185 | %dir %{_datadir}/dconf/profile | |
07f656c1 ŁK |
186 | %{_mandir}/man1/dconf-service.1* |
187 | %{_mandir}/man1/dconf.1* | |
188 | %{_mandir}/man7/dconf.7* | |
e7aed550 MB |
189 | |
190 | %files devel | |
191 | %defattr(644,root,root,755) | |
192 | %attr(755,root,root) %{_libdir}/libdconf.so | |
806ac688 | 193 | %attr(755,root,root) %{_libdir}/libdconf-dbus-1.so |
e7aed550 | 194 | %{_includedir}/dconf |
806ac688 | 195 | %{_includedir}/dconf-dbus-1 |
e7aed550 | 196 | %{_pkgconfigdir}/dconf.pc |
806ac688 | 197 | %{_pkgconfigdir}/dconf-dbus-1.pc |
e7aed550 | 198 | |
ccd1b4d1 MB |
199 | %files editor |
200 | %defattr(644,root,root,755) | |
201 | %attr(755,root,root) %{_bindir}/dconf-editor | |
6f3ef8c2 ŁK |
202 | %{_datadir}/appdata/ca.desrt.dconf-editor.appdata.xml |
203 | %{_desktopdir}/ca.desrt.dconf-editor.desktop | |
204 | %{_datadir}/dbus-1/services/ca.desrt.dconf-editor.service | |
036fd944 | 205 | %{_iconsdir}/hicolor/*/*/*.png |
add93f6e | 206 | %{_iconsdir}/HighContrast/*/*/*.png |
07f656c1 | 207 | %{_mandir}/man1/dconf-editor.1* |
ccd1b4d1 | 208 | |
e7aed550 MB |
209 | %if %{with apidocs} |
210 | %files apidocs | |
211 | %defattr(644,root,root,755) | |
212 | %{_gtkdocdir}/dconf | |
213 | %endif | |
d6a51e65 MB |
214 | |
215 | %files -n bash-completion-dconf | |
216 | %defattr(644,root,root,755) | |
6f3ef8c2 | 217 | %{bash_compdir}/dconf |
6af17bd7 ŁK |
218 | |
219 | %if %{with vala} | |
220 | %files -n vala-dconf | |
221 | %defattr(644,root,root,755) | |
222 | %{_datadir}/vala/vapi/dconf.deps | |
223 | %{_datadir}/vala/vapi/dconf.vapi | |
224 | %endif |