2021-12-27 09:22:52 +00:00
|
|
|
#
|
|
|
|
# spec file for package libmobi
|
|
|
|
#
|
2024-07-08 11:03:33 +00:00
|
|
|
# Copyright (c) 2024 SUSE LLC
|
2021-12-27 09:22:52 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%define sover 0
|
|
|
|
Name: libmobi
|
2024-07-08 11:03:33 +00:00
|
|
|
Version: 0.12
|
2021-12-27 09:22:52 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for handling Kindle (MOBI) formats of ebook documents
|
|
|
|
License: LGPL-3.0-or-later
|
|
|
|
URL: https://github.com/bfabiszewski/libmobi
|
|
|
|
Source0: https://github.com/bfabiszewski/libmobi/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: automake
|
|
|
|
BuildRequires: libtool
|
2024-07-08 11:03:33 +00:00
|
|
|
BuildRequires: rpm >= 4.12
|
2021-12-27 09:22:52 +00:00
|
|
|
BuildRequires: pkgconfig(libxml-2.0)
|
|
|
|
BuildRequires: pkgconfig(zlib)
|
|
|
|
|
|
|
|
%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 -n %{name}%{sover}
|
|
|
|
Summary: Library for handling Kindle (MOBI) formats of ebook documents
|
|
|
|
|
|
|
|
%description -n %{name}%{sover}
|
|
|
|
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: CLI tools for libmobi
|
|
|
|
|
|
|
|
%description tools
|
|
|
|
This package contains the CLI tools for libmobi.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}%{sover}
|
|
|
|
Requires: %{name}%{sover} = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
|
|
|
%prep
|
2024-07-08 11:03:33 +00:00
|
|
|
%autosetup -p1
|
2021-12-27 09:22:52 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -vfi
|
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--enable-encryption \
|
|
|
|
--with-libxml2 \
|
|
|
|
--with-zlib
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%make_install
|
|
|
|
find %{buildroot} -type f -name "*.la" -delete -print
|
|
|
|
|
|
|
|
%post -n %{name}%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n %{name}%{sover} -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files -n %{name}%{sover}
|
|
|
|
%license COPYING
|
|
|
|
%{_libdir}/%{name}.so.%{sover}
|
|
|
|
%{_libdir}/%{name}.so.%{sover}.*
|
|
|
|
|
|
|
|
%files tools
|
2024-07-08 11:03:33 +00:00
|
|
|
%{_bindir}/mobidrm
|
2021-12-27 09:22:52 +00:00
|
|
|
%{_bindir}/mobimeta
|
|
|
|
%{_bindir}/mobitool
|
2024-07-08 11:03:33 +00:00
|
|
|
%{_mandir}/man1/mobidrm.1%{?ext_man}
|
2021-12-27 09:22:52 +00:00
|
|
|
%{_mandir}/man1/mobimeta.1%{?ext_man}
|
|
|
|
%{_mandir}/man1/mobitool.1%{?ext_man}
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%{_includedir}/mobi.h
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%{_libdir}/pkgconfig/%{name}.pc
|
|
|
|
|
|
|
|
%changelog
|