okular-vl.spec 5.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224
  1. Name: okular
  2. Summary: A document viewer
  3. Summary(ja): 文章ビューア
  4. Version: 4.12.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: kactivities-devel >= %{version}
  21. BuildRequires: libkipi-devel >= %{version}
  22. BuildRequires: libspectre-devel
  23. BuildRequires: libtiff-devel
  24. BuildRequires: poppler-qt4-devel
  25. BuildRequires: qca2-devel
  26. BuildRequires: qimageblitz-devel
  27. BuildRequires: soprano-devel
  28. Requires: %{name}-libs = %{version}-%{release}
  29. Requires: kio_msits = %{version}-%{release}
  30. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  31. # when split occurred
  32. Conflicts: kdegraphics < 4.6.95-10
  33. Vendor: Project Vine
  34. Distribution: Vine Linux
  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. %build
  63. mkdir -p %{_target_platform}
  64. pushd %{_target_platform}
  65. %cmake \
  66. -DCMAKE_BUILD_TYPE=release \
  67. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  68. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  69. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  70. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  71. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  72. ..
  73. popd
  74. make %{?_smp_mflags} -C %{_target_platform}
  75. %install
  76. rm -rf $RPM_BUILD_ROOT
  77. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  78. %check
  79. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop
  80. %post
  81. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  82. %posttrans
  83. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  84. update-desktop-database -q &> /dev/null ||:
  85. %postun
  86. if [ $1 -eq 0 ] ; then
  87. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  88. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  89. update-desktop-database -q &> /dev/null ||:
  90. fi
  91. %post libs -p /sbin/ldconfig
  92. %postun libs -p /sbin/ldconfig
  93. %files
  94. %doc COPYING
  95. %{_bindir}/%{name}*
  96. %{_datadir}/kde4/apps/%{name}/
  97. %{_datadir}/applications/kde4/%{name}.desktop
  98. %{_datadir}/applications/kde4/%{name}Application_*.desktop
  99. %{_datadir}/applications/kde4/active-documentviewer_*.desktop
  100. %{_datadir}/config.kcfg/*.kcfg
  101. %{_datadir}/kde4/services/lib%{name}Generator*.desktop
  102. %{_datadir}/kde4/services/%{name}[A-Z]*.desktop
  103. %{_datadir}/icons/hicolor/*/*/*
  104. %{_datadir}/doc/HTML/en/%{name}/
  105. %{_libdir}/kde4/%{name}Generator*.so
  106. %{_datadir}/kde4/services/%{name}_part.desktop
  107. %{_datadir}/kde4/servicetypes/%{name}Generator.desktop
  108. %{_libdir}/kde4/%{name}part.so
  109. %{_libdir}/kde4/imports/org/kde/okular
  110. %{_datadir}/kde4/apps/kconf_update/okular.upd
  111. %{_mandir}/man1/okular.1.gz
  112. %files devel
  113. %{_includedir}/kde4/okular/
  114. %{_libdir}/libokularcore.so
  115. %{_libdir}/cmake/Okular/
  116. %files libs
  117. %{_libdir}/libokularcore.so.*
  118. %files -n kio_msits
  119. %{_libdir}/kde4/kio_msits.so
  120. %{_datadir}/kde4/services/msits.protocol
  121. %changelog
  122. * Tue May 06 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.5-1
  123. - new upstream release
  124. * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
  125. - new upstream release
  126. * Mon Dec 23 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
  127. - new upstream release
  128. * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  129. - new upstream release
  130. * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
  131. - new upstream release
  132. - add BuildRequires: kactivities-devel
  133. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  134. - new upstream release
  135. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  136. - new upstream release
  137. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  138. - new upstream release
  139. * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-2
  140. - rebuild with poppler-0.20.4
  141. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  142. - new upstream release
  143. * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  144. - new upstream release
  145. - remove Patch54 (kdegraphics-4.6.90-okular-landscape.patch)
  146. * Sun Dec 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1
  147. - new upstream release
  148. * Tue Oct 25 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1
  149. - new upstream release
  150. * Tue Aug 2 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
  151. - Initial build for Vine Linux
  152. * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
  153. - 4.7.0
  154. * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-4
  155. - %%postun: +update-desktop-database
  156. * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-3
  157. - BR: pkgconfig(qca2)
  158. * Fri Jul 15 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-2
  159. - bump release
  160. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
  161. - 4.6.95
  162. - fix URL
  163. * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3
  164. - fix Source URL
  165. - Conflicts: kdegraphics < 7:4.6.90-10
  166. * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
  167. - first try