File obs-gzip-go.spec of Package obs-gzip-go
#
# spec file for package obs-gzip-go
#
# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: obs-gzip-go
Version: 1
Release: 0
Summary: A little gzip tool written in go
License: SUSE-Public-Domain
Group: Productivity/Archiving/Compression
Source0: obs-gzip-go.go
Source1: obs-gzip-go.1
BuildRequires: golang-packaging
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
A little gzip implementation written in go. Reads from stdin and
writes to stdout.
%prep
%setup -c -T
cp -a %{SOURCE0} .
%build
go build obs-gzip-go.go
%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
cp -a obs-gzip-go $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man1
%files
%defattr(-,root,root)
%{_bindir}/obs-gzip-go
%{_mandir}/man1/obs-gzip-go*
%changelog