forked from Shinonome/dots-hyprland
fedora: add a spec for cpptrace (now required by quickshell) and its dependencies
This commit is contained in:
@@ -0,0 +1,42 @@
|
|||||||
|
%global source_date_epoch_from_changelog 0
|
||||||
|
|
||||||
|
%global tag 1.0.4
|
||||||
|
%global commits 1054
|
||||||
|
%global commit 91b6b78e408a8b1c0b7146c9034a03156c082da2
|
||||||
|
%global shortcommit %(c=%{commit}; echo ${c:0:7})
|
||||||
|
|
||||||
|
Name: cpptrace
|
||||||
|
Version: 1.0.4
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Simple, portable, and self-contained stacktrace library for C++11 and newer
|
||||||
|
|
||||||
|
License: MIT
|
||||||
|
URL: https://github.com/jeremy-rifkin/cpptrace
|
||||||
|
Source0: %{url}/archive/%{commit}/cpptrace-%{shortcommit}.tar.gz
|
||||||
|
|
||||||
|
BuildRequires: cmake
|
||||||
|
BuildRequires: gcc-c++
|
||||||
|
BuildRequires: make
|
||||||
|
BuildRequires: ninja-build
|
||||||
|
|
||||||
|
%description
|
||||||
|
C++ lightweight logging library used by Quickshell.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%autosetup -n cpptrace-%{commit} -p1
|
||||||
|
|
||||||
|
%build
|
||||||
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
cmake .. -GNinja -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX=/usr/local -DCPPTRACE_UNWIND_WITH_LIBUNWIND=true
|
||||||
|
cmake --build .
|
||||||
|
|
||||||
|
%install
|
||||||
|
cd build
|
||||||
|
DESTDIR=%{buildroot} cmake --install .
|
||||||
|
|
||||||
|
%files
|
||||||
|
%{_prefix}/local/include/*
|
||||||
|
%{_prefix}/local/lib64/*
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
@@ -149,6 +149,7 @@ packages = [
|
|||||||
"libdrm",
|
"libdrm",
|
||||||
"breakpad",
|
"breakpad",
|
||||||
"kf6-kirigami",
|
"kf6-kirigami",
|
||||||
|
"libunwind-devel",
|
||||||
# NOTE: Below are custom dependencies of illogical-impulse
|
# NOTE: Below are custom dependencies of illogical-impulse
|
||||||
"qt6-qt5compat",
|
"qt6-qt5compat",
|
||||||
"qt6-qtimageformats",
|
"qt6-qtimageformats",
|
||||||
|
|||||||
@@ -5,6 +5,7 @@
|
|||||||
# -------------------------
|
# -------------------------
|
||||||
user_config="${REPO_ROOT}/sdata/dist-fedora/user_data.yaml"
|
user_config="${REPO_ROOT}/sdata/dist-fedora/user_data.yaml"
|
||||||
rpmbuildroot="${REPO_ROOT}/cache/rpmbuild"
|
rpmbuildroot="${REPO_ROOT}/cache/rpmbuild"
|
||||||
|
rpm_specs="${REPO_ROOT}/sdata/dist-fedora/SPECS"
|
||||||
deps_data_file="${REPO_ROOT}/sdata/dist-fedora/feddeps.toml"
|
deps_data_file="${REPO_ROOT}/sdata/dist-fedora/feddeps.toml"
|
||||||
|
|
||||||
# -------------------------
|
# -------------------------
|
||||||
@@ -24,7 +25,7 @@ function r() {
|
|||||||
|
|
||||||
# Start building and install the missing RPM package locally.
|
# Start building and install the missing RPM package locally.
|
||||||
function install_RPMS() {
|
function install_RPMS() {
|
||||||
local local_specs local_rpms
|
local local_rpms
|
||||||
rpmbuildroot="${rpmbuildroot:-${REPO_ROOT}/cache/rpmbuild}"
|
rpmbuildroot="${rpmbuildroot:-${REPO_ROOT}/cache/rpmbuild}"
|
||||||
|
|
||||||
x mkdir -p "$rpmbuildroot"/{BUILD,RPMS,SOURCES}
|
x mkdir -p "$rpmbuildroot"/{BUILD,RPMS,SOURCES}
|
||||||
@@ -32,7 +33,12 @@ function install_RPMS() {
|
|||||||
|
|
||||||
x cd $rpmbuildroot/SPECS
|
x cd $rpmbuildroot/SPECS
|
||||||
|
|
||||||
mapfile -t -d '' local_specs < <(find "$rpmbuildroot/SPECS" -maxdepth 1 -type f -name "*.spec" -print0)
|
# we need cpptrace BEFORE quickshell-git
|
||||||
|
local_specs=(
|
||||||
|
"$rpm_specs/cpptrace.spec"
|
||||||
|
"$rpm_specs/quickshell-git.spec"
|
||||||
|
"$rpm_specs/hyprland-qt-support.spec"
|
||||||
|
)
|
||||||
for spec_file in ${local_specs[@]}; do
|
for spec_file in ${local_specs[@]}; do
|
||||||
# Download sources
|
# Download sources
|
||||||
x spectool -g -C "$rpmbuildroot/SOURCES" "$spec_file"
|
x spectool -g -C "$rpmbuildroot/SOURCES" "$spec_file"
|
||||||
|
|||||||
Reference in New Issue
Block a user