]>
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 | |
036fd944 | 7 | Version: 0.12.0 |
d6a51e65 | 8 | Release: 1 |
e7aed550 MB |
9 | License: LGPL v2+ |
10 | Group: Libraries | |
036fd944 ŁK |
11 | Source0: http://ftp.gnome.org/pub/GNOME/sources/dconf/0.12/%{name}-%{version}.tar.xz |
12 | # Source0-md5: 6aec9d37fca1614cd672bc5b2215c9f3 | |
e7aed550 MB |
13 | URL: http://live.gnome.org/dconf |
14 | BuildRequires: autoconf | |
ccd1b4d1 | 15 | BuildRequires: automake >= 1:1.11 |
94dc6384 | 16 | BuildRequires: dbus-devel |
036fd944 | 17 | BuildRequires: glib2-devel >= 1:2.31.18 |
806ac688 | 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 |
8fd7600e | 22 | BuildRequires: tar >= 1:1.22 |
036fd944 | 23 | BuildRequires: vala >= 2:0.15.1 |
8fd7600e | 24 | BuildRequires: xz |
036fd944 | 25 | Requires(post,postun): glib2 >= 1:2.26.0 |
e7aed550 | 26 | Requires: dbus |
036fd944 | 27 | Requires: glib2 >= 1:2.31.18 |
e7aed550 MB |
28 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
29 | ||
30 | %description | |
31 | dconf is a low-level configuration system. Its main purpose is to | |
32 | provide a backend to GSettings on platforms that don't already have | |
33 | configuration storage systems. | |
34 | ||
35 | %package devel | |
36 | Summary: Header files for dconf library | |
37 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dconf | |
38 | Group: Development/Libraries | |
39 | Requires: %{name} = %{version}-%{release} | |
94dc6384 | 40 | Requires: dbus-devel |
036fd944 | 41 | Requires: glib2-devel >= 1:2.31.18 |
e7aed550 MB |
42 | |
43 | %description devel | |
44 | Header files for dconf library. | |
45 | ||
46 | %description devel -l pl.UTF-8 | |
47 | Pliki nagłówkowe biblioteki dconf. | |
48 | ||
ccd1b4d1 MB |
49 | %package editor |
50 | Summary: Configuration editor for dconf | |
51 | Summary(pl.UTF-8): Edytor konfiguracji dla dconf | |
52 | Group: X11/Applications | |
53 | Requires: %{name} = %{version}-%{release} | |
036fd944 ŁK |
54 | Requires(post,postun): gtk-update-icon-cache |
55 | Requires: hicolor-icon-theme | |
ccd1b4d1 MB |
56 | |
57 | %description editor | |
58 | dconf-editor allows you to browse and modify dconf database. | |
59 | ||
60 | %description editor -l pl.UTF-8 | |
61 | dconf-editor pozwala na przeglądanie i modyfikowanie bazy dconf. | |
62 | ||
e7aed550 MB |
63 | %package apidocs |
64 | Summary: dconf API documentation | |
65 | Summary(pl.UTF-8): Dokumentacja API biblioteki dconf | |
66 | Group: Documentation | |
67 | Requires: gtk-doc-common | |
68 | ||
69 | %description apidocs | |
70 | API documentation for dconf library. | |
71 | ||
72 | %description apidocs -l pl.UTF-8 | |
73 | Dokumentacja API biblioteki dconf. | |
74 | ||
d6a51e65 MB |
75 | %package -n bash-completion-dconf |
76 | Summary: bash-completion for dconf | |
77 | Summary(pl.UTF-8): Bashowe uzupełnianie nazw dla dconf | |
78 | Group: Applications/Shells | |
79 | Requires: bash-completion | |
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 | ||
e7aed550 MB |
87 | %prep |
88 | %setup -q | |
89 | ||
90 | %build | |
e7aed550 MB |
91 | %{__aclocal} |
92 | %{__autoconf} | |
93 | %{__automake} | |
94 | %configure \ | |
95 | --with-html-dir=%{_gtkdocdir} \ | |
96 | %{__enable_disable apidocs gtk-doc} \ | |
97 | --disable-silent-rules | |
98 | %{__make} | |
99 | ||
100 | %install | |
101 | rm -rf $RPM_BUILD_ROOT | |
102 | ||
58dc6351 PZ |
103 | install -d $RPM_BUILD_ROOT%{_sysconfdir}/dconf/{db,profile} |
104 | ||
e7aed550 MB |
105 | %{__make} install \ |
106 | DESTDIR=$RPM_BUILD_ROOT | |
107 | ||
e7aed550 MB |
108 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} |
109 | ||
110 | %clean | |
111 | rm -rf $RPM_BUILD_ROOT | |
112 | ||
113 | %post | |
114 | /sbin/ldconfig | |
115 | ||
116 | umask 022 | |
eeb66e24 MB |
117 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : |
118 | ||
119 | %glib_compile_schemas | |
e7aed550 MB |
120 | |
121 | %postun | |
122 | /sbin/ldconfig | |
123 | ||
124 | umask 022 | |
eeb66e24 MB |
125 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules || : |
126 | ||
127 | %glib_compile_schemas | |
e7aed550 | 128 | |
036fd944 ŁK |
129 | %post editor |
130 | %update_icon_cache hicolor | |
131 | ||
132 | %postun editor | |
133 | %update_icon_cache hicolor | |
134 | ||
e7aed550 MB |
135 | %files |
136 | %defattr(644,root,root,755) | |
137 | %doc NEWS | |
138 | %attr(755,root,root) %{_bindir}/dconf | |
806ac688 AF |
139 | %attr(755,root,root) %{_libdir}/libdconf.so.*.*.* |
140 | %attr(755,root,root) %ghost %{_libdir}/libdconf.so.0 | |
141 | %attr(755,root,root) %{_libdir}/libdconf-dbus-1.so.*.*.* | |
142 | %attr(755,root,root) %ghost %{_libdir}/libdconf-dbus-1.so.0 | |
e7aed550 MB |
143 | %attr(755,root,root) %{_libexecdir}/dconf-service |
144 | %attr(755,root,root) %{_libdir}/gio/modules/libdconfsettings.so | |
e7aed550 | 145 | %{_datadir}/dbus-1/services/ca.desrt.dconf.service |
eeb66e24 | 146 | %{_datadir}/glib-2.0/schemas/ca.desrt.dconf-editor.gschema.xml |
58dc6351 PZ |
147 | %dir %{_sysconfdir}/dconf |
148 | %dir %{_sysconfdir}/dconf/db | |
149 | %dir %{_sysconfdir}/dconf/profile | |
e7aed550 MB |
150 | |
151 | %files devel | |
152 | %defattr(644,root,root,755) | |
153 | %attr(755,root,root) %{_libdir}/libdconf.so | |
806ac688 | 154 | %attr(755,root,root) %{_libdir}/libdconf-dbus-1.so |
e7aed550 | 155 | %{_includedir}/dconf |
806ac688 | 156 | %{_includedir}/dconf-dbus-1 |
e7aed550 | 157 | %{_pkgconfigdir}/dconf.pc |
806ac688 | 158 | %{_pkgconfigdir}/dconf-dbus-1.pc |
590ddded PZ |
159 | # split to a separate package? |
160 | %{_datadir}/vala/vapi/dconf.* | |
e7aed550 | 161 | |
ccd1b4d1 MB |
162 | %files editor |
163 | %defattr(644,root,root,755) | |
164 | %attr(755,root,root) %{_bindir}/dconf-editor | |
806ac688 | 165 | %{_desktopdir}/dconf-editor.desktop |
036fd944 ŁK |
166 | %{_datadir}/dconf-editor |
167 | %{_iconsdir}/hicolor/*/*/*.png | |
ccd1b4d1 | 168 | |
e7aed550 MB |
169 | %if %{with apidocs} |
170 | %files apidocs | |
171 | %defattr(644,root,root,755) | |
172 | %{_gtkdocdir}/dconf | |
173 | %endif | |
d6a51e65 MB |
174 | |
175 | %files -n bash-completion-dconf | |
176 | %defattr(644,root,root,755) | |
177 | %{_sysconfdir}/bash_completion.d/dconf-bash-completion.sh |