qcomicbook-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. Summary: qt viewer for comic book archives
  2. Summary(ja): 漫画本アーカイブ用 qt ビューア
  3. Name: qcomicbook
  4. Version: 0.9.0
  5. Release: 2%{?_dist_release}
  6. License: GPLv2
  7. Group: Applications/Graphics
  8. URL: http://qcomicbook.linux-projects.net/
  9. Source0: http://qcomicbook.linux-projects.net/releases/qcomicbook-%{version}.tar.gz
  10. Source1: qcomicbook_ja_JP.ts
  11. Patch0: qcomicbook_desktop.patch
  12. #Patch1: enable_ja_trans.patch
  13. BuildRequires: cmake >= 2.6.0
  14. BuildRequires: desktop-file-utils
  15. BuildRequires: libXi-devel
  16. BuildRequires: libXmu-devel
  17. BuildRequires: poppler-qt4-devel >= 0.12.4
  18. BuildRequires: qt4-devel >= 4.5.0
  19. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  20. %description
  21. QComicBook is a viewer for comic book archives: rar, cbr,
  22. zip, cbz, ace, cba,tar.gz, cbg, tar.bz2, cbb. QComicBook
  23. aims at convenience and simplicity. Features include:
  24. automatic decompression, full-screen mode, two pages mode,
  25. japanese mode, thumbnails view, page scaling and rotating,
  26. page preloading and caching, mouse or keyboard navigation,
  27. bookmarks etc.
  28. QComicBook requires zip/unzip, rar/unrar, tar with
  29. gzip+bzip2 support and unace to handle archives.
  30. %description -l ja
  31. QComicBook は 漫画本アーカイブ (rar, cbr,zip, cbz, ace, cba,
  32. tar.gz, cbg, tar.bz2, cbb) 向けのビューアです。
  33. QComicBook は利便性と簡便性を目指しています。
  34. 自動展開、全画面モード、見開きモード、サムネイルビュー、
  35. ページのスケーリングと回転、ページの先読みとキャッシング、
  36. マウスかキーボードによる操作、ブックマーク等の機能を含みます。
  37. QComicBook はアーカイブの展開に zip/unzip、rar/unrar、
  38. gzip+bzip2 を使用した tar の支援と unace を必要とします。
  39. %prep
  40. %setup -q
  41. %{__cp} -f %{SOURCE1} i18n/
  42. %patch0 -p1
  43. #%patch1 -p1
  44. %build
  45. %ifarch %{ix86}
  46. export QTDIR=/usr/lib/qt4
  47. %endif
  48. %ifarch x86_64
  49. export QTDIR=/usr/lib64/qt4
  50. %endif
  51. cmake . -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Release
  52. %{__make} %{?_smp_mflags}
  53. %install
  54. %{__rm} -rf ${RPM_BUILD_ROOT}
  55. %__make DESTDIR=%{buildroot} install
  56. desktop-file-install --vendor="" --delete-original \
  57. --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
  58. ${RPM_BUILD_ROOT}%{_datadir}/applications/%{name}.desktop
  59. %clean
  60. %{__rm} -rf ${RPM_BUILD_ROOT}
  61. %post
  62. update-desktop-database > /dev/null 2>&1 || :
  63. %postun
  64. update-desktop-database > /dev/null 2>&1 || :
  65. %files
  66. %defattr(-,root,root,-)
  67. %doc AUTHORS COPYING ChangeLog NEWS README THANKS
  68. %{_bindir}/%{name}
  69. %{_datadir}/applications/%{name}.desktop
  70. %{_datadir}/%{name}/i18n/
  71. %{_datadir}/pixmaps/
  72. %{_mandir}/man?/%{name}.1.gz
  73. %changelog
  74. * Sun Mar 30 2014 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.0-2
  75. - rebuilt with new toolchain
  76. * Sat Jun 09 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.9.0-1
  77. - new upstream release
  78. - recreated Patch0
  79. - updated Source1
  80. - deleted Patch1
  81. * Sun Apr 29 2012 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.2-2
  82. - added Source1 and Patch1 to enable Japanese translation
  83. - set conditional branch for architecture
  84. * Sun Nov 06 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.2-1
  85. - new upstream release
  86. * Fri Aug 19 2011 Toshiharu Kudoh <toshi.kd2@gmail.com> 0.8.1-1
  87. - initial build for Vine Linux