Summary(uk): GNU ×ÅÒÓ¦Ñ ÕÔÉ̦ÔÉ ÏÂÒÏÂËÉ ÔÅËÓÔ¦× awk
Name: gawk
Version: 3.1.5
-Release: 1
+Release: 1.1
License: GPL
Group: Applications/Text
Source0: ftp://ftp.gnu.org/gnu/gawk/%{name}-%{version}.tar.bz2
Patch2: %{name}-pl.po-update.patch
BuildRequires: autoconf >= 2.59
BuildRequires: automake >= 1:1.7
-BuildRequires: texinfo >= 4.3
BuildRequires: gettext-devel >= 0.14.4
+BuildRequires: texinfo >= 4.3
Requires: mktemp
Requires: sed
Obsoletes: gawk-doc
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+%define _includedir %{_prefix}/include/awk
+
%description
The gawk packages contains the GNU version of awk, a text processing
utility. Awk interprets a special-purpose programming language to do
ÔÅËÓÔ¦×. Gawk ÍÁ¤ ÂÕÔÉ ÓÕͦÓÎÉÍ Ú ×ÅÒÓ¦¤À awk ×¦Ä Bell Labs ¦
ÐÒÁËÔÉÞÎÏ ÐÏ×ΦÓÔÀ צÄÐÏצÄÁ¤ ÓÔÁÎÄÁÒÔÕ 1993 POSIX 1003.2 ÎÁ awk.
+%package devel
+Summary: Header files for gawk
+Group: Development/Libraries
+
+%description devel
+This is the package containing the header files for gawk.
+
%prep
%setup -q
%patch0 -p1
%{__automake}
%configure
-%{__make}
+%{__make} -j1
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-rm -f $RPM_BUILD_ROOT%{_bindir}/gawk-%{version}
+install -d $RPM_BUILD_ROOT%{_includedir}
+install *.h $RPM_BUILD_ROOT%{_includedir}
bzip2 -dc %{SOURCE1} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
+rm -f $RPM_BUILD_ROOT%{_bindir}/gawk-%{version}
+rm -f $RPM_BUILD_ROOT%{_datadir}/info/dir
+rm -f $RPM_BUILD_ROOT%{_mandir}/README.gawk-non-english-man-pages
%find_lang %{name}
%{_infodir}/*info*
%attr(755,root,root) %{_libdir}/awk
%{_datadir}/awk
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}