Skip to content

Commit fccb609

Browse files
committed
Improve spec file
1 parent 024da09 commit fccb609

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

common/sslcli.spec

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@
44

55
################################################################################
66

7+
%global crc_check pushd ../SOURCES ; sha512sum -c %{SOURCE100} ; popd
8+
9+
################################################################################
10+
711
%define debug_package %{nil}
812

913
################################################################################
@@ -52,6 +56,8 @@ URL: https://kaos.sh/sslcli
5256

5357
Source0: https://source.kaos.st/%{name}/%{name}-%{version}.tar.bz2
5458

59+
Source100: checksum.sha512
60+
5561
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5662

5763
BuildRequires: golang >= 1.14
@@ -66,6 +72,8 @@ Pretty awesome command-line client for public SSLLabs API.
6672
################################################################################
6773

6874
%prep
75+
%{crc_check}
76+
6977
%setup -q
7078

7179
%build
@@ -76,6 +84,8 @@ go build src/github.com/essentialkaos/sslcli/%{name}.go
7684
rm -rf %{buildroot}
7785

7886
install -dm 755 %{buildroot}%{_bindir}
87+
install -dm 755 %{buildroot}%{_mandir}/man1
88+
7989
install -pm 755 %{name} %{buildroot}%{_bindir}/
8090

8191
./%{name} --generate-man > %{buildroot}%{_mandir}/man1/%{name}.1

0 commit comments

Comments
 (0)