kmag-vl.spec 2.8 KB

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