kruler-vl.spec 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. Name: kruler
  2. Summary: A screen ruler and color measurement tool
  3. Summary(ja): スクリーン上で用いる定規、色測定ツール
  4. Version: 4.9.2
  5. Release: 1%{?_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/stable/%{version}/src/%{name}-%{version}.tar.xz
  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. %cmake \
  25. -DCMAKE_BUILD_TYPE=release \
  26. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  27. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  28. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  29. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  30. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  31. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  32. ..
  33. popd
  34. make %{?_smp_mflags} -C %{_target_platform}
  35. %install
  36. rm -rf $RPM_BUILD_ROOT
  37. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  38. ## unpackaged files
  39. rm -fv $RPM_BUILD_ROOT%{_libdir}/libkolourpaint_lgpl.so
  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. %doc TODO
  55. %{_bindir}/%{name}
  56. %{_datadir}/kde4/apps/%{name}/
  57. %{_datadir}/applications/kde4/%{name}.desktop
  58. %{_datadir}/icons/hicolor/*/*/*
  59. %{_docdir}/HTML/en/%{name}/
  60. %changelog
  61. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp 4.9.2-1
  62. - new upstream release
  63. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp 4.9.1-1
  64. - new upstream release
  65. * Sun Aug 12 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp 4.9.0-1
  66. - new upstream release
  67. * Mon Aug 22 2011 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 4.7.0-2
  68. - Initial build for Vine Linux
  69. * Tue Jul 26 2011 Jaroslav Reznik <jreznik@redhat.com> - 4.7.0-1
  70. - 4.7.0
  71. * Mon Jul 11 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.95-1
  72. - 4.6.95
  73. - fix URL
  74. * Wed Jul 06 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-2
  75. - fix Source URL
  76. - Conflicts: kdegraphics < 7:4.6.90-10
  77. * Tue Jul 05 2011 Rex Dieter <rdieter@fedoraproject.org> 4.6.90-1
  78. - first try