Files
packages/anda/tools/gcm-core/gcm-core.spec
T

55 lines
1.3 KiB
RPMSpec

%global debug_package %{nil}
%define __os_install_post %{nil}
%global long_name git-credential-manager
%global forgeurl https://github.com/git-ecosystem/git-credential-manager
Name: gcm-core
Version: 2.7.3
Release: 1%{?dist}
Summary: Secure, cross-platform Git credential storage
%forgemeta
License: MIT
URL: %{forgeurl}
Source0: %{forgesource}
Provides: %{long_name} = %{version}-%{release}
Provides: %{long_name}-core = %{version}-%{release}
BuildRequires: dotnet-sdk-8.0
# Require DPKG, so that we can use the `dpkg-architecture` command. which makes the build script happy.
# TODO: Better solution: Patch out the debian-specific packaging code.
BuildRequires: dpkg-dev
Requires: dotnet-runtime-8.0
%description
Secure, cross-platform Git credential storage with authentication to GitHub,
Azure Repos, and other popular Git hosting services.
%prep
%forgesetup
%build
dotnet build -c LinuxRelease
%install
export DONT_STRIP=1
ls out/linux/Packaging.Linux/Release/payload -alh
install -Dm755 out/linux/Packaging.Linux/Release/payload/%{long_name} %{buildroot}%{_bindir}/%{long_name}
%files
%doc README.md
%license LICENSE
/usr/bin/git-credential-manager
%changelog
* Sat Oct 22 2022 Cappy Ishihara <cappy@cappuchino.xyz> - 2.0.785-1
- Initial package.