ebook-tools-vl.spec 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. Name: ebook-tools
  2. Version: 0.1.1
  3. Release: 6%{?_dist_release}
  4. Summary: Tools for accessing and converting various ebook file formats
  5. Group: Applications/Publishing
  6. License: MIT
  7. URL: http://sourceforge.net/projects/%{name}
  8. Source0: http://prdownloads.sourceforge.net/sourceforge/ebook-tools/%{name}-%{version}.tar.gz
  9. Patch0: ebook-tools-0.1.1-rmhardcoded.patch
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: libxml2-devel
  12. BuildRequires: libzip-devel
  13. BuildRequires: cmake
  14. Requires: %{name}-libs = %{version}-%{release}
  15. %description
  16. Tools for accessing and converting various ebook file formats.
  17. %package devel
  18. Summary: Development files for %{name}
  19. Group: Development/Libraries
  20. Requires: %{name}-libs = %{version}-%{release}
  21. %description devel
  22. The %{name}-devel package contains libraries and header files for
  23. developing applications that use %{name}.
  24. %package libs
  25. Summary: Libraries for %{name}
  26. Group: System Environment/Libraries
  27. %description libs
  28. The %{name}-libs package contains libraries to be used by
  29. %{name} and others.
  30. %prep
  31. %setup -q
  32. %patch0 -p1
  33. %build
  34. mkdir build
  35. cd build
  36. CFLAGS="${CFLAGS:-%optflags}" \
  37. CXXFLAGS="${CXXFLAGS:-%optflags}" \
  38. FFLAGS="${FFLAGS:-%optflags}" \
  39. cmake \
  40. -DCMAKE_BUILD_TYPE=release \
  41. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  42. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  43. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
  44. -DDATA_INSTALL_DIR:PATH=%{_datadir} \
  45. ..
  46. make
  47. %install
  48. rm -rf %{buildroot}
  49. cd build
  50. make install DESTDIR=%{buildroot}
  51. #remove because it doesnt work without clit
  52. rm -f %{buildroot}%{_bindir}/lit2epub
  53. %clean
  54. rm -rf %{buildroot}
  55. %post libs -p /sbin/ldconfig
  56. %postun libs -p /sbin/ldconfig
  57. %files
  58. %defattr(-,root,root,-)
  59. %doc
  60. %{_bindir}/einfo
  61. %files devel
  62. %defattr(-,root,root,-)
  63. %{_libdir}/*.so
  64. %{_includedir}/*
  65. %files libs
  66. %defattr(-,root,root,-)
  67. %doc README LICENSE
  68. %{_libdir}/*.so.*
  69. %changelog
  70. * Sun Aug 30 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 0.1.1-6
  71. - Initial build for Vine Linux
  72. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-5
  73. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  74. * Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-5
  75. - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
  76. * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.1.1-4
  77. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  78. * Sat Jan 24 2009 John5342 <john5342 at, fedoraproject.org> 0.1.1-3
  79. - Actually remove lit2epub this time
  80. * Mon Dec 15 2008 John5342 <john5342 at, fedoraproject.org> 0.1.1-2
  81. - Removed lit2epub as it doesnt work without clit
  82. * Mon Dec 15 2008 John5342 <john5342 at, fedoraproject.org> 0.1.1-1
  83. - Initial package