File xsettingsd.spec of Package xsettingsd

#
# spec file for package xsettingsd
#
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           xsettingsd
Version:        0.0~git20121210
Release:        0
Summary:        Provides settings to X11 applications
License:        BSD-3-Clause
Group:          System/X11
Url:            https://github.com/derat/xsettingsd
Source:         %{name}-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  pkg-config
BuildRequires:  scons
BuildRequires:  pkgconfig(x11)

%description
xsettingsd is a daemon that implements the XSETTINGS specification.
It is intended to be small, fast, and minimally dependent on other
libraries. It can serve as an alternative to mate-settings-daemon for users
who are not using the MATE desktop environment but who still run GTK+
applications and want to configure things such as themes, font
antialiasing/hinting, and UI sound effects.

%prep
%setup -q

%build
scons CC="$(which gcc)" CXX="$(which g++)" %{?_smp_mflags}

%install
for file in %{name} dump_xsettings; do
    install -Dm 0755 ${file} %{buildroot}%{_bindir}/${file}
    install -Dm 0644 ${file}.1 %{buildroot}%{_mandir}/man1/${file}.1
done

%files
%defattr (-,root,root)
%doc COPYING README
%{_bindir}/%{name}
%{_bindir}/dump_xsettings
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/dump_xsettings.1.*

%changelog
openSUSE Build Service is sponsored by