]>
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 |
23dd4413 | 9 | Version: 0.30.0 |
faf35486 | 10 | Release: 1 |
e7aed550 MB |
11 | License: LGPL v2+ |
12 | Group: Libraries | |
23dd4413 JP |
13 | Source0: http://ftp.gnome.org/pub/GNOME/sources/dconf/0.30/%{name}-%{version}.tar.xz |
14 | # Source0-md5: 0fedc411cb0e12052c1215b777cb8686 | |
e7aed550 | 15 | URL: http://live.gnome.org/dconf |
156d798a | 16 | BuildRequires: glib2-devel >= 1:2.44.0 |
5758313d | 17 | BuildRequires: gtk-doc >= 1.15 |
07f656c1 | 18 | BuildRequires: libxslt-progs |
23dd4413 JP |
19 | BuildRequires: meson >= 0.46.0 |
20 | BuildRequires: ninja | |
21 | BuildRequires: pkgconfig | |
22 | BuildRequires: rpmbuild(macros) >= 1.727 | |
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 |
156d798a | 29 | Requires: glib2 >= 1:2.44.0 |
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} | |
156d798a | 47 | Requires: glib2-devel >= 1:2.44.0 |
e7aed550 MB |
48 | |
49 | %description devel | |
50 | Header files for dconf library. | |
51 | ||
52 | %description devel -l pl.UTF-8 | |
53 | Pliki nagłówkowe biblioteki dconf. | |
54 | ||
e7aed550 MB |
55 | %package apidocs |
56 | Summary: dconf API documentation | |
57 | Summary(pl.UTF-8): Dokumentacja API biblioteki dconf | |
58 | Group: Documentation | |
59 | Requires: gtk-doc-common | |
156d798a MB |
60 | %if "%{_rpmversion}" >= "5" |
61 | BuildArch: noarch | |
62 | %endif | |
e7aed550 MB |
63 | |
64 | %description apidocs | |
65 | API documentation for dconf library. | |
66 | ||
67 | %description apidocs -l pl.UTF-8 | |
68 | Dokumentacja API biblioteki dconf. | |
69 | ||
d6a51e65 MB |
70 | %package -n bash-completion-dconf |
71 | Summary: bash-completion for dconf | |
72 | Summary(pl.UTF-8): Bashowe uzupełnianie nazw dla dconf | |
73 | Group: Applications/Shells | |
6b3d8bea | 74 | Requires: bash-completion >= 2 |
a1b21a70 ER |
75 | %if "%{_rpmversion}" >= "5" |
76 | BuildArch: noarch | |
77 | %endif | |
d6a51e65 MB |
78 | |
79 | %description -n bash-completion-dconf | |
80 | bash-completion for dconf. | |
81 | ||
82 | %description -n bash-completion-dconf -l pl.UTF-8 | |
83 | Bashowe uzupełnianie nazw dla dconf. | |
84 | ||
6af17bd7 ŁK |
85 | %package -n vala-dconf |
86 | Summary: dconf API for Vala language | |
87 | Summary(pl.UTF-8): API dconf dla języka Vala | |
88 | Group: Development/Libraries | |
89 | Requires: %{name}-devel = %{version}-%{release} | |
332b96e6 | 90 | Requires: vala >= 2:0.18.0 |
156d798a MB |
91 | %if "%{_rpmversion}" >= "5" |
92 | BuildArch: noarch | |
93 | %endif | |
6af17bd7 ŁK |
94 | |
95 | %description -n vala-dconf | |
96 | dconf API for Vala language. | |
97 | ||
98 | %description -n vala-dconf -l pl.UTF-8 | |
99 | API dconf dla języka Vala. | |
100 | ||
e7aed550 MB |
101 | %prep |
102 | %setup -q | |
103 | ||
104 | %build | |
2ea30ac9 | 105 | %meson build \ |
23dd4413 | 106 | -Dgtk_doc=%{__true_false apidocs} |
2ea30ac9 MB |
107 | |
108 | %meson_build -C build | |
e7aed550 MB |
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 | |
2ea30ac9 | 116 | %meson_install -C build |
e7aed550 | 117 | |
e7aed550 MB |
118 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
119 | ||
120 | %clean | |
121 | rm -rf $RPM_BUILD_ROOT | |
122 | ||
123 | %post | |
124 | /sbin/ldconfig | |
125 | ||
126 | umask 022 | |
eeb66e24 MB |
127 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : |
128 | ||
129 | %glib_compile_schemas | |
e7aed550 MB |
130 | |
131 | %postun | |
132 | /sbin/ldconfig | |
133 | ||
134 | umask 022 | |
eeb66e24 MB |
135 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : |
136 | ||
137 | %glib_compile_schemas | |
e7aed550 | 138 | |
faf35486 | 139 | %files |
e7aed550 | 140 | %defattr(644,root,root,755) |
6b3d8bea | 141 | %doc NEWS README |
e7aed550 | 142 | %attr(755,root,root) %{_bindir}/dconf |
806ac688 | 143 | %attr(755,root,root) %{_libdir}/libdconf.so.*.*.* |
07f656c1 | 144 | %attr(755,root,root) %ghost %{_libdir}/libdconf.so.1 |
e7aed550 MB |
145 | %attr(755,root,root) %{_libexecdir}/dconf-service |
146 | %attr(755,root,root) %{_libdir}/gio/modules/libdconfsettings.so | |
e7aed550 | 147 | %{_datadir}/dbus-1/services/ca.desrt.dconf.service |
58dc6351 PZ |
148 | %dir %{_sysconfdir}/dconf |
149 | %dir %{_sysconfdir}/dconf/db | |
150 | %dir %{_sysconfdir}/dconf/profile | |
8b267a87 ŁK |
151 | %dir %{_datadir}/dconf |
152 | %dir %{_datadir}/dconf/profile | |
07f656c1 ŁK |
153 | %{_mandir}/man1/dconf-service.1* |
154 | %{_mandir}/man1/dconf.1* | |
155 | %{_mandir}/man7/dconf.7* | |
e7aed550 MB |
156 | |
157 | %files devel | |
158 | %defattr(644,root,root,755) | |
159 | %attr(755,root,root) %{_libdir}/libdconf.so | |
e7aed550 MB |
160 | %{_includedir}/dconf |
161 | %{_pkgconfigdir}/dconf.pc | |
e7aed550 MB |
162 | |
163 | %if %{with apidocs} | |
164 | %files apidocs | |
165 | %defattr(644,root,root,755) | |
166 | %{_gtkdocdir}/dconf | |
167 | %endif | |
d6a51e65 MB |
168 | |
169 | %files -n bash-completion-dconf | |
170 | %defattr(644,root,root,755) | |
6f3ef8c2 | 171 | %{bash_compdir}/dconf |
6af17bd7 ŁK |
172 | |
173 | %if %{with vala} | |
174 | %files -n vala-dconf | |
175 | %defattr(644,root,root,755) | |
176 | %{_datadir}/vala/vapi/dconf.deps | |
177 | %{_datadir}/vala/vapi/dconf.vapi | |
178 | %endif |