File cloc.spec of Package cloc

#
# spec file for package cloc
#
# Copyright (c) 2020 SUSE LLC
#
# 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 https://bugs.opensuse.org/
#


Name:           cloc
Version:        2.00
Release:        0
Summary:        Count lines of code
License:        GPL-2.0-or-later
Group:          Development/Tools/Other
URL:            https://github.com/AlDanial/cloc
Source:         https://github.com/AlDanial/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  perl
BuildRequires:  perl-macros
BuildRequires:  perl(Algorithm::Diff)
BuildRequires:  perl(Digest::MD5)
BuildRequires:  perl(Parallel::ForkManager)
BuildRequires:  perl(Regexp::Common)
# They are not automatically discovered.
Requires:       perl(Algorithm::Diff)
Requires:       perl(Digest::MD5)
Requires:       perl(Parallel::ForkManager)
Requires:       perl(Regexp::Common)
BuildArch:      noarch

%description
A tool to count blank lines, comment lines, and physical lines of source code
in many programming languages.

%prep
%setup -q -n %{name}-%{version}/Unix
sed -i 's|#!%{_bindir}/env perl|#!%{_bindir}/perl|' %{name}

%build
%make_build

%install
%make_install

%files
%license COPYING
%doc AUTHORS NEWS README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}

%changelog
openSUSE Build Service is sponsored by