add gcm-core

This commit is contained in:
Cappy Ishihara
2022-10-22 17:07:00 +07:00
parent 8679af7f28
commit dc036b527e
2 changed files with 54 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project "pkg" {
rpm {
spec = "gcm-core.spec"
}
}
+49
View File
@@ -0,0 +1,49 @@
%global debug_package %{nil}
%global long_name git-credential-manager
%global forgeurl https://github.com/GitCredentialManager/git-credential-manager
Name: gcm-core
Version: 2.0.785
%forgemeta -i
Release: 1%{?dist}
Summary: Secure, cross-platform Git credential storage
License: MIT
URL: %{forgeurl}
Source0: %{forgesource}
Provides: %{long_name} = %{version}-%{release}
Provides: %{long_name}-core = %{version}-%{release}
BuildRequires: dotnet-sdk-6.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-6.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
install -D -m 755 out/linux/Packaging.Linux/payload/Release/%{long_name}-core %{buildroot}%{_bindir}/%{long_name}-core
%files
%license LICENSE
%changelog
* Sat Oct 22 2022 Cappy Ishihara <cappy@cappuchino.xyz>
-