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