ksnapshot-vl.spec 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. Name: ksnapshot
  2. Summary: A screen capture utility
  3. Summary(ja): スクリーンショットを撮るためのツール
  4. Version: 4.9.5
  5. Release: 1%{?_dist_release}
  6. License: GPLv2
  7. Group: Applications/Accessories
  8. URL: https://projects.kde.org/projects/kde/kdegraphics/ksnapshot
  9. Source0: ftp://ftp.kde.org/pub/kde/stable/%{version}/src/%{name}-%{version}.tar.xz
  10. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  11. BuildRequires: desktop-file-utils
  12. BuildRequires: exiv2-devel
  13. BuildRequires: kdelibs4-devel >= %{version}
  14. BuildRequires: libkipi-devel >= %{version}
  15. BuildRequires: libXfixes-devel
  16. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  17. # when split occurred
  18. Conflicts: kdegraphics < 4.6.95-10
  19. %description
  20. %{summary}.
  21. %prep
  22. %setup -q
  23. %build
  24. mkdir -p %{_target_platform}
  25. pushd %{_target_platform}
  26. %cmake \
  27. -DCMAKE_BUILD_TYPE=release \
  28. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  29. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  30. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  31. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  32. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  33. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  34. ..
  35. popd
  36. make %{?_smp_mflags} -C %{_target_platform}
  37. %install
  38. rm -rf $RPM_BUILD_ROOT
  39. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  40. %check
  41. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop
  42. %clean
  43. rm -rf $RPM_BUILD_ROOT
  44. %post
  45. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  46. %posttrans
  47. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  48. %postun
  49. if [ $1 -eq 0 ] ; then
  50. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  51. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  52. fi
  53. %files
  54. %{_bindir}/%{name}
  55. %{_bindir}/kbackgroundsnapshot
  56. %{_datadir}/dbus-1/interfaces/org.kde.ksnapshot.xml
  57. %{_datadir}/applications/kde4/%{name}.desktop
  58. %{_datadir}/icons/hicolor/*/*/*
  59. %{_docdir}/HTML/en/%{name}/
  60. %changelog
  61. * Sat Jan 05 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  62. - new upstream release
  63. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  64. - new upstream release
  65. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  66. - new upstream release
  67. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  68. - new upstream release
  69. * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  70. - new upstream release
  71. * Mon Aug 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
  72. - Initial build for Vine Linux
  73. * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
  74. - 4.7.0
  75. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
  76. - 4.6.95
  77. - fix URL
  78. * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
  79. - fix Source URL
  80. - Conflicts: kdegraphics < 7:4.6.90-10
  81. * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1
  82. - first try