This commit is contained in:
Acccll 2025-04-07 17:53:10 +08:00
parent 225ad1ce81
commit a571f3fd1d
3 changed files with 47 additions and 0 deletions

BIN
rules_pkg-0.7.0.tar.gz Normal file

Binary file not shown.

43
rules_pkg.spec Normal file
View File

@ -0,0 +1,43 @@
%define debug_package %{nil}
%define src_install_dir /usr/src/%{name}
Name: rules_pkg
Version: 0.7.0
Release: 1
Summary: Bazel rules for building tar, zip, deb, and rpm for packages
License: Apache-2.0
Group: Development/Tools/Building
URL: https://github.com/bazelbuild/%{name}
Source0: https://github.com/bazelbuild/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires: fdupes
%description
Bazel rules for building tar, zip, deb, and rpm for packages.
%package source
Summary: Source code of bazel-rules-pkg
Group: Development/Sources
BuildArch: noarch
%description source
Bazel rules for building tar, zip, deb, and rpm for packages.
This package contains source code for bazel-rules-pkg.
%prep
%setup -qc
%build
%install
mkdir -p %{buildroot}%{src_install_dir}
cp -r * %{buildroot}%{src_install_dir}
%fdupes %{buildroot}%{src_install_dir}
%files source
%license LICENSE
%{src_install_dir}
%changelog
* Sat Mar 15 2025 Acccll <mail1521@163.com> - 0.7.0-1
- package init

4
rules_pkg.yaml Normal file
View File

@ -0,0 +1,4 @@
version_control: github
src_repo: bazelbuild/rules_pkg
tag_prefix: ^v
separator: .