diff --git a/.abf.yml b/.abf.yml index 53e83ba..96fa1cd 100644 --- a/.abf.yml +++ b/.abf.yml @@ -1,2 +1,3 @@ sources: - "v1.0.2.tar.gz": 4322aac381c8ca8de14771d15ea5c9052d6050be + v1.0.2.tar.gz: 4322aac381c8ca8de14771d15ea5c9052d6050be + xsettingsd-1.0.2.tar.gz: 682d0c968c45cbef80b6d0f896d9e347dc0b7c3a diff --git a/xsettingsd.spec b/xsettingsd.spec index 53e0959..8029d07 100644 --- a/xsettingsd.spec +++ b/xsettingsd.spec @@ -1,14 +1,21 @@ -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: https://github.com/derat/xsettingsd/archive/v%{version}.tar.gz +%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. @@ -19,9 +26,14 @@ GTK+ applications and want to configure things such as themes, font antialiasing/hinting, and UI sound effects. %prep -%autosetup -p1 +%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 @@ -29,7 +41,7 @@ antialiasing/hinting, and UI sound effects. %makeinstall_std -C build %files -%doc COPYING +%doc README.md COPYING %{_bindir}/%{name} %{_bindir}/dump_xsettings %{_mandir}/man1/%{name}.1.*