]> git.pld-linux.org Git - packages/awka.git/blob - awka.spec
- use PIC in shared library, package shared library, static -> -static
[packages/awka.git] / awka.spec
1 Summary:        Translator of the AWK programming language to ANSI-C
2 Summary(pl):    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
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):    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
34 Statyczna bibliotka 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 %attr(755,root,root) %{_bindir}/*
61 %attr(755,root,root) %{_libdir}/lib*.so
62 %{_includedir}/*
63 %{_mandir}/man[15]/*
64
65 %files static
66 %defattr(644,root,root,755)
67 %{_libdir}/lib*.a
This page took 0.206161 seconds and 3 git commands to generate.