kmag-vl.spec 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. Name: kmag
  2. Summary: KDE screen magnifier
  3. Summary(ja): KDE 向けスクリーン拡大鏡
  4. Version: 4.9.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. %description
  14. kmag is a screen magnifier.
  15. %prep
  16. %setup -q
  17. %build
  18. mkdir -p %{_target_platform}
  19. pushd %{_target_platform}
  20. %cmake \
  21. -DCMAKE_BUILD_TYPE=release \
  22. -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
  23. -DDATA_INSTALL_DIR:PATH=%{_datadir}/kde4/apps \
  24. -DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/kde4 \
  25. -DLIB_INSTALL_DIR:PATH=%{_libdir} \
  26. -DLIBEXEC_INSTALL_DIR:PATH=%{_libexecdir}/kde4 \
  27. -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
  28. ..
  29. popd
  30. make %{?_smp_mflags} -C %{_target_platform}
  31. %install
  32. rm -rf $RPM_BUILD_ROOT
  33. make install/fast DESTDIR=$RPM_BUILD_ROOT -C %{_target_platform}
  34. pushd $RPM_BUILD_ROOT%{_docdir}/HTML/en/%{name}
  35. bunzip2 index.cache.bz2
  36. sed -i -e 's!<a name="id[0-9]*"></a>!!g' index.cache
  37. bzip2 -9 index.cache
  38. popd
  39. %check
  40. for f in $RPM_BUILD_ROOT%{_datadir}/applications/kde4/*.desktop ; do
  41. desktop-file-validate $f
  42. done
  43. %clean
  44. rm -rf $RPM_BUILD_ROOT
  45. %post
  46. /sbin/ldconfig
  47. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  48. %posttrans
  49. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  50. %postun
  51. /sbin/ldconfig
  52. if [ $1 -eq 0 ] ; then
  53. touch --no-create %{_datadir}/icons/hicolor &> /dev/null
  54. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null
  55. fi
  56. %files
  57. %defattr(-,root,root)
  58. %doc COPYING COPYING.DOC
  59. %{_bindir}/%{name}
  60. %{_datadir}/applications/kde4/%{name}.desktop
  61. %{_datadir}/icons/hicolor/*/*/*
  62. %{_datadir}/kde4/apps/%{name}
  63. %doc %{_docdir}/HTML/en/%{name}/
  64. %{_mandir}/man1/%{name}.1.gz
  65. %changelog
  66. * Thu Sep 06 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.1-1
  67. - new upstream release
  68. * Sat Aug 11 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.9.0-1
  69. - initial build