ksnapshot-vl.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100
  1. Name: ksnapshot
  2. Summary: A screen capture utility
  3. Summary(ja): スクリーンショットを撮るためのツール
  4. Version: 4.7.0
  5. Release: 2%{?_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/unstable/%{version}/src/%{name}-%{version}.tar.bz2
  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. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  27. %cmake \
  28. -DCMAKE_BUILD_TYPE=release \
  29. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  30. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  31. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  32. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  33. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  34. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  35. ..
  36. popd
  37. make %{?_smp_mflags} -C %{_target_platform}
  38. %install
  39. rm -rf $RPM_BUILD_ROOT
  40. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  41. %check
  42. desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/kde4/%{name}.desktop
  43. %clean
  44. rm -rf $RPM_BUILD_ROOT
  45. %post
  46. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  47. %posttrans
  48. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  49. %postun
  50. if [ $1 -eq 0 ] ; then
  51. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  52. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  53. fi
  54. %files
  55. %{_bindir}/%{name}
  56. %{_bindir}/kbackgroundsnapshot
  57. %{_datadir}/dbus-1/interfaces/org.kde.ksnapshot.xml
  58. %{_datadir}/applications/kde4/%{name}.desktop
  59. %{_datadir}/icons/hicolor/*/*/*
  60. %{_docdir}/HTML/en/%{name}/
  61. %changelog
  62. * Mon Aug 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
  63. - Initial build for Vine Linux
  64. * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> 4.7.0-1
  65. - 4.7.0
  66. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
  67. - 4.6.95
  68. - fix URL
  69. * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
  70. - fix Source URL
  71. - Conflicts: kdegraphics < 7:4.6.90-10
  72. * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1
  73. - first try