summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-09-19 02:37:02 +0000
committerCoprDistGit <infra@openeuler.org>2023-09-19 02:37:02 +0000
commit0ece5b6c950c00ca40ee7be1cde019da1de84718 (patch)
treeedb70cae5c00a745712b2ebf287f7f7edc9516a5
parent02d537078d30e23fa08192448703d044e8c5710a (diff)
automatic import of isosm3sumopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--isosm3sum.spec66
-rw-r--r--sources1
3 files changed, 68 insertions, 0 deletions
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