commit 9b4570dabb248fd2f69becd322f5397fa9f78fc5 Author: Andrew Lukoshko Date: Mon Nov 14 12:59:10 2022 +0100 Initial release diff --git a/.cas.metadata b/.cas.metadata new file mode 100644 index 0000000..1d8382e --- /dev/null +++ b/.cas.metadata @@ -0,0 +1 @@ +6f4eb30b026cac0183364fd17dbf1155ef226c93 SOURCES/v1.0.3.tar.gz diff --git a/SOURCES/0001-Remove-dev-from-cas-version.patch b/SOURCES/0001-Remove-dev-from-cas-version.patch new file mode 100644 index 0000000..82d84da --- /dev/null +++ b/SOURCES/0001-Remove-dev-from-cas-version.patch @@ -0,0 +1,25 @@ +From 00e8e30dd95010d736fcbd6f8c62a78d701108b6 Mon Sep 17 00:00:00 2001 +From: Sofia Boldyreva +Date: Fri, 11 Nov 2022 14:50:05 +0100 +Subject: [PATCH] Remove -dev from cas version + +--- + Makefile | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/Makefile b/Makefile +index 409b82f..b0ab4ca 100644 +--- a/Makefile ++++ b/Makefile +@@ -24,7 +24,7 @@ SETUPEXE=codenotary_cas_v${VERSION}_setup.exe + + .PHONY: cas + cas: +- $(GO) build -ldflags '${LDFLAGS} -X github.com/codenotary/cas/pkg/meta.version=v${VERSION}-dev' ./cmd/cas ++ $(GO) build -ldflags '${LDFLAGS} -X github.com/codenotary/cas/pkg/meta.version=v${VERSION}' ./cmd/cas + + .PHONY: vendor + vendor: +-- +2.31.1 + diff --git a/SPECS/cas.spec b/SPECS/cas.spec new file mode 100644 index 0000000..d1e34a9 --- /dev/null +++ b/SPECS/cas.spec @@ -0,0 +1,50 @@ +Name: cas +Version: 1.0.3 +Release: 1%{?dist} +Summary: Community Attestation Service + +License: ASL 2.0 +URL: https://github.com/codenotary/cas +Source0: https://github.com/codenotary/cas/archive/refs/tags/v%{version}.tar.gz +Patch0: 0001-Remove-dev-from-cas-version.patch + +BuildRequires: make golang +BuildRequires: git-core + +%description +Give any digital asset a meaningful, globally-unique, immutable identity +that is authentic, verifiable, traceable from anywhere. + +# workaround for missing GCC builid +%global _missing_build_ids_terminate_build 0 +%global debug_package %{nil} + +%prep +%setup -q +%patch0 -p1 + +%build +make +make docs/cmd + +%install +mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1 +install -p -m 755 %{name} %{buildroot}%{_bindir} +install -p -m 644 docs/man/*.1 %{buildroot}%{_mandir}/man1 + +%clean +rm -rf %{buildroot} + +%files +%{_bindir}/cas +%{_mandir}/man1/*.1.gz + +%doc README.md CONTRIBUTING.md CHANGELOG.md +%license LICENSE + +%changelog +* Fri Nov 11 2022 Sofia Boldyreva 1.0.3-1 +- Updated to 1.0.3 + +* Fri Oct 29 2021 simone 1.0.0-1 +- Initial version of the package