]>
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 | |
590ddded | 7 | Version: 0.5.1 |
e7aed550 MB |
8 | Release: 1 |
9 | License: LGPL v2+ | |
10 | Group: Libraries | |
590ddded PZ |
11 | Source0: http://ftp.gnome.org/pub/GNOME/sources/dconf/0.5/%{name}-%{version}.tar.bz2 |
12 | # Source0-md5: c905497d0255fe2ba58564f9655908ab | |
e7aed550 MB |
13 | URL: http://live.gnome.org/dconf |
14 | BuildRequires: autoconf | |
ccd1b4d1 MB |
15 | BuildRequires: automake >= 1:1.11 |
16 | BuildRequires: glib2-devel >= 1:2.25.10 | |
e7aed550 | 17 | BuildRequires: gobject-introspection-devel >= 0.6.7 |
ccd1b4d1 MB |
18 | BuildRequires: gtk+2-devel |
19 | BuildRequires: gtk-doc >= 1.14 | |
20 | BuildRequires: libgee-devel | |
21 | BuildRequires: libtool >= 2:2.2 | |
22 | BuildRequires: libxml2-devel | |
e7aed550 | 23 | BuildRequires: rpmbuild(macros) >= 1.527 |
ccd1b4d1 MB |
24 | BuildRequires: vala >= 0.8.0 |
25 | Requires(post,postun): glib2 >= 1:2.25.10 | |
e7aed550 MB |
26 | Requires: dbus |
27 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
28 | ||
29 | %description | |
30 | dconf is a low-level configuration system. Its main purpose is to | |
31 | provide a backend to GSettings on platforms that don't already have | |
32 | configuration storage systems. | |
33 | ||
34 | %package devel | |
35 | Summary: Header files for dconf library | |
36 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki dconf | |
37 | Group: Development/Libraries | |
38 | Requires: %{name} = %{version}-%{release} | |
ccd1b4d1 | 39 | Requires: glib2-devel >= 1:2.25.10 |
e7aed550 MB |
40 | |
41 | %description devel | |
42 | Header files for dconf library. | |
43 | ||
44 | %description devel -l pl.UTF-8 | |
45 | Pliki nagłówkowe biblioteki dconf. | |
46 | ||
ccd1b4d1 MB |
47 | %package editor |
48 | Summary: Configuration editor for dconf | |
49 | Summary(pl.UTF-8): Edytor konfiguracji dla dconf | |
50 | Group: X11/Applications | |
51 | Requires: %{name} = %{version}-%{release} | |
52 | ||
53 | %description editor | |
54 | dconf-editor allows you to browse and modify dconf database. | |
55 | ||
56 | %description editor -l pl.UTF-8 | |
57 | dconf-editor pozwala na przeglądanie i modyfikowanie bazy dconf. | |
58 | ||
e7aed550 MB |
59 | %package apidocs |
60 | Summary: dconf API documentation | |
61 | Summary(pl.UTF-8): Dokumentacja API biblioteki dconf | |
62 | Group: Documentation | |
63 | Requires: gtk-doc-common | |
64 | ||
65 | %description apidocs | |
66 | API documentation for dconf library. | |
67 | ||
68 | %description apidocs -l pl.UTF-8 | |
69 | Dokumentacja API biblioteki dconf. | |
70 | ||
71 | %prep | |
72 | %setup -q | |
73 | ||
74 | %build | |
75 | %{__libtoolize} | |
76 | %{__aclocal} | |
77 | %{__autoconf} | |
78 | %{__automake} | |
79 | %configure \ | |
80 | --with-html-dir=%{_gtkdocdir} \ | |
81 | %{__enable_disable apidocs gtk-doc} \ | |
82 | --disable-silent-rules | |
83 | %{__make} | |
84 | ||
85 | %install | |
86 | rm -rf $RPM_BUILD_ROOT | |
87 | ||
88 | %{__make} install \ | |
89 | DESTDIR=$RPM_BUILD_ROOT | |
90 | ||
91 | rm -f $RPM_BUILD_ROOT%{_libdir}/*.la | |
92 | ||
93 | %{!?with_apidocs:rm -rf $RPM_BUILD_ROOT%{_gtkdocdir}} | |
94 | ||
95 | %clean | |
96 | rm -rf $RPM_BUILD_ROOT | |
97 | ||
98 | %post | |
99 | /sbin/ldconfig | |
100 | ||
101 | umask 022 | |
102 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules | |
103 | exit 0 | |
104 | ||
105 | %postun | |
106 | /sbin/ldconfig | |
107 | ||
108 | umask 022 | |
109 | %{_bindir}/gio-querymodules %{_libdir}/gio/modules | |
110 | exit 0 | |
111 | ||
112 | %files | |
113 | %defattr(644,root,root,755) | |
114 | %doc NEWS | |
115 | %attr(755,root,root) %{_bindir}/dconf | |
590ddded PZ |
116 | %attr(755,root,root) %{_libdir}/libdconf.so.0.0.0 |
117 | %attr(755,root,root) %{_libdir}/libdconf.so.0 | |
e7aed550 MB |
118 | %attr(755,root,root) %{_libexecdir}/dconf-service |
119 | %attr(755,root,root) %{_libdir}/gio/modules/libdconfsettings.so | |
e7aed550 MB |
120 | %{_datadir}/dbus-1/services/ca.desrt.dconf.service |
121 | %{_datadir}/dbus-1/system-services/ca.desrt.dconf.service | |
590ddded | 122 | %{_libdir}/girepository-1.0/*.typelib |
e7aed550 MB |
123 | |
124 | %files devel | |
125 | %defattr(644,root,root,755) | |
126 | %attr(755,root,root) %{_libdir}/libdconf.so | |
e7aed550 MB |
127 | %{_includedir}/dconf |
128 | %{_pkgconfigdir}/dconf.pc | |
590ddded PZ |
129 | # split to a separate package? |
130 | %{_datadir}/vala/vapi/dconf.* | |
131 | %{_datadir}/gir-1.0/*.gir | |
e7aed550 | 132 | |
ccd1b4d1 MB |
133 | %files editor |
134 | %defattr(644,root,root,755) | |
135 | %attr(755,root,root) %{_bindir}/dconf-editor | |
136 | ||
e7aed550 MB |
137 | %if %{with apidocs} |
138 | %files apidocs | |
139 | %defattr(644,root,root,755) | |
140 | %{_gtkdocdir}/dconf | |
141 | %endif |