mirror of
https://abf.rosa.ru/djam/xsettingsd.git
synced 2025-02-23 16:52:57 +00:00
49 lines
1.5 KiB
RPMSpec
49 lines
1.5 KiB
RPMSpec
%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
|
|
BuildRequires: cmake
|
|
BuildRequires: scons
|
|
BuildRequires: llvm%{_llvm_ver}
|
|
BuildRequires: pkgconfig(x11)
|
|
BuildRequires: python38-devel
|
|
|
|
%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
|
|
%setup -q
|
|
|
|
%build
|
|
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
|
|
|
|
%cmake
|
|
%make
|
|
|
|
%install
|
|
%makeinstall_std -C build
|
|
|
|
%files
|
|
%doc README.md COPYING
|
|
%{_bindir}/%{name}
|
|
%{_bindir}/dump_xsettings
|
|
%{_mandir}/man1/%{name}.1.*
|
|
%{_mandir}/man1/dump_xsettings.1.*
|
|
%{_userunitdir}/xsettingsd.service
|