51 lines
1.3 KiB
RPMSpec
51 lines
1.3 KiB
RPMSpec
%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
|