blob: 9cd86eb3c2549b3ef626d46c6fb876ad7b61313e (
plain)
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
|
Name: isosm3sum
Version: 1.0.0
Release: 1
Summary: Utilities for working with sm3sum implanted in ISO images
License: GPL-2.0
URL: https://github.com/reganhe-x/%{name}
Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.bz2
BuildRequires: cmake make gcc-c++ popt-devel pkgconfig(python3-embed) genisoimage
%description
%{name} provides a way of making use of the ISO9660 application data
area to store sm3sum data about the iso. This allows you to check the
iso given nothing more than the iso itself.
%package devel
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
Development files for %{name}.
%package -n python3-py%{name}
Summary: Python bindings for %{name}
BuildRequires: python3-devel
%description -n python3-py%{name}
Python bindings for %{name}.
%prep
%autosetup
%build
%cmake -G 'Unix Makefiles' -B build .
%make_build -C build
%check
%make_build -C build test
%install
%make_install -C build
%files
%license LICENSE
%doc README.md
%{_bindir}/checkisosm3
%{_bindir}/implantisosm3
%{_mandir}/man1/checkisosm3.1*
%{_mandir}/man1/implantisosm3.1*
%files devel
%{_includedir}/libcheckisosm3.h
%{_includedir}/libimplantisosm3.h
%{_libdir}/libcheckisosm3-static.a
%{_libdir}/libimplantisosm3-static.a
%{_libdir}/pkgconfig/%{name}.pc
%files -n python3-pyisosm3sum
%license LICENSE
%doc README.md
%{python3_sitearch}/pyisosm3sum.so
%changelog
* Wed Sep 13 2023 raki007 <278366432@qq.com> - 1.0.0-1
- Initial package
|