xsettingsd/xsettingsd.spec

50 lines
1.5 KiB
RPMSpec
Raw Normal View History

2023-09-25 18:46:18 +00:00
%global optflags %(echo %{optflags} | sed -e 's/-ffat-lto-objects//g' -e 's/-fvar-tracking-assignments//g' -e 's/-Wa,//g' -e 's/--compress-debug-sections//g' -e 's/-fno-devirtualize//g' )
%define _llvm_ver 16
%define _optdir /opt
%define _llvm_path %{_optdir}/llvm%{_llvm_ver}
Summary: Provides settings to X11 applications via the XSETTINGS specification
Name: xsettingsd
Version: 1.0.2
Release: 1
Group: Graphical desktop/Other
License: BSD
URL: https://github.com/derat/xsettingsd
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
2021-01-16 07:15:24 +00:00
BuildRequires: cmake
2021-01-16 06:39:47 +00:00
BuildRequires: scons
2023-09-25 18:46:18 +00:00
BuildRequires: llvm%{_llvm_ver}
2021-01-16 06:39:47 +00:00
BuildRequires: pkgconfig(x11)
2023-09-25 18:46:18 +00:00
BuildRequires: python38-devel
2021-01-16 06:39:47 +00:00
%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 gnome-settings-daemon for
users who are not using the GNOME desktop environment but who still run
GTK+ applications and want to configure things such as themes, font
antialiasing/hinting, and UI sound effects.
%prep
2023-09-25 18:46:18 +00:00
%setup -q
2021-01-16 06:39:47 +00:00
%build
2023-09-25 18:46:18 +00:00
export CC=%{_llvm_path}/bin/clang
export CXX=%{_llvm_path}/bin/clang++
export AR=%{_llvm_path}/bin/llvm-ar
export NM=%{_llvm_path}/bin/llvm-nm
2021-01-16 06:39:47 +00:00
%cmake
%make
%install
%makeinstall_std -C build
%files
2023-09-25 18:46:18 +00:00
%doc README.md COPYING
2021-01-16 06:39:47 +00:00
%{_bindir}/%{name}
%{_bindir}/dump_xsettings
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/dump_xsettings.1.*
%{_userunitdir}/xsettingsd.service