package init

This commit is contained in:
fly_fzc 2025-04-07 18:22:00 +08:00
parent e31f8cd510
commit 8dc8d381b8
3 changed files with 54 additions and 0 deletions

Binary file not shown.

50
googleapis.spec Normal file
View File

@ -0,0 +1,50 @@
%define debug_package %{nil}
%define src_install_dir /usr/src/%{name}
Name: googleapis
Version: 2f9af297c84c55c8b871ba4495e01ade42476c92
Release: 1
Summary: Public interface definitions of Google APIs
License: Apache-2.0
URL: https://github.com/%{name}/%{name}
Source0: https://github.com/%{name}/%{name}/archive/%{version}.tar.gz
BuildRequires: fdupes
%description
Googleapis are the interface definitions of public Google APIs that support
both REST and gRPC protocols.
%package source
Summary: Source code of googleapis
BuildArch: noarch
%description source
Googleapis are the interface definitions of public Google APIs that support
both REST and gRPC protocols.
This package comtains source code for googleapis.
%prep
%autosetup -n %{name}-%{version}
%build
%install
mkdir -p %{buildroot}%{src_install_dir}
cp -r * %{buildroot}%{src_install_dir}
%fdupes %{buildroot}%{src_install_dir}
# Fix hidden-dile-or-dir warning.
find %{buildroot}%{src_install_dir} -name ".*" -exec rm -rf "{}" +
# Some headers have executable bits...
find %{buildroot}%{src_install_dir} -type f -name "*.h" -exec chmod -x "{}" +
%files source
%license LICENSE
%doc README.md
%{src_install_dir}
%changelog
* Mon Apr 7 2025 fuanan <fuanan3@h-partners.com> - 2f9af297c84c55c8b871ba4495e01ade42476c92-1
- package init

4
googleapis.yaml Normal file
View File

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