-
Notifications
You must be signed in to change notification settings - Fork 0
/
blkhash.spec.in
83 lines (64 loc) · 1.68 KB
/
blkhash.spec.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
# SPDX-FileCopyrightText: Red Hat Inc
# SPDX-License-Identifier: LGPL-2.1-or-later
Name: blkhash
Version: @VERSION@
Release: @RELEASE@%{?dist}
Summary: Compute disk image checksum
License: LGPLv2+
URL: https://gitlab.com/nirs/blkhash
# To create the tarball:
# git clone https://gitlab.com/nirs/blkhash.git
# cd blkhash
# meson build
# meson dist --include-subprojects -C build
Source: %{name}-%{version}.tar.xz
BuildRequires: asciidoc
BuildRequires: gcc
BuildRequires: libnbd-devel
BuildRequires: meson
BuildRequires: openssl-devel
BuildRequires: procps-ng
BuildRequires: python3-pytest
BuildRequires: qemu-img
# blake3 is available since fedora 38.
%if 0%{?fedora} >= 38
BuildRequires: blake3-devel
%endif
Requires: qemu-img
%description
This package provides the blksum command line tool and the %{name}
library for computing disk image checksum.
%package libs
Summary: Libraries for %{name}
%description libs
This package provides the %{name} library for computing disk image
checksum.
%package devel
Summary: Header files for %{name}
Requires: %{name}-libs = %{version}-%{release}
%description devel
This package provides the development headers for the %{name} library.
%prep
%autosetup
%build
%meson --auto-features=auto
%meson_build
%check
%meson_test
%install
%meson_install
%files
%license LICENSES/LGPL-2.1-or-later.txt
%{_bindir}/blksum
%{_mandir}/man1/blksum.1*
%files libs
%license LICENSES/LGPL-2.1-or-later.txt
%{_libdir}/lib%{name}.so.*
%files devel
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/%{name}_*.3*
%changelog
* Sat Oct 22 2022 Nir Soffer <[email protected]> - @VERSION@-@RELEASE@
- This is a copr build from git