From 0ece5b6c950c00ca40ee7be1cde019da1de84718 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Tue, 19 Sep 2023 02:37:02 +0000 Subject: automatic import of isosm3sum --- .gitignore | 1 + isosm3sum.spec | 66 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 68 insertions(+) create mode 100644 isosm3sum.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..4e76f28 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/isosm3sum-1.0.0.tar.bz2 diff --git a/isosm3sum.spec b/isosm3sum.spec new file mode 100644 index 0000000..9cd86eb --- /dev/null +++ b/isosm3sum.spec @@ -0,0 +1,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 diff --git a/sources b/sources new file mode 100644 index 0000000..40f67a3 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +50a0e9932b23a27517bcec6ceabad729 isosm3sum-1.0.0.tar.bz2 -- cgit v1.2.3