]> git.pld-linux.org Git - packages/dconf.git/blob - dconf.spec
- updated gettext BR
[packages/dconf.git] / dconf.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # do not build and package API docs
4 %bcond_without  vala            # do not build Vala API
5 #
6 Summary:        Low-level configuration system
7 Summary(pl.UTF-8):      Niskopoziomowy system konfiguracji
8 Name:           dconf
9 Version:        0.22.0
10 Release:        1
11 License:        LGPL v2+
12 Group:          Libraries
13 Source0:        http://ftp.gnome.org/pub/GNOME/sources/dconf/0.22/%{name}-%{version}.tar.xz
14 # Source0-md5:  5459a539ffc483f9c002ddeab626a64e
15 URL:            http://live.gnome.org/dconf
16 BuildRequires:  autoconf >= 2.50
17 BuildRequires:  automake >= 1:1.11.2
18 BuildRequires:  dbus-devel
19 BuildRequires:  gettext-tools
20 BuildRequires:  glib2-devel >= 1:2.39.1
21 BuildRequires:  gtk+3-devel >= 3.4.0
22 BuildRequires:  gtk-doc >= 1.15
23 BuildRequires:  intltool >= 0.50.0
24 BuildRequires:  libxml2-devel
25 BuildRequires:  libxslt-progs
26 BuildRequires:  rpmbuild(macros) >= 1.527
27 BuildRequires:  tar >= 1:1.22
28 # not needed atm., generated files are packaged
29 #%{?with_vala:BuildRequires:    vala >= 2:0.18.0}
30 BuildRequires:  xz
31 Requires(post,postun):  glib2 >= 1:2.39.1
32 Requires:       dbus
33 Requires:       glib2 >= 1:2.39.1
34 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
35
36 %description
37 dconf is a low-level configuration system. Its main purpose is to
38 provide a backend to GSettings on platforms that don't already have
39 configuration storage systems.
40
41 %description -l pl.UTF-8
42 dconf to niskopoziomowy system konfiguracji. Głównym celem jest
43 dostarczenie backendu dla GSettings na platformach, które jeszcze nie
44 mają systemów przechowywania danych konfiguracyjnych.
45
46 %package devel
47 Summary:        Header files for dconf library
48 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki dconf
49 Group:          Development/Libraries
50 Requires:       %{name} = %{version}-%{release}
51 Requires:       dbus-devel
52 Requires:       glib2-devel >= 1:2.39.1
53
54 %description devel
55 Header files for dconf library.
56
57 %description devel -l pl.UTF-8
58 Pliki nagłówkowe biblioteki dconf.
59
60 %package editor
61 Summary:        Configuration editor for dconf
62 Summary(pl.UTF-8):      Edytor konfiguracji dla dconf
63 Group:          X11/Applications
64 Requires:       %{name} = %{version}-%{release}
65 Requires(post,postun):  gtk-update-icon-cache
66 Requires:       hicolor-icon-theme
67
68 %description editor
69 dconf-editor allows you to browse and modify dconf database.
70
71 %description editor -l pl.UTF-8
72 dconf-editor pozwala na przeglądanie i modyfikowanie bazy dconf.
73
74 %package apidocs
75 Summary:        dconf API documentation
76 Summary(pl.UTF-8):      Dokumentacja API biblioteki dconf
77 Group:          Documentation
78 Requires:       gtk-doc-common
79
80 %description apidocs
81 API documentation for dconf library.
82
83 %description apidocs -l pl.UTF-8
84 Dokumentacja API biblioteki dconf.
85
86 %package -n bash-completion-dconf
87 Summary:        bash-completion for dconf
88 Summary(pl.UTF-8):      Bashowe uzupełnianie nazw dla dconf
89 Group:          Applications/Shells
90 Requires:       bash-completion >= 2
91 %if "%{_rpmversion}" >= "5"
92 BuildArch:      noarch
93 %endif
94
95 %description -n bash-completion-dconf
96 bash-completion for dconf.
97
98 %description -n bash-completion-dconf -l pl.UTF-8
99 Bashowe uzupełnianie nazw dla dconf.
100
101 %package -n vala-dconf
102 Summary:        dconf API for Vala language
103 Summary(pl.UTF-8):      API dconf dla języka Vala
104 Group:          Development/Libraries
105 Requires:       %{name}-devel = %{version}-%{release}
106 Requires:       vala >= 2:0.18.0
107
108 %description -n vala-dconf
109 dconf API for Vala language.
110
111 %description -n vala-dconf -l pl.UTF-8
112 API dconf dla języka Vala.
113
114 %prep
115 %setup -q
116
117 %build
118 %{__intltoolize}
119 %{__aclocal}
120 %{__autoconf}
121 %{__autoheader}
122 %{__automake}
123 %configure \
124         --with-html-dir=%{_gtkdocdir} \
125         %{__enable_disable apidocs gtk-doc} \
126         --disable-silent-rules
127 %{__make}
128
129 %install
130 rm -rf $RPM_BUILD_ROOT
131
132 install -d $RPM_BUILD_ROOT%{_sysconfdir}/dconf/{db,profile}
133 install -d $RPM_BUILD_ROOT%{_datadir}/dconf/profile
134
135 %{__make} install \
136         DESTDIR=$RPM_BUILD_ROOT
137
138 %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}}
139
140 %find_lang %{name}
141
142 %clean
143 rm -rf $RPM_BUILD_ROOT
144
145 %post
146 /sbin/ldconfig
147
148 umask 022
149 %{_bindir}/gio-querymodules %{_libdir}/gio/modules || :
150
151 %glib_compile_schemas
152
153 %postun
154 /sbin/ldconfig
155
156 umask 022
157 %{_bindir}/gio-querymodules %{_libdir}/gio/modules || :
158
159 %glib_compile_schemas
160
161 %post editor
162 %update_icon_cache hicolor
163 %update_icon_cache HighContrast
164
165 %postun editor
166 %update_icon_cache hicolor
167 %update_icon_cache HighContrast
168
169 %files -f %{name}.lang
170 %defattr(644,root,root,755)
171 %doc NEWS README
172 %attr(755,root,root) %{_bindir}/dconf
173 %attr(755,root,root) %{_libdir}/libdconf.so.*.*.*
174 %attr(755,root,root) %ghost %{_libdir}/libdconf.so.1
175 %attr(755,root,root) %{_libdir}/libdconf-dbus-1.so.*.*.*
176 %attr(755,root,root) %ghost %{_libdir}/libdconf-dbus-1.so.0
177 %attr(755,root,root) %{_libexecdir}/dconf-service
178 %attr(755,root,root) %{_libdir}/gio/modules/libdconfsettings.so
179 %{_datadir}/dbus-1/services/ca.desrt.dconf.service
180 %{_datadir}/glib-2.0/schemas/ca.desrt.dconf-editor.gschema.xml
181 %dir %{_sysconfdir}/dconf
182 %dir %{_sysconfdir}/dconf/db
183 %dir %{_sysconfdir}/dconf/profile
184 %dir %{_datadir}/dconf
185 %dir %{_datadir}/dconf/profile
186 %{_mandir}/man1/dconf-service.1*
187 %{_mandir}/man1/dconf.1*
188 %{_mandir}/man7/dconf.7*
189
190 %files devel
191 %defattr(644,root,root,755)
192 %attr(755,root,root) %{_libdir}/libdconf.so
193 %attr(755,root,root) %{_libdir}/libdconf-dbus-1.so
194 %{_includedir}/dconf
195 %{_includedir}/dconf-dbus-1
196 %{_pkgconfigdir}/dconf.pc
197 %{_pkgconfigdir}/dconf-dbus-1.pc
198
199 %files editor
200 %defattr(644,root,root,755)
201 %attr(755,root,root) %{_bindir}/dconf-editor
202 %{_datadir}/appdata/ca.desrt.dconf-editor.appdata.xml
203 %{_desktopdir}/ca.desrt.dconf-editor.desktop
204 %{_datadir}/dbus-1/services/ca.desrt.dconf-editor.service
205 %{_iconsdir}/hicolor/*/*/*.png
206 %{_iconsdir}/HighContrast/*/*/*.png
207 %{_mandir}/man1/dconf-editor.1*
208
209 %if %{with apidocs}
210 %files apidocs
211 %defattr(644,root,root,755)
212 %{_gtkdocdir}/dconf
213 %endif
214
215 %files -n bash-completion-dconf
216 %defattr(644,root,root,755)
217 %{bash_compdir}/dconf
218
219 %if %{with vala}
220 %files -n vala-dconf
221 %defattr(644,root,root,755)
222 %{_datadir}/vala/vapi/dconf.deps
223 %{_datadir}/vala/vapi/dconf.vapi
224 %endif
This page took 0.082466 seconds and 3 git commands to generate.