reganhe-x / isosm3sum

Utilities for working with sm3sum implanted in ISO images

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

isosm3sum

Utilities for working with sm3sum implanted in ISO images

isosm3sum 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.

Software implementation based on isomd5sum.

Build

Use the following command to compile:

cmake -G 'Unix Makefiles' -B build .
make -j$(nproc) -C build

Installation

Use the following command to install the compilation result into /path/to/you/dir:

make -C build install DESTDIR=/path/to/you/dir

Build rpm

Create the src.rpm with the following command:

make srpm -C build

You will see from the screen output, the path where the src.rpm file is stored:

Source RPM: /path/to/isosm3sum/build/SRPMS/isosm3sum-*-1.src.rpm

Now you can use the rpmbuild command to build out the rpm packages:

rpmbuild --rebuild /path/to/isosm3sum/build/SRPMS/isosm3sum-*-1.src.rpm

If you want to execute unit tests during the build process, add the parameter "--with tests":

rpmbuild --rebuild /path/to/isosm3sum/build/SRPMS/isosm3sum-*-1.src.rpm --with tests

About

Utilities for working with sm3sum implanted in ISO images

License:GNU General Public License v2.0


Languages

Language:C 82.9%Language:CMake 9.3%Language:Python 5.0%Language:Shell 2.8%