rox-appdirgen-vl.spec 3.4 KB

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