rox-appdirgen-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. %define appsdir %{_datadir}/rox-filer
  2. %define dsktopentdir %{_datadir}/applications
  3. Summary: rox appdir generator
  4. Name: rox-appdirgen
  5. Version: 0.5.0
  6. Release: 2%{?_dist_release}
  7. Source0: %{name}-%{version}.tar.bz2
  8. License: GPL
  9. Group: User Interface/Desktops
  10. URL: http://add10.hp.infoseek.co.jp/rox/
  11. Vendor: Project Vine
  12. Distribution: Vine Linux
  13. BuildRoot: %{_tmppath}/%{name}-buildroot
  14. BuildArch: noarch
  15. Requires: rox-filer bash diffutils patch nkf tree coreutils
  16. %description
  17. ROX Application directory generator.
  18. %description -l ja
  19. ROX用 アプリケーションディレクトリ・ジェネレータ
  20. %prep
  21. %setup -q
  22. %build
  23. %install
  24. %__rm -rf %{buildroot}
  25. %__mkdir -p %{buildroot}%{appsdir}
  26. %__cp -a %{_builddir}/%{name}-%{version}/ROX-AppDirGen %{buildroot}%{appsdir}/
  27. %__mkdir -p %{buildroot}%{_bindir}
  28. %__install -m 755 %{_builddir}/%{name}-%{version}/appdirgen %{buildroot}%{_bindir}/
  29. %__ln_s %{_bindir}/appdirgen %{buildroot}%{_bindir}/rox-appdirgen
  30. %__mkdir -p %{buildroot}%{dsktopentdir}
  31. %__install -m 644 %{_builddir}/%{name}-%{version}/AppDirGen.desktop %{buildroot}%{dsktopentdir}/
  32. %post
  33. if [ -d /usr/apps ]; then
  34. if [ ! -f /usr/apps/* ]; then
  35. rmdir /usr/apps 2> /dev/null
  36. fi
  37. fi
  38. local_lang=`echo $LANG | grep ja_JP`
  39. if ! [ -z "$local_lang" ]; then
  40. l_lang=`echo $LANG | grep ja_JP | cut -d '.' -f 2`
  41. case $l_lang in
  42. UTF-8)
  43. nkfopt="-w"
  44. ;;
  45. eucJP)
  46. nkfopt="-e"
  47. ;;
  48. esac
  49. fi
  50. cat << EOF | nkf $nkfopt
  51. rox-appdirgen がインストール/アップグレードされました。
  52. 運用に際しては /usr/share/rox-filer/ROX-AppDirGen をクリックし、表示される
  53. ターミナル上の指示に従ってください。
  54. (詳細は /usr/share/rox-filer/ROX-AppDirGen の右クリック - '使い方を見る'
  55. を実行して、各ドキュメントをご覧下さい)
  56. EOF
  57. %clean
  58. rm -rf %{buildroot}
  59. %files
  60. %defattr(-,root,root)
  61. %{_bindir}/*
  62. %{appsdir}/*
  63. %{dsktopentdir}/*
  64. %changelog
  65. * Sun Jan 22 2012 TANAKA hiroaki <mosaicist@par.odn.ne.jp> 0.5.0-2
  66. - ROX-Filer maintenance team OKATANA(KATO Masashi, TANAKA hiroaki)
  67. - rebuild by rpm-4.8
  68. * Sat Sep 12 2009 KATO Masashi <mkato@par.odn.ne.jp> 0.5.0-1
  69. - ROX-Filer maintenance team OKATANA(KATO Masashi, TANAKA hiroaki)
  70. - source update
  71. - changed system directory to /usr/share/rox-filer
  72. * Tue Jul 22 2008 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 0.4.8-1
  73. - source update
  74. - added switch function of category folder mode.
  75. - "application directory" or "normal directory"
  76. - updated document files
  77. - manual.html, tutorial.html
  78. - bug fix:
  79. - deleted unnecessary exit code(ROX-AppDirGen/AppRun)
  80. * Sat Jul 19 2008 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 0.4.8-1
  81. - source update
  82. - rewrited install-script(ROX-AppDirGen/AppRun)
  83. - added startup message(START)
  84. - rewrited document files
  85. - README.first, REQUIREMENT, manual.html
  86. - added requirement(tree package)
  87. * Wed Jul 16 2008 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 0.4.7-1
  88. - added menu item
  89. - '-r': browse documents
  90. - added new document(tutolial.html)
  91. - added new icon path(AppDirGen/AppsGen: "$HOME/.icons/AppIcons/")
  92. * Sun Jul 13 2008 OKATANA <mkato@par.odn.ne.jp,mosaicist@par.odn.ne.jp> 0.4.6-1
  93. - initial package