File sha-2.spec of Package sha-2

#
# spec file for package sha-2
#
# Copyright (c) 2025 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/
#


%define commit 565f65009bdd98267361b17d50cddd7c9beb3e6c

Name:           sha-2
Version:        v0.0.1
Release:        2
Summary:		SHA-2 algorithm implementations
License:        Unlicense or 0BSD
URL:            https://github.com/amosnier/sha-2.git
Source0:        https://github.com/amosnier/sha-2/archive/%{commit}.tar.gz#/%{name}-%{version}.tar.gz
Source1:	   	meson.build
BuildRequires:  meson
BuildRequires:  gcc
BuildRequires:  pkgconfig

%description
SHA-2 algorithm implementations

%package devel
Summary:		Development files for sha-2 library
%description devel
Development files for sha-2 library

%prep
%setup -q -n %{name}-%{commit}
cp %{S:1} .

%build
%meson
%meson_build

%install
%meson_install

%files
%license LICENSE.md
%doc README.md
%{_libdir}/libsha256.so

%files devel
%{_libdir}/pkgconfig/sha256.pc
%{_includedir}/sha-256.h

%changelog

openSUSE Build Service is sponsored by