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