diff --git a/anda/tools/gcm-core/anda.hcl b/anda/tools/gcm-core/anda.hcl new file mode 100644 index 0000000000..bf59fd1627 --- /dev/null +++ b/anda/tools/gcm-core/anda.hcl @@ -0,0 +1,5 @@ +project "pkg" { + rpm { + spec = "gcm-core.spec" + } +} \ No newline at end of file diff --git a/anda/tools/gcm-core/gcm-core.spec b/anda/tools/gcm-core/gcm-core.spec new file mode 100644 index 0000000000..269c1a2826 --- /dev/null +++ b/anda/tools/gcm-core/gcm-core.spec @@ -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 +-