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