okular-vl.spec 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200
  1. Name: okular
  2. Summary: A document viewer
  3. Summary(ja): 文章ビューア
  4. Version: 4.9.5
  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.xz
  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. BuildRequires: chmlib-devel
  16. BuildRequires: desktop-file-utils
  17. BuildRequires: djvulibre-devel
  18. BuildRequires: ebook-tools-devel
  19. BuildRequires: kdelibs4-devel >= %{version}
  20. BuildRequires: libkipi-devel >= %{version}
  21. BuildRequires: libspectre-devel
  22. BuildRequires: libtiff-devel
  23. BuildRequires: poppler-qt4-devel
  24. BuildRequires: qca2-devel
  25. BuildRequires: qimageblitz-devel
  26. BuildRequires: soprano-devel
  27. Requires: %{name}-libs = %{version}-%{release}
  28. Requires: kio_msits = %{version}-%{release}
  29. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  30. # when split occurred
  31. Conflicts: kdegraphics < 4.6.95-10
  32. %description
  33. %{summary}.
  34. %package devel
  35. Summary: Development files for %{name}
  36. Summary(ja): %{name} の開発用ファイル
  37. Group: Development/Libraries
  38. Requires: %{name}-libs = %{version}-%{release}
  39. Requires: kdelibs4-devel
  40. %description devel
  41. %{summary}.
  42. %package libs
  43. Summary: Runtime files for %{name}
  44. Summary(ja): %{name} のランタイムライブラリ
  45. Group: System Environment/Libraries
  46. #Requires: %{name} = %{version}-%{release}
  47. %description libs
  48. %{summary}.
  49. %package -n kio_msits
  50. #Epoch: %{kio_msits_epoch}
  51. Summary: A kioslave for displaying WinHelp files
  52. Group: System Environment/Libraries
  53. %description -n kio_msits
  54. %{summary}.
  55. %prep
  56. %setup -q
  57. %patch50 -p2 -b .okular_dt
  58. %patch51 -p2 -b .OkularConfig
  59. %build
  60. mkdir -p %{_target_platform}
  61. pushd %{_target_platform}
  62. %cmake \
  63. -DCMAKE_BUILD_TYPE=release \
  64. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  65. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  66. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  67. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  68. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  69. ..
  70. popd
  71. make %{?_smp_mflags} -C %{_target_platform}
  72. %install
  73. rm -rf $RPM_BUILD_ROOT
  74. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  75. %check
  76. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop
  77. %post
  78. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  79. %posttrans
  80. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  81. update-desktop-database -q &> /dev/null ||:
  82. %postun
  83. if [ $1 -eq 0 ] ; then
  84. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  85. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  86. update-desktop-database -q &> /dev/null ||:
  87. fi
  88. %post libs -p /sbin/ldconfig
  89. %postun libs -p /sbin/ldconfig
  90. %files
  91. %doc COPYING
  92. %{_bindir}/%{name}*
  93. %{_datadir}/kde4/apps/%{name}/
  94. %{_datadir}/applications/kde4/%{name}.desktop
  95. %{_datadir}/applications/kde4//%{name}Application_*.desktop
  96. %{_datadir}/config.kcfg/*.kcfg
  97. %{_datadir}/kde4/services/lib%{name}Generator*.desktop
  98. %{_datadir}/kde4/services/%{name}[A-Z]*.desktop
  99. %{_datadir}/icons/hicolor/*/*/*
  100. %{_datadir}/doc/HTML/en/%{name}/
  101. %{_libdir}/kde4/%{name}Generator*.so
  102. %{_datadir}/kde4/services/%{name}_part.desktop
  103. %{_datadir}/kde4/servicetypes/%{name}Generator.desktop
  104. %{_libdir}/kde4/%{name}part.so
  105. %files devel
  106. %{_includedir}/kde4/okular/
  107. %{_libdir}/libokularcore.so
  108. %{_libdir}/cmake/Okular/
  109. %files libs
  110. %{_libdir}/libokularcore.so.1*
  111. %files -n kio_msits
  112. %{_libdir}/kde4/kio_msits.so
  113. %{_datadir}/kde4/services/msits.protocol
  114. %changelog
  115. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  116. - new upstream release
  117. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  118. - new upstream release
  119. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  120. - new upstream release
  121. * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-2
  122. - rebuild with poppler-0.20.4
  123. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  124. - new upstream release
  125. * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  126. - new upstream release
  127. - remove Patch54 (kdegraphics-4.6.90-okular-landscape.patch)
  128. * Sun Dec 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1
  129. - new upstream release
  130. * Tue Oct 25 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1
  131. - new upstream release
  132. * Tue Aug 2 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
  133. - Initial build for Vine Linux
  134. * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
  135. - 4.7.0
  136. * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-4
  137. - %%postun: +update-desktop-database
  138. * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-3
  139. - BR: pkgconfig(qca2)
  140. * Fri Jul 15 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-2
  141. - bump release
  142. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
  143. - 4.6.95
  144. - fix URL
  145. * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3
  146. - fix Source URL
  147. - Conflicts: kdegraphics < 7:4.6.90-10
  148. * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
  149. - first try