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