]>
Commit | Line | Data |
---|---|---|
e7aed550 MB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # do not build and package API docs | |
4 | # | |
5 | Summary: Low-level configuration system | |
6 | Name: dconf | |
eeb66e24 | 7 | Version: 0.7.5 |
d6a51e65 | 8 | Release: 1 |
e7aed550 MB |
9 | License: LGPL v2+ |
10 | Group: Libraries | |
806ac688 | 11 | Source0: http://ftp.gnome.org/pub/GNOME/sources/dconf/0.7/%{name}-%{version}.tar.bz2 |
eeb66e24 | 12 | # Source0-md5: d784f8afca04473d194a72047595c28e |
e7aed550 MB |
13 | URL: http://live.gnome.org/dconf |
14 | BuildRequires: autoconf | |
ccd1b4d1 | 15 | BuildRequires: automake >= 1:1.11 |
94dc6384 | 16 | BuildRequires: dbus-devel |
806ac688 AF |
17 | BuildRequires: glib2-devel >= 1:2.28.0 |
18 | BuildRequires: gtk+3-devel >= 3.0.0 | |
5758313d | 19 | BuildRequires: gtk-doc >= 1.15 |
ccd1b4d1 | 20 | BuildRequires: libxml2-devel |
e7aed550 | 21 | BuildRequires: rpmbuild(macros) >= 1.527 |
94dc6384 | 22 | BuildRequires: vala >= 1:0.11.7 |
806ac688 | 23 | Requires(post,postun): glib2 >= 1:2.28.0 |
e7aed550 MB |
24 | Requires: dbus |
25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
26 | ||
27 | %description | |
28 | dconf is a low-level configuration system. Its main purpose is to | |
29 | provide a backend to GSettings on platforms that don't already have | |
30 | configuration storage systems. | |
31 | ||
32 | %package devel | |
33 | Summary: Header files for dconf library | |
34 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dconf | |
35 | Group: Development/Libraries | |
36 | Requires: %{name} = %{version}-%{release} | |
94dc6384 | 37 | Requires: dbus-devel |
806ac688 | 38 | Requires: glib2-devel >= 1:2.28.0 |
e7aed550 MB |
39 | |
40 | %description devel | |
41 | Header files for dconf library. | |
42 | ||
43 | %description devel -l pl.UTF-8 | |
44 | Pliki nagłówkowe biblioteki dconf. | |
45 | ||
ccd1b4d1 MB |
46 | %package editor |
47 | Summary: Configuration editor for dconf | |
48 | Summary(pl.UTF-8): Edytor konfiguracji dla dconf | |
49 | Group: X11/Applications | |
50 | Requires: %{name} = %{version}-%{release} | |
51 | ||
52 | %description editor | |
53 | dconf-editor allows you to browse and modify dconf database. | |
54 | ||
55 | %description editor -l pl.UTF-8 | |
56 | dconf-editor pozwala na przeglądanie i modyfikowanie bazy 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 | |
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 | |
74 | Requires: bash-completion | |
75 | ||
76 | %description -n bash-completion-dconf | |
77 | bash-completion for dconf. | |
78 | ||
79 | %description -n bash-completion-dconf -l pl.UTF-8 | |
80 | Bashowe uzupełnianie nazw dla dconf. | |
81 | ||
e7aed550 MB |
82 | %prep |
83 | %setup -q | |
84 | ||
85 | %build | |
e7aed550 MB |
86 | %{__aclocal} |
87 | %{__autoconf} | |
88 | %{__automake} | |
89 | %configure \ | |
90 | --with-html-dir=%{_gtkdocdir} \ | |
91 | %{__enable_disable apidocs gtk-doc} \ | |
92 | --disable-silent-rules | |
93 | %{__make} | |
94 | ||
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
58dc6351 PZ |
98 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/dconf/{db,profile} |
99 | ||
e7aed550 MB |
100 | %{__make} install \ |
101 | DESTDIR=$RPM_BUILD_ROOT | |
102 | ||
e7aed550 MB |
103 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
104 | ||
105 | %clean | |
106 | rm -rf $RPM_BUILD_ROOT | |
107 | ||
108 | %post | |
109 | /sbin/ldconfig | |
110 | ||
111 | umask 022 | |
eeb66e24 MB |
112 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : |
113 | ||
114 | %glib_compile_schemas | |
e7aed550 MB |
115 | |
116 | %postun | |
117 | /sbin/ldconfig | |
118 | ||
119 | umask 022 | |
eeb66e24 MB |
120 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : |
121 | ||
122 | %glib_compile_schemas | |
e7aed550 MB |
123 | |
124 | %files | |
125 | %defattr(644,root,root,755) | |
126 | %doc NEWS | |
127 | %attr(755,root,root) %{_bindir}/dconf | |
806ac688 AF |
128 | %attr(755,root,root) %{_libdir}/libdconf.so.*.*.* |
129 | %attr(755,root,root) %ghost %{_libdir}/libdconf.so.0 | |
130 | %attr(755,root,root) %{_libdir}/libdconf-dbus-1.so.*.*.* | |
131 | %attr(755,root,root) %ghost %{_libdir}/libdconf-dbus-1.so.0 | |
e7aed550 MB |
132 | %attr(755,root,root) %{_libexecdir}/dconf-service |
133 | %attr(755,root,root) %{_libdir}/gio/modules/libdconfsettings.so | |
e7aed550 MB |
134 | %{_datadir}/dbus-1/services/ca.desrt.dconf.service |
135 | %{_datadir}/dbus-1/system-services/ca.desrt.dconf.service | |
eeb66e24 | 136 | %{_datadir}/glib-2.0/schemas/ca.desrt.dconf-editor.gschema.xml |
58dc6351 PZ |
137 | %dir %{_sysconfdir}/dconf |
138 | %dir %{_sysconfdir}/dconf/db | |
139 | %dir %{_sysconfdir}/dconf/profile | |
e7aed550 MB |
140 | |
141 | %files devel | |
142 | %defattr(644,root,root,755) | |
143 | %attr(755,root,root) %{_libdir}/libdconf.so | |
806ac688 | 144 | %attr(755,root,root) %{_libdir}/libdconf-dbus-1.so |
e7aed550 | 145 | %{_includedir}/dconf |
806ac688 | 146 | %{_includedir}/dconf-dbus-1 |
e7aed550 | 147 | %{_pkgconfigdir}/dconf.pc |
806ac688 | 148 | %{_pkgconfigdir}/dconf-dbus-1.pc |
590ddded PZ |
149 | # split to a separate package? |
150 | %{_datadir}/vala/vapi/dconf.* | |
e7aed550 | 151 | |
ccd1b4d1 MB |
152 | %files editor |
153 | %defattr(644,root,root,755) | |
154 | %attr(755,root,root) %{_bindir}/dconf-editor | |
806ac688 | 155 | %{_desktopdir}/dconf-editor.desktop |
c4cde5dd | 156 | %dir %{_datadir}/dconf-editor |
806ac688 | 157 | %{_datadir}/dconf-editor/dconf-editor.ui |
ccd1b4d1 | 158 | |
e7aed550 MB |
159 | %if %{with apidocs} |
160 | %files apidocs | |
161 | %defattr(644,root,root,755) | |
162 | %{_gtkdocdir}/dconf | |
163 | %endif | |
d6a51e65 MB |
164 | |
165 | %files -n bash-completion-dconf | |
166 | %defattr(644,root,root,755) | |
167 | %{_sysconfdir}/bash_completion.d/dconf-bash-completion.sh |