]>
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 |
d1bebbaa JB |
9 | Version: 0.14.1 |
10 | Release: 1 | |
e7aed550 MB |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
07f656c1 | 13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/dconf/0.14/%{name}-%{version}.tar.xz |
d1bebbaa | 14 | # Source0-md5: eaa62d1a5655e6dd620358d6b1c4f272 |
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 ŁK |
19 | BuildRequires: gettext-devel |
20 | BuildRequires: glib2-devel >= 1:2.33.3 | |
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 |
6b3d8bea | 31 | Requires(post,postun): glib2 >= 1:2.33.3 |
e7aed550 | 32 | Requires: dbus |
07f656c1 | 33 | Requires: glib2 >= 1:2.33.3 |
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 |
07f656c1 | 52 | Requires: glib2-devel >= 1:2.33.3 |
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 ŁK |
115 | mkdir m4 |
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 | |
160 | ||
161 | %postun editor | |
162 | %update_icon_cache hicolor | |
163 | ||
07f656c1 | 164 | %files -f %{name}.lang |
e7aed550 | 165 | %defattr(644,root,root,755) |
6b3d8bea | 166 | %doc NEWS README |
e7aed550 | 167 | %attr(755,root,root) %{_bindir}/dconf |
806ac688 | 168 | %attr(755,root,root) %{_libdir}/libdconf.so.*.*.* |
07f656c1 | 169 | %attr(755,root,root) %ghost %{_libdir}/libdconf.so.1 |
806ac688 AF |
170 | %attr(755,root,root) %{_libdir}/libdconf-dbus-1.so.*.*.* |
171 | %attr(755,root,root) %ghost %{_libdir}/libdconf-dbus-1.so.0 | |
e7aed550 MB |
172 | %attr(755,root,root) %{_libexecdir}/dconf-service |
173 | %attr(755,root,root) %{_libdir}/gio/modules/libdconfsettings.so | |
e7aed550 | 174 | %{_datadir}/dbus-1/services/ca.desrt.dconf.service |
eeb66e24 | 175 | %{_datadir}/glib-2.0/schemas/ca.desrt.dconf-editor.gschema.xml |
58dc6351 PZ |
176 | %dir %{_sysconfdir}/dconf |
177 | %dir %{_sysconfdir}/dconf/db | |
178 | %dir %{_sysconfdir}/dconf/profile | |
07f656c1 ŁK |
179 | %{_mandir}/man1/dconf-service.1* |
180 | %{_mandir}/man1/dconf.1* | |
181 | %{_mandir}/man7/dconf.7* | |
e7aed550 MB |
182 | |
183 | %files devel | |
184 | %defattr(644,root,root,755) | |
185 | %attr(755,root,root) %{_libdir}/libdconf.so | |
806ac688 | 186 | %attr(755,root,root) %{_libdir}/libdconf-dbus-1.so |
e7aed550 | 187 | %{_includedir}/dconf |
806ac688 | 188 | %{_includedir}/dconf-dbus-1 |
e7aed550 | 189 | %{_pkgconfigdir}/dconf.pc |
806ac688 | 190 | %{_pkgconfigdir}/dconf-dbus-1.pc |
e7aed550 | 191 | |
ccd1b4d1 MB |
192 | %files editor |
193 | %defattr(644,root,root,755) | |
194 | %attr(755,root,root) %{_bindir}/dconf-editor | |
806ac688 | 195 | %{_desktopdir}/dconf-editor.desktop |
036fd944 ŁK |
196 | %{_datadir}/dconf-editor |
197 | %{_iconsdir}/hicolor/*/*/*.png | |
07f656c1 | 198 | %{_mandir}/man1/dconf-editor.1* |
ccd1b4d1 | 199 | |
e7aed550 MB |
200 | %if %{with apidocs} |
201 | %files apidocs | |
202 | %defattr(644,root,root,755) | |
203 | %{_gtkdocdir}/dconf | |
204 | %endif | |
d6a51e65 MB |
205 | |
206 | %files -n bash-completion-dconf | |
207 | %defattr(644,root,root,755) | |
07f656c1 | 208 | %{_datadir}/bash-completion/completions/dconf |
6af17bd7 ŁK |
209 | |
210 | %if %{with vala} | |
211 | %files -n vala-dconf | |
212 | %defattr(644,root,root,755) | |
213 | %{_datadir}/vala/vapi/dconf.deps | |
214 | %{_datadir}/vala/vapi/dconf.vapi | |
215 | %endif |