kmousetool-vl.spec 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. Name: kmousetool
  2. Summary: KDE
  3. Summary(ja): KDE 向けマウス用ツール
  4. Version: 4.11.1
  5. Release: 1%{?_dist_release}
  6. License: GPLv2
  7. Group: Applications/Accessories
  8. URL: http://www.kde.org/
  9. Source: 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: libXtst-devel
  14. %description
  15. MouseTool is a program that clicks the mouse for you.
  16. %prep
  17. %setup -q
  18. %build
  19. mkdir -p %{_target_platform}
  20. pushd %{_target_platform}
  21. %cmake \
  22. -DCMAKE_BUILD_TYPE=release \
  23. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  24. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  25. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  26. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  27. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  28. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  29. ..
  30. popd
  31. make %{?_smp_mflags} -C %{_target_platform}
  32. %install
  33. rm -rf $RPM_BUILD_ROOT
  34. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  35. pushd $RPM_BUILD_ROOT%{_docdir}/HTML/en/%{name}
  36. bunzip2 index.cache.bz2
  37. sed -i -e 's!<a name="id[0-9]*"></a>!!g' index.cache
  38. bzip2 -9 index.cache
  39. popd
  40. %check
  41. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  42. desktop-file-validate $f
  43. done
  44. %clean
  45. rm -rf $RPM_BUILD_ROOT
  46. %post
  47. /sbin/ldconfig
  48. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  49. %posttrans
  50. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  51. %postun
  52. /sbin/ldconfig
  53. if [ $1 -eq 0 ] ; then
  54. touch --no-create %{_datadir}/icons/hicolor &> /dev/null
  55. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null
  56. fi
  57. %files
  58. %defattr(-,root,root)
  59. %doc COPYING COPYING.DOC
  60. %{_bindir}/%{name}
  61. %{_datadir}/applications/kde4/%{name}.desktop
  62. %{_datadir}/icons/hicolor/*/*/*
  63. %{_datadir}/kde4/apps/%{name}
  64. %doc %{_docdir}/HTML/en/%{name}/
  65. %{_mandir}/man1/%{name}.1.gz
  66. %changelog
  67. * Sun Sep 08 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.11.1-1
  68. - new upstream release
  69. * Sat Jul 06 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.10.5-1
  70. - new upstream release
  71. * Thu Jan 03 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.5-1
  72. - new upstream release
  73. * Sat Nov 10 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.3-1
  74. - new upstream release
  75. * Sun Oct 07 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.2-1
  76. - new upstream release
  77. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  78. - new upstream release
  79. * Sat Aug 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  80. - initial build