# set this until when/if we port to new cmake macros %global __cmake_in_source_build 1 Name: ebook-tools Version: 0.2.2 Release: 23%{?dist} Summary: Tools for accessing and converting various ebook file formats License: MIT URL: http://sourceforge.net/projects/ebook-tools/ Source0: http://downloads.sourceforge.net/ebook-tools/%{name}-%{version}.tar.gz ## upstreamable patches # support libzip pkgconfig Patch51: ebook-tools-0.2.1-libzip_pkgconfig.patch BuildRequires: cmake BuildRequires: gcc BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(libzip) BuildRequires: make Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description Tools for accessing and converting various ebook file formats. %package devel Summary: Development files for %{name} Requires: %{name}-libs%{?_isa} = %{version}-%{release} %description devel The %{name}-devel package contains libraries and header files for developing applications that use %{name}. %package libs Summary: Libraries for %{name} %description libs The %{name}-libs package contains libraries to be used by %{name} and others. %prep %setup -q %patch51 -p1 -b .libzip_pkgconfig %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake} .. popd %{make_build} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} #remove because it doesnt work without clit rm -f %{buildroot}%{_bindir}/lit2epub %{ldconfig_scriptlets} %files %{_bindir}/einfo %files devel %{_libdir}/libepub.so %{_includedir}/epub*.h %files libs %doc README %license LICENSE %{_libdir}/libepub.so.0* %changelog * Thu Jul 21 2022 Fedora Release Engineering - 0.2.2-23 - Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild * Thu Jan 20 2022 Fedora Release Engineering - 0.2.2-22 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild * Wed Jul 21 2021 Fedora Release Engineering - 0.2.2-21 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild * Tue Jan 26 2021 Fedora Release Engineering - 0.2.2-20 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild * Tue Aug 11 2020 Rex Dieter - 0.2.2-19 - fix FTBFS * Sat Aug 01 2020 Fedora Release Engineering - 0.2.2-18 - Second attempt - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Mon Jul 27 2020 Fedora Release Engineering - 0.2.2-17 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild * Tue Jan 28 2020 Fedora Release Engineering - 0.2.2-16 - Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild * Wed Jul 24 2019 Fedora Release Engineering - 0.2.2-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild * Thu Jan 31 2019 Fedora Release Engineering - 0.2.2-14 - Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild * Thu Jul 12 2018 Fedora Release Engineering - 0.2.2-13 - Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * Tue Feb 20 2018 Rex Dieter - 0.2.2-12 - BR: gcc, .spec cleanup/cosmetics * Wed Feb 07 2018 Fedora Release Engineering - 0.2.2-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild * Wed Aug 02 2017 Fedora Release Engineering - 0.2.2-10 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.2.2-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Tue Feb 28 2017 Remi Collet - 0.2.2-8 - rebuild for new libzip * Fri Feb 10 2017 Fedora Release Engineering - 0.2.2-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Wed Feb 03 2016 Fedora Release Engineering - 0.2.2-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.2.2-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Wed May 06 2015 Remi Collet - 0.2.2-4 - rebuild for new libzip * Sat Aug 16 2014 Fedora Release Engineering - 0.2.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Sat Jun 07 2014 Fedora Release Engineering - 0.2.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Fri Oct 18 2013 John5342 0.2.2-1 - New upstream release (fixes rhbz:1014443) - Drop rmhardcoded (-DLIB_SUFFIX now supported directly) * Wed Aug 21 2013 Remi Collet - 0.2.1-5 - rebuild for new libzip * Sat Aug 03 2013 Fedora Release Engineering - 0.2.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild * Wed Feb 13 2013 Fedora Release Engineering - 0.2.1-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild * Wed Jul 18 2012 Fedora Release Engineering - 0.2.1-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Tue Jul 10 2012 Rex Dieter - 0.2.1-1 - ebook-tools-0.2.1 - pkgconfig-style deps - patch to support libzip pkgconfig dirs * Sat Feb 04 2012 Remi Collet - 0.2.0-4 - rebuild for new libzip * Fri Jan 13 2012 Fedora Release Engineering - 0.2.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Tue Feb 08 2011 Fedora Release Engineering - 0.2.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Thu Sep 09 2010 Rex Dieter - 0.2.0-1 - ebook-tools-0.2.0 - %%files: track lib soname - tighten subpkg deps with %%_isa * Fri Jul 24 2009 Fedora Release Engineering - 0.1.1-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Tue Feb 24 2009 Fedora Release Engineering - 0.1.1-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Sat Jan 24 2009 John5342 0.1.1-3 - Actually remove lit2epub this time * Mon Dec 15 2008 John5342 0.1.1-2 - Removed lit2epub as it doesnt work without clit * Mon Dec 15 2008 John5342 0.1.1-1 - Initial package