]>
Commit | Line | Data |
---|---|---|
11dfa751 | 1 | Summary: Translator of the AWK programming language to ANSI-C |
28636a46 | 2 | Summary(pl.UTF-8): Konwerter programów w języku AWK na programy w języku C |
634ce6dc | 3 | Name: awka |
f9d8ef19 | 4 | Version: 0.7.4 |
9b5f0686 | 5 | Release: 4 |
634ce6dc | 6 | License: GPL |
7c3408e0 | 7 | Group: Applications/Text |
f9d8ef19 | 8 | Source0: http://awka.sourceforge.net/%{name}-%{version}.tar.gz |
e78310a6 | 9 | # Source0-md5: 80da40555d79d78cf96d8e3a03e1b94f |
f8577090 | 10 | Patch0: %{name}-DESTDIR.patch |
11 | URL: http://awka.sourceforge.net/ | |
9b5f0686 | 12 | BuildRequires: perl-base |
634ce6dc | 13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
15 | %description | |
16 | Awka comprises a translator of the AWK programming language to ANSI-C, | |
17 | and a library against which translated programs may be linked. | |
18 | ||
8498ee01 JR |
19 | %description -l pl.UTF-8 |
20 | Awka składa się z programu tłumaczącego kod w języku AWK na kod w | |
21 | języku C i biblioteki z którą przetłumaczone programy mogą być | |
f7f71fcc | 22 | skonsolidowane. |
11dfa751 | 23 | |
9b5f0686 JB |
24 | %package static |
25 | Summary: Static awka library | |
28636a46 | 26 | Summary(pl.UTF-8): Statyczna bibliotka awka |
9b5f0686 JB |
27 | Group: Development/Libraries |
28 | Requires: %{name} = %{version}-%{release} | |
29 | ||
30 | %description static | |
31 | Static awka library. | |
32 | ||
8498ee01 | 33 | %description static -l pl.UTF-8 |
a1b20612 | 34 | Statyczna biblioteka awka. |
9b5f0686 | 35 | |
634ce6dc | 36 | %prep |
37 | %setup -q | |
9b5f0686 JB |
38 | %patch0 -p1 |
39 | ||
40 | %{__perl} -pi -e 's/^(CFLAGS.*)/$1 -fPIC/' lib/Makefile.in | |
634ce6dc | 41 | |
42 | %build | |
a4c0d0fc | 43 | %configure2_13 |
634ce6dc | 44 | %{__make} |
45 | ||
46 | %install | |
47 | rm -rf $RPM_BUILD_ROOT | |
48 | ||
893a5268 PG |
49 | %{__make} install \ |
50 | DESTDIR=$RPM_BUILD_ROOT | |
634ce6dc | 51 | |
634ce6dc | 52 | %clean |
53 | rm -rf $RPM_BUILD_ROOT | |
54 | ||
9b5f0686 JB |
55 | %post -p /sbin/ldconfig |
56 | %postun -p /sbin/ldconfig | |
57 | ||
634ce6dc | 58 | %files |
59 | %defattr(644,root,root,755) | |
d33294db | 60 | %doc CHANGELOG.txt README.txt TODO.txt |
634ce6dc | 61 | %attr(755,root,root) %{_bindir}/* |
9b5f0686 | 62 | %attr(755,root,root) %{_libdir}/lib*.so |
634ce6dc | 63 | %{_includedir}/* |
634ce6dc | 64 | %{_mandir}/man[15]/* |
9b5f0686 JB |
65 | |
66 | %files static | |
67 | %defattr(644,root,root,755) | |
68 | %{_libdir}/lib*.a |