okular-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186
  1. Name: okular
  2. Summary: A document viewer
  3. Summary(ja): 文章ビューア
  4. Version: 4.7.4
  5. Release: 1%{?_dist_release}
  6. License: GPLv2
  7. Group: Applications/Publishing
  8. URL: https://projects.kde.org/projects/kde/kdegraphics/okular
  9. Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.bz2
  10. ## upstreamable patches
  11. # okular.desktop : Categories=-Office,+VectorGraphics (http://bugzilla.redhat.com/591089)
  12. Patch50: kdegraphics-4.5.1-okular_dt.patch
  13. # don't hardcode paths in OkularConfig.cmake
  14. Patch51: kdegraphics-4.5.80-OkularConfig-dont-hardcode-paths.patch
  15. # fix printing of landscape documents in Okular (#509645, kde#181290)
  16. # https://git.reviewboard.kde.org/r/101513/
  17. Patch54: kdegraphics-4.6.90-okular-landscape.patch
  18. BuildRequires: chmlib-devel
  19. BuildRequires: desktop-file-utils
  20. BuildRequires: djvulibre-devel
  21. BuildRequires: ebook-tools-devel
  22. BuildRequires: kdelibs4-devel >= %{version}
  23. BuildRequires: libkipi-devel >= %{version}
  24. BuildRequires: libspectre-devel
  25. BuildRequires: libtiff-devel
  26. BuildRequires: poppler-qt4-devel
  27. BuildRequires: qca2-devel
  28. BuildRequires: qimageblitz-devel
  29. BuildRequires: soprano-devel
  30. Requires: %{name}-libs = %{version}-%{release}
  31. Requires: kio_msits = %{version}-%{release}
  32. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  33. # when split occurred
  34. Conflicts: kdegraphics < 4.6.95-10
  35. %description
  36. %{summary}.
  37. %package devel
  38. Summary: Development files for %{name}
  39. Summary(ja): %{name} の開発用ファイル
  40. Group: Development/Libraries
  41. Requires: %{name}-libs = %{version}-%{release}
  42. Requires: kdelibs4-devel
  43. %description devel
  44. %{summary}.
  45. %package libs
  46. Summary: Runtime files for %{name}
  47. Summary(ja): %{name} のランタイムライブラリ
  48. Group: System Environment/Libraries
  49. #Requires: %{name} = %{version}-%{release}
  50. %description libs
  51. %{summary}.
  52. %package -n kio_msits
  53. #Epoch: %{kio_msits_epoch}
  54. Summary: A kioslave for displaying WinHelp files
  55. Group: System Environment/Libraries
  56. %description -n kio_msits
  57. %{summary}.
  58. %prep
  59. %setup -q
  60. %patch50 -p2 -b .okular_dt
  61. %patch51 -p2 -b .OkularConfig
  62. %patch54 -p2 -b .okular-landscape
  63. %build
  64. mkdir -p %{_target_platform}
  65. pushd %{_target_platform}
  66. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  67. %cmake \
  68. -DCMAKE_BUILD_TYPE=release \
  69. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  70. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  71. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  72. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  73. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  74. ..
  75. popd
  76. make %{?_smp_mflags} -C %{_target_platform}
  77. %install
  78. rm -rf $RPM_BUILD_ROOT
  79. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  80. %check
  81. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop
  82. %post
  83. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  84. %posttrans
  85. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  86. update-desktop-database -q &> /dev/null ||:
  87. %postun
  88. if [ $1 -eq 0 ] ; then
  89. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  90. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  91. update-desktop-database -q &> /dev/null ||:
  92. fi
  93. %post libs -p /sbin/ldconfig
  94. %postun libs -p /sbin/ldconfig
  95. %files
  96. %doc COPYING
  97. %{_bindir}/%{name}*
  98. %{_datadir}/kde4/apps/%{name}/
  99. %{_datadir}/applications/kde4/%{name}.desktop
  100. %{_datadir}/applications/kde4//%{name}Application_*.desktop
  101. %{_datadir}/config.kcfg/*.kcfg
  102. %{_datadir}/kde4/services/lib%{name}Generator*.desktop
  103. %{_datadir}/kde4/services/%{name}[A-Z]*.desktop
  104. %{_datadir}/icons/hicolor/*/*/*
  105. %{_datadir}/doc/HTML/en/%{name}/
  106. %{_libdir}/kde4/%{name}Generator*.so
  107. %{_datadir}/kde4/services/%{name}_part.desktop
  108. %{_datadir}/kde4/servicetypes/%{name}Generator.desktop
  109. %{_libdir}/kde4/%{name}part.so
  110. %files devel
  111. %{_includedir}/kde4/okular/
  112. %{_libdir}/libokularcore.so
  113. %{_libdir}/cmake/Okular/
  114. %files libs
  115. %{_libdir}/libokularcore.so.1*
  116. %files -n kio_msits
  117. %{_libdir}/kde4/kio_msits.so
  118. %{_datadir}/kde4/services/msits.protocol
  119. %changelog
  120. * Sun Dec 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1
  121. - new upstream release
  122. * Tue Oct 25 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1
  123. - new upstream release
  124. * Tue Aug 2 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
  125. - Initial build for Vine Linux
  126. * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
  127. - 4.7.0
  128. * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-4
  129. - %%postun: +update-desktop-database
  130. * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-3
  131. - BR: pkgconfig(qca2)
  132. * Fri Jul 15 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-2
  133. - bump release
  134. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
  135. - 4.6.95
  136. - fix URL
  137. * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3
  138. - fix Source URL
  139. - Conflicts: kdegraphics < 7:4.6.90-10
  140. * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
  141. - first try