]> git.pld-linux.org Git - packages/awka.git/blob - awka.spec
- tabs in preamble
[packages/awka.git] / awka.spec
1 Summary:        Translator of the AWK programming language to ANSI-C
2 Summary(pl.UTF-8):      Konwerter programów w języku AWK na programy w języku C
3 Name:           awka
4 Version:        0.7.4
5 Release:        4
6 License:        GPL
7 Group:          Applications/Text
8 Source0:        http://awka.sourceforge.net/%{name}-%{version}.tar.gz
9 # Source0-md5:  80da40555d79d78cf96d8e3a03e1b94f
10 Patch0:         %{name}-DESTDIR.patch
11 URL:            http://awka.sourceforge.net/
12 BuildRequires:  perl-base
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
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ć
22 skonsolidowane.
23
24 %package static
25 Summary:        Static awka library
26 Summary(pl.UTF-8):      Statyczna bibliotka awka
27 Group:          Development/Libraries
28 Requires:       %{name} = %{version}-%{release}
29
30 %description static
31 Static awka library.
32
33 %description static -l pl.UTF-8
34 Statyczna biblioteka awka.
35
36 %prep
37 %setup -q
38 %patch0 -p1
39
40 %{__perl} -pi -e 's/^(CFLAGS.*)/$1 -fPIC/' lib/Makefile.in
41
42 %build
43 %configure2_13
44 %{__make}
45
46 %install
47 rm -rf $RPM_BUILD_ROOT
48
49 %{__make} install \
50         DESTDIR=$RPM_BUILD_ROOT
51
52 %clean
53 rm -rf $RPM_BUILD_ROOT
54
55 %post   -p /sbin/ldconfig
56 %postun -p /sbin/ldconfig
57
58 %files
59 %defattr(644,root,root,755)
60 %doc CHANGELOG.txt README.txt TODO.txt 
61 %attr(755,root,root) %{_bindir}/*
62 %attr(755,root,root) %{_libdir}/lib*.so
63 %{_includedir}/*
64 %{_mandir}/man[15]/*
65
66 %files static
67 %defattr(644,root,root,755)
68 %{_libdir}/lib*.a
This page took 0.073938 seconds and 3 git commands to generate.