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