Looks like it is missing zlib dependency checkin.
/usr/bin/cmake -S/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2 -B/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu --check-build-system CMakeFiles/Makefile.cmake 0
/usr/bin/cmake -E cmake_progress_start /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu/CMakeFiles /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu//CMakeFiles/progress.marks
make -f CMakeFiles/Makefile2 all
make[1]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu'
make -f src/libepub/CMakeFiles/epub.dir/build.make src/libepub/CMakeFiles/epub.dir/depend
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu'
cd /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu && /usr/bin/cmake -E cmake_depends "Unix Makefiles" /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2 /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu/src/libepub /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu/src/libepub/CMakeFiles/epub.dir/DependInfo.cmake --color=
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu'
make -f src/libepub/CMakeFiles/epub.dir/build.make src/libepub/CMakeFiles/epub.dir/build
make[2]: Entering directory '/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu'
[ 12%] Building C object src/libepub/CMakeFiles/epub.dir/epub.o
cd /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu/src/libepub && /usr/bin/gcc -Depub_EXPORTS -I/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub -I/usr/include/libxml2 -Wall -W -Wno-long-long -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -Wshadow -fno-common -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -DNDEBUG -fPIC -MD -MT src/libepub/CMakeFiles/epub.dir/epub.o -MF CMakeFiles/epub.dir/epub.o.d -o CMakeFiles/epub.dir/epub.o -c /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub/epub.c
In file included from /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub/epub.c:2:
/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub/epublib.h:9:10: fatal error: zip.h: No such file or directory
9 | #include <zip.h>
| ^~~~~~~
compilation terminated.
make[2]: [src/libepub/CMakeFiles/epub.dir/build.make:79: src/libepub/CMakeFiles/epub.dir/epub.o] Error 1
[ 25%] Building C object src/libepub/CMakeFiles/epub.dir/ocf.o
cd /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu/src/libepub && /usr/bin/gcc -Depub_EXPORTS -I/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub -I/usr/include/libxml2 -Wall -W -Wno-long-long -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -Wshadow -fno-common -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -DNDEBUG -fPIC -MD -MT src/libepub/CMakeFiles/epub.dir/ocf.o -MF CMakeFiles/epub.dir/ocf.o.d -o CMakeFiles/epub.dir/ocf.o -c /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub/ocf.c
In file included from /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub/ocf.c:1:
/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub/epublib.h:9:10: fatal error: zip.h: No such file or directory
9 | #include <zip.h>
| ^~~~~~~
compilation terminated.
make[2]: </zip.h> [src/libepub/CMakeFiles/epub.dir/build.make:93: src/libepub/CMakeFiles/epub.dir/ocf.o] Error 1
[ 37%] Building C object src/libepub/CMakeFiles/epub.dir/opf.o
cd /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu/src/libepub && /usr/bin/gcc -Depub_EXPORTS -I/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub -I/usr/include/libxml2 -Wall -W -Wno-long-long -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -Wshadow -fno-common -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -DNDEBUG -fPIC -MD -MT src/libepub/CMakeFiles/epub.dir/opf.o -MF CMakeFiles/epub.dir/opf.o.d -o CMakeFiles/epub.dir/opf.o -c /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub/opf.c
In file included from /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub/opf.c:1:
/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub/epublib.h:9:10: fatal error: zip.h: No such file or directory
9 | #include <zip.h>
| ^~~~~~~
compilation terminated.
make[2]: [src/libepub/CMakeFiles/epub.dir/build.make:107: src/libepub/CMakeFiles/epub.dir/opf.o] Error 1
[ 50%] Building C object src/libepub/CMakeFiles/epub.dir/list.o
cd /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu/src/libepub && /usr/bin/gcc -Depub_EXPORTS -I/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub -I/usr/include/libxml2 -Wall -W -Wno-long-long -Wundef -Wcast-align -Werror-implicit-function-declaration -Wchar-subscripts -Wpointer-arith -Wwrite-strings -Wformat-security -Wmissing-format-attribute -Wshadow -fno-common -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -DNDEBUG -fPIC -MD -MT src/libepub/CMakeFiles/epub.dir/list.o -MF CMakeFiles/epub.dir/list.o.d -o CMakeFiles/epub.dir/list.o -c /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub/list.c
In file included from /home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub/list.c:1:
/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/src/libepub/epublib.h:9:10: fatal error: zip.h: No such file or directory
9 | #include <zip.h>
| ^~~~~~~
compilation terminated.
make[2]: </zip.h> [src/libepub/CMakeFiles/epub.dir/build.make:135: src/libepub/CMakeFiles/epub.dir/list.o] Error 1
make[2]: No rule to make target '/usr/lib64/libzip.so', needed by 'libs/libepub.so.0.2.1'.
make[2]: No rule to make target '/usr/lib64/libxml2.so', needed by 'libs/libepub.so.0.2.1'.
make[2]: Target 'src/libepub/CMakeFiles/epub.dir/build' not remade because of errors.
make[2]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu'
make[1]: [CMakeFiles/Makefile2:134: src/libepub/CMakeFiles/epub.dir/all] Error 2
make[1]: Target 'all' not remade because of errors.
make[1]: Leaving directory '/home/tkloczko/rpmbuild/BUILD/ebook-tools-0.2.2/x86_64-redhat-linux-gnu'
make: [Makefile:139: all] Error 2
make: Target 'default_target' not remade because of errors.</zip.h></zip.h>