kruler-vl.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. Name: kruler
  2. Summary: A screen ruler and color measurement tool
  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/kruler
  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: kdelibs4-devel >= %{version}
  13. BuildRequires: qimageblitz-devel
  14. Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}}
  15. # when split occurred
  16. Conflicts: kdegraphics < 4.6.95-10
  17. %description
  18. %{summary}.
  19. %prep
  20. %setup -q
  21. %build
  22. mkdir -p %{_target_platform}
  23. pushd %{_target_platform}
  24. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  25. %cmake \
  26. -DCMAKE_BUILD_TYPE=release \
  27. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  28. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  29. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  30. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  31. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  32. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  33. ..
  34. popd
  35. make %{?_smp_mflags} -C %{_target_platform}
  36. %install
  37. rm -rf $RPM_BUILD_ROOT
  38. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  39. ## unpackaged files
  40. rm -fv $RPM_BUILD_ROOT%{_libdir}/libkolourpaint_lgpl.so
  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. %doc TODO
  56. %{_bindir}/%{name}
  57. %{_datadir}/kde4/apps/%{name}/
  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