]>
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 |
b389ee54 | 9 | Version: 0.16.1 |
d1bebbaa | 10 | Release: 1 |
e7aed550 MB |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
add93f6e | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/dconf/0.16/%{name}-%{version}.tar.xz |
b389ee54 | 14 | # Source0-md5: 1f17e92511a21240ab5a56e4523f77da |
e7aed550 | 15 | URL: http://live.gnome.org/dconf |
6b3d8bea | 16 | BuildRequires: autoconf >= 2.50 |
ccd1b4d1 | 17 | BuildRequires: automake >= 1:1.11 |
94dc6384 | 18 | BuildRequires: dbus-devel |
07f656c1 | 19 | BuildRequires: gettext-devel |
add93f6e | 20 | BuildRequires: glib2-devel >= 1:2.35.2 |
806ac688 | 21 | BuildRequires: gtk+3-devel >= 3.0.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 |
add93f6e | 31 | Requires(post,postun): glib2 >= 1:2.35.2 |
e7aed550 | 32 | Requires: dbus |
add93f6e | 33 | Requires: glib2 >= 1:2.35.2 |
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 |
add93f6e | 52 | Requires: glib2-devel >= 1:2.35.2 |
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 |
d6a51e65 MB |
91 | |
92 | %description -n bash-completion-dconf | |
93 | bash-completion for dconf. | |
94 | ||
95 | %description -n bash-completion-dconf -l pl.UTF-8 | |
96 | Bashowe uzupełnianie nazw dla dconf. | |
97 | ||
6af17bd7 ŁK |
98 | %package -n vala-dconf |
99 | Summary: dconf API for Vala language | |
100 | Summary(pl.UTF-8): API dconf dla języka Vala | |
101 | Group: Development/Libraries | |
102 | Requires: %{name}-devel = %{version}-%{release} | |
07f656c1 | 103 | Requires: vala >= 2:0.17.0 |
6af17bd7 ŁK |
104 | |
105 | %description -n vala-dconf | |
106 | dconf API for Vala language. | |
107 | ||
108 | %description -n vala-dconf -l pl.UTF-8 | |
109 | API dconf dla języka Vala. | |
110 | ||
e7aed550 MB |
111 | %prep |
112 | %setup -q | |
113 | ||
114 | %build | |
07f656c1 | 115 | %{__intltoolize} |
e7aed550 MB |
116 | %{__aclocal} |
117 | %{__autoconf} | |
07f656c1 | 118 | %{__autoheader} |
e7aed550 MB |
119 | %{__automake} |
120 | %configure \ | |
121 | --with-html-dir=%{_gtkdocdir} \ | |
122 | %{__enable_disable apidocs gtk-doc} \ | |
123 | --disable-silent-rules | |
124 | %{__make} | |
125 | ||
126 | %install | |
127 | rm -rf $RPM_BUILD_ROOT | |
128 | ||
58dc6351 PZ |
129 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/dconf/{db,profile} |
130 | ||
e7aed550 MB |
131 | %{__make} install \ |
132 | DESTDIR=$RPM_BUILD_ROOT | |
133 | ||
e7aed550 MB |
134 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
135 | ||
07f656c1 ŁK |
136 | %find_lang %{name} |
137 | ||
e7aed550 MB |
138 | %clean |
139 | rm -rf $RPM_BUILD_ROOT | |
140 | ||
141 | %post | |
142 | /sbin/ldconfig | |
143 | ||
144 | umask 022 | |
eeb66e24 MB |
145 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : |
146 | ||
147 | %glib_compile_schemas | |
e7aed550 MB |
148 | |
149 | %postun | |
150 | /sbin/ldconfig | |
151 | ||
152 | umask 022 | |
eeb66e24 MB |
153 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : |
154 | ||
155 | %glib_compile_schemas | |
e7aed550 | 156 | |
036fd944 ŁK |
157 | %post editor |
158 | %update_icon_cache hicolor | |
add93f6e | 159 | %update_icon_cache HighContrast |
036fd944 ŁK |
160 | |
161 | %postun editor | |
162 | %update_icon_cache hicolor | |
add93f6e | 163 | %update_icon_cache HighContrast |
036fd944 | 164 | |
07f656c1 | 165 | %files -f %{name}.lang |
e7aed550 | 166 | %defattr(644,root,root,755) |
6b3d8bea | 167 | %doc NEWS README |
e7aed550 | 168 | %attr(755,root,root) %{_bindir}/dconf |
806ac688 | 169 | %attr(755,root,root) %{_libdir}/libdconf.so.*.*.* |
07f656c1 | 170 | %attr(755,root,root) %ghost %{_libdir}/libdconf.so.1 |
806ac688 AF |
171 | %attr(755,root,root) %{_libdir}/libdconf-dbus-1.so.*.*.* |
172 | %attr(755,root,root) %ghost %{_libdir}/libdconf-dbus-1.so.0 | |
e7aed550 MB |
173 | %attr(755,root,root) %{_libexecdir}/dconf-service |
174 | %attr(755,root,root) %{_libdir}/gio/modules/libdconfsettings.so | |
e7aed550 | 175 | %{_datadir}/dbus-1/services/ca.desrt.dconf.service |
eeb66e24 | 176 | %{_datadir}/glib-2.0/schemas/ca.desrt.dconf-editor.gschema.xml |
58dc6351 PZ |
177 | %dir %{_sysconfdir}/dconf |
178 | %dir %{_sysconfdir}/dconf/db | |
179 | %dir %{_sysconfdir}/dconf/profile | |
07f656c1 ŁK |
180 | %{_mandir}/man1/dconf-service.1* |
181 | %{_mandir}/man1/dconf.1* | |
182 | %{_mandir}/man7/dconf.7* | |
e7aed550 MB |
183 | |
184 | %files devel | |
185 | %defattr(644,root,root,755) | |
186 | %attr(755,root,root) %{_libdir}/libdconf.so | |
806ac688 | 187 | %attr(755,root,root) %{_libdir}/libdconf-dbus-1.so |
e7aed550 | 188 | %{_includedir}/dconf |
806ac688 | 189 | %{_includedir}/dconf-dbus-1 |
e7aed550 | 190 | %{_pkgconfigdir}/dconf.pc |
806ac688 | 191 | %{_pkgconfigdir}/dconf-dbus-1.pc |
e7aed550 | 192 | |
ccd1b4d1 MB |
193 | %files editor |
194 | %defattr(644,root,root,755) | |
195 | %attr(755,root,root) %{_bindir}/dconf-editor | |
806ac688 | 196 | %{_desktopdir}/dconf-editor.desktop |
036fd944 ŁK |
197 | %{_datadir}/dconf-editor |
198 | %{_iconsdir}/hicolor/*/*/*.png | |
add93f6e | 199 | %{_iconsdir}/HighContrast/*/*/*.png |
07f656c1 | 200 | %{_mandir}/man1/dconf-editor.1* |
ccd1b4d1 | 201 | |
e7aed550 MB |
202 | %if %{with apidocs} |
203 | %files apidocs | |
204 | %defattr(644,root,root,755) | |
205 | %{_gtkdocdir}/dconf | |
206 | %endif | |
d6a51e65 MB |
207 | |
208 | %files -n bash-completion-dconf | |
209 | %defattr(644,root,root,755) | |
07f656c1 | 210 | %{_datadir}/bash-completion/completions/dconf |
6af17bd7 ŁK |
211 | |
212 | %if %{with vala} | |
213 | %files -n vala-dconf | |
214 | %defattr(644,root,root,755) | |
215 | %{_datadir}/vala/vapi/dconf.deps | |
216 | %{_datadir}/vala/vapi/dconf.vapi | |
217 | %endif |