okular-vl.spec 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221
  1. Name: okular
  2. Summary: A document viewer
  3. Summary(ja): 文章ビューア
  4. Version: 4.12.2
  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. * Sun Feb 09 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.12.2-1
  123. - new upstream release
  124. * Mon Dec 23 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.4-1
  125. - new upstream release
  126. * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  127. - new upstream release
  128. * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
  129. - new upstream release
  130. - add BuildRequires: kactivities-devel
  131. * Fri Jan 04 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  132. - new upstream release
  133. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  134. - new upstream release
  135. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  136. - new upstream release
  137. * Sun Sep 30 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-2
  138. - rebuild with poppler-0.20.4
  139. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  140. - new upstream release
  141. * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  142. - new upstream release
  143. - remove Patch54 (kdegraphics-4.6.90-okular-landscape.patch)
  144. * Sun Dec 18 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.4-1
  145. - new upstream release
  146. * Tue Oct 25 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.2-1
  147. - new upstream release
  148. * Tue Aug 2 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
  149. - Initial build for Vine Linux
  150. * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
  151. - 4.7.0
  152. * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-4
  153. - %%postun: +update-desktop-database
  154. * Mon Jul 18 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-3
  155. - BR: pkgconfig(qca2)
  156. * Fri Jul 15 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-2
  157. - bump release
  158. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
  159. - 4.6.95
  160. - fix URL
  161. * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-3
  162. - fix Source URL
  163. - Conflicts: kdegraphics < 7:4.6.90-10
  164. * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
  165. - first try