Commit 0174cff8 authored by Alexander Larsson's avatar Alexander Larsson
Browse files

Add dconf

parent 3289cf23
......@@ -40,6 +40,7 @@ PACKAGES = \
hicolor-icon-theme libcroco vala librsvg2 adwaita-icon-theme \
gnome-sdk gnome-platform dejavu-fonts abattis-cantarell-fonts \
gtk2 gnome-themes-standard libproxy gsettings-desktop-schemas glib-networking libsoup \
dconf \
$(NULL)
ALL_SPECS =$(PACKAGES:%=$(SPECS)/%.spec)
......
Name: dconf
Version: 0.22.0
Release: 1%{?dist}
Summary: A configuration system
Group: System Environment/Base
License: LGPLv2+ and GPLv2+ and GPLv3+
URL: http://live.gnome.org/dconf
#VCS: git:git://git.gnome.org/dconf
Source0: http://download.gnome.org/sources/dconf/0.22/dconf-%{version}.tar.xz
BuildRequires: glib2-devel
BuildRequires: gtk3-devel
BuildRequires: dbus-devel
BuildRequires: vala-devel
Requires: glib2
%description
dconf is a low-level configuration system. Its main purpose is to provide a
backend to the GSettings API in GLib.
%package devel
Summary: Header files and libraries for dconf development
Group: Development/Libraries
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
dconf development package. Contains files needed for doing software
development using dconf.
%package editor
Summary: Configuration editor for dconf
Group: Applications/System
Requires: %{name}%{?_isa} = %{version}-%{release}
%description editor
dconf-editor allows you to browse and modify dconf databases.
%prep
%setup -q
%build
%configure --disable-static --disable-man
make V=1 %{?_smp_mflags}
%install
make install DESTDIR=$RPM_BUILD_ROOT
#we need this beacuse ibus and gdm installs file there
install -d $RPM_BUILD_ROOT%{_sysconfdir}/dconf/db
install -d $RPM_BUILD_ROOT%{_sysconfdir}/dconf/profile
%find_lang dconf
%post
/sbin/ldconfig
gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
%postun
/sbin/ldconfig
if [ $1 -eq 0 ] ; then
gio-querymodules-%{__isa_bits} %{_libdir}/gio/modules
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi
%posttrans
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
%post editor
for d in hicolor HighContrast ; do
touch --no-create %{_datadir}/icons/$d &>/dev/null || :
done
%postun editor
if [ $1 -eq 0 ] ; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
for d in hicolor HighContrast ; do
touch --no-create %{_datadir}/icons/$d &>/dev/null || :
gtk-update-icon-cache %{_datadir}/icons/$d &>/dev/null || :
done
fi
%posttrans editor
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
for d in hicolor HighContrast ; do
gtk-update-icon-cache %{_datadir}/icons/$d &>/dev/null || :
done
%files -f dconf.lang
%doc COPYING
%dir %{_sysconfdir}/dconf
%dir %{_sysconfdir}/dconf/db
%dir %{_sysconfdir}/dconf/profile
%{_libdir}/gio/modules/libdconfsettings.so
%{_libexecdir}/dconf-service
%{_datadir}/dbus-1/services/ca.desrt.dconf.service
%{_bindir}/dconf
%{_libdir}/libdconf.so.*
%{_libdir}/libdconf-dbus-1.so.*
%{_datadir}/bash-completion/completions/dconf
%files devel
%{_includedir}/dconf
%{_libdir}/libdconf.so
%{_libdir}/pkgconfig/dconf.pc
%{_includedir}/dconf-dbus-1
%{_libdir}/libdconf-dbus-1.so
%{_libdir}/pkgconfig/dconf-dbus-1.pc
%{_datadir}/gtk-doc/html/dconf
%{_datadir}/vala
%files editor
%{_bindir}/dconf-editor
%{_datadir}/appdata/ca.desrt.dconf-editor.appdata.xml
%{_datadir}/applications/ca.desrt.dconf-editor.desktop
%{_datadir}/dbus-1/services/ca.desrt.dconf-editor.service
%{_datadir}/glib-2.0/schemas/ca.desrt.dconf-editor.gschema.xml
%{_datadir}/icons/hicolor/*/apps/dconf-editor.png
%{_datadir}/icons/HighContrast/*/apps/dconf-editor.png
%changelog
* Mon Nov 24 2014 Alexander Larsson <alexl@redhat.com> - 0.22.0-1
- Initial version, based on F21
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment