Name: libmobi Version: 0.4 Release: 1%{?dist} Summary: library for handling Kindle (MOBI) formats of ebook documents License: LGPLv3 URL: https://github.com/bfabiszewski/libmobi Source0: https://github.com/bfabiszewski/libmobi/releases/download/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: libxml2-devel BuildRequires: zlib-devel %description Features: * reading and parsing: - some older text Palmdoc formats (pdb), - Mobipocket files (prc, mobi), - newer MOBI files including KF8 format (azw, azw3), - Replica Print files (azw4) * recreating source files using indices * reconstructing references (links and embedded) in html files * reconstructing source structure that can be fed back to kindlegen * reconstructing dictionary markup (orth, infl tags) * writing back loaded documents * metadata editing * handling encrypted documents %package tools Summary: libmobi CLI tools Requires: %{name}%{?_isa} = %{version}-%{release} %description tools This is the CLI tools for libmobi package. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %prep %autosetup %configure \ --disable-static \ --enable-encryption \ --with-libxml2 \ --with-zlib %build %make_build %install %make_install find %{buildroot}%{_libdir} -name '*.la' -delete -print %ldconfig_scriptlets %files %license COPYING %{_libdir}/%{name}.so.* %files tools %{_bindir}/mobi* %{_mandir}/man1/mobi*.1.gz %files devel %{_includedir}/* %{_libdir}/%{name}.so %{_libdir}/pkgconfig/%{name}.pc %changelog * Fri Jul 27 2018 Sergey Avseyev 0.4-1 - Initial import