49 lines
1.4 KiB
RPMSpec
49 lines
1.4 KiB
RPMSpec
%define debug_package %{nil}
|
|
%define src_install_dir /usr/src/%{name}
|
|
|
|
Name: rules_foreign_cc
|
|
Version: 0.9.0
|
|
Release: 1
|
|
Summary: Build rules for interfacing with non-Bazel build systems
|
|
License: Apache-2.0
|
|
Url: https://github.com/bazelbuild/rules_foreign_cc
|
|
Source0: https://github.com/bazelbuild/rules_foreign_cc/archive/refs/tags/%{version}.tar.gz
|
|
BuildRequires: fdupes
|
|
|
|
%description
|
|
Rules for building C/C++ projects using foreign build systems inside Bazel
|
|
projects.
|
|
|
|
%package source
|
|
Summary: Source code of bazel-rules-foreign-cc
|
|
BuildArch: noarch
|
|
|
|
%description source
|
|
Rules for building C/C++ projects using foreign build systems inside Bazel
|
|
projects.
|
|
|
|
This package contains source code of bazel-rules-foreign-cc.
|
|
|
|
%prep
|
|
%setup -q
|
|
|
|
%build
|
|
|
|
%install
|
|
mkdir -p %{buildroot}%{src_install_dir}
|
|
tar -xf %{SOURCE0} --strip-components=1 -C %{buildroot}%{src_install_dir}
|
|
# Fix non-executable-script warning.
|
|
find %{buildroot}%{src_install_dir} -type f -name "*.sh" -exec chmod +x "{}" +
|
|
# Fix env-script-interpreter error.
|
|
find %{buildroot}%{src_install_dir} -type f -name "*.sh" -exec sed -i 's|#!/usr/bin/env bash|#!/bin/bash|' "{}" +
|
|
%fdupes %{buildroot}%{src_install_dir}
|
|
|
|
%files source
|
|
%license LICENSE
|
|
%doc README.md
|
|
%{src_install_dir}
|
|
|
|
%changelog
|
|
* Mon Mar 17 2025 Acccll <mail1521@163.com> -0.9.0-1
|
|
- package init
|