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