flasm-vl.spec 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. %define name flasm
  2. %define version 1.62
  3. %define release 1%{?_dist_release}
  4. Summary: Flash bytecode assembler/disassembler
  5. Summary(ja): Flash バイトコード アセンブラ/逆アセンブラ
  6. Name: %{name}
  7. Version: %{version}
  8. Release: %{release}
  9. License: BSD-like
  10. Group: Development/Tools
  11. URL: http://www.nowrap.de/flasm.html
  12. Source0: http://www.nowrap.de/download/flasm162src.zip
  13. Source1: http://shield.jp/~dseg/rpms/flasm/flasm.1.gz
  14. Patch0: flasm-1.62-midrule.patch
  15. #Requires:
  16. BuildRequires: unzip
  17. BuildRequires: bison
  18. BuildRequires: flex
  19. BuildRequires: gperf
  20. BuildRequires: zlib-devel
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. %description
  25. Flasm is a free command line assembler/disassembler of Flash ActionScript
  26. bytecode. It lets you make changes to any SWF. Flasm fully supports SWFs
  27. produced by Macromedia Flash 8 and earlier Flash versions.
  28. %description -l ja
  29. Flasm は Flash ActionScript バイトコードのフリーなコマンドライン
  30. アセンブラ/逆アセンブラです。
  31. Flasm によって任意の SWF に変更を加えられます。
  32. Flasm は Macromedia Flash 8 とそれよりも早期の Flash のバージョンによって
  33. 生成された SWF を完全にサポートします。
  34. %prep
  35. %setup -q -c
  36. %patch0 -p1 -b .midrule
  37. # cleanup perms and end of lines
  38. chmod -x *.TXT assembler.flex assembler.y *.c *.h *.ini Makefile \
  39. keywords.gperf logo.gif classic.css flasm.html
  40. # Remove dos end of lines and convert to utf8
  41. %__sed -i 's/\r//' *.TXT classic.css %{name}.html %{name}.ini
  42. # man page associated with another flasm rpm
  43. %__gzip -cd %{SOURCE1} > %{name}.1
  44. %build
  45. # __make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS"
  46. %__make CFLAGS="$RPM_OPT_FLAGS"
  47. %install
  48. %__rm -rf %{buildroot}
  49. %__install -p -m 0755 -D %{name} %{buildroot}%{_bindir}/%{name}
  50. %__install -p -D %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
  51. %clean
  52. %__rm -rf %{buildroot}
  53. %files
  54. %defattr(-,root,root,-)
  55. %attr(0755,root,root)
  56. %{_bindir}/%{name}
  57. %doc *.TXT classic.css %{name}.html %{name}.ini logo.gif
  58. %{_mandir}/man1/%{name}.1*
  59. %changelog
  60. * Fri Jul 10 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 1.62-1
  61. - applied new versioning policy and spec in utf8
  62. - added BuildRequires: unzip
  63. - applied flasm-1.62-midrule.patch
  64. for new bison, give type for $$ in midrule from Fedora development package
  65. - translated %%description -l ja
  66. - changed to %%defattr(-,root,root,-) in %%files
  67. * Wed Jun 27 2007 Atsushi SHICHI <ats777@gmail.com> 1.62-0vl2
  68. - fix permissions of docs.
  69. * Thu Jun 21 2007 Atsushi SHICHI <ats777@gmail.com> 1.62-0vl1
  70. - initial build for Vine Linux 4.1. Thanks to Daichi Shinozaki.
  71. # end of file