Summary(tr): GNU araçlarý metin düzenleyici
Summary(uk): GNU ×ÅÒÓ¦Ñ ÕÔÉ̦ÔÉ ÏÂÒÏÂËÉ ÔÅËÓÔ¦× awk
Name: gawk
-Version: 3.1.2
-Release: 2
+Version: 3.1.5
+Release: 1.1
License: GPL
Group: Applications/Text
-Source0: ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
-# Source0-md5: 6d14f3c95669ace8c6aee2a96ba4eed7
+Source0: ftp://ftp.gnu.org/gnu/gawk/%{name}-%{version}.tar.bz2
+# Source0-md5: 5703f72d0eea1d463f735aad8222655f
Source1: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
-# Source1-md5: 80753d75be0f469f70e8c90e75121a9c
-Source2: %{name}-pl.po
+# Source1-md5: 80753d75be0f469f70e8c90e75121a9c
Patch0: %{name}-info.patch
Patch1: %{name}-shutup.patch
-Patch2: %{name}-pmake.patch
-Patch3: %{name}-mkinstalldirs.patch
-BuildRequires: autoconf >= 2.57
-BuildRequires: automake >= 1.7
-BuildRequires: texinfo
+Patch2: %{name}-pl.po-update.patch
+BuildRequires: autoconf >= 2.59
+BuildRequires: automake >= 1:1.7
+BuildRequires: gettext-devel >= 0.14.4
+BuildRequires: texinfo >= 4.3
Requires: mktemp
Requires: sed
-BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
Obsoletes: gawk-doc
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _libexecdir %{_prefix}/lib
+%define _includedir %{_prefix}/include/awk
%description
The gawk packages contains the GNU version of awk, a text processing
ÔÅËÓÔ¦×. Gawk ÍÁ¤ ÂÕÔÉ ÓÕͦÓÎÉÍ Ú ×ÅÒÓ¦¤À awk ×¦Ä Bell Labs ¦
ÐÒÁËÔÉÞÎÏ ÐÏ×ΦÓÔÀ צÄÐÏצÄÁ¤ ÓÔÁÎÄÁÒÔÕ 1993 POSIX 1003.2 ÎÁ awk.
+%package devel
+Summary: Header files for gawk
+Summary(pl): Pliki nag³ówkowe dla gawka
+Group: Development/Libraries
+
+%description devel
+This is the package containing the header files for gawk.
+
+%description devel -l pl
+Ten pakiet zawiera pliki nag³ówkowe dla gawka.
+
%prep
-%setup -q
+%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
-%patch3 -p1
-cp %{SOURCE2} po/pl.po
-echo 'pl' >> po/LINGUAS
+rm -f po/stamp-po
%build
-%{__aclocal}
-%{__autoconf} -I m4
+%{__gettextize}
+%{__aclocal} -I m4
+%{__autoconf}
%{__autoheader}
%{__automake}
-%configure \
- --enable-nls
-%{__make}
+%configure
+
+%{__make} -j1
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT%{_bindir}
%{__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}
+%clean
+rm -rf $RPM_BUILD_ROOT
+
%post
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
%postun
[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files -f %{name}.lang
%defattr(644,root,root,755)
-%doc AUTHORS README FUTURES LIMITATIONS NEWS PROBLEMS
+%doc AUTHORS README FUTURES LIMITATIONS NEWS PROBLEMS
%doc README_d/README.linux POSIX.STD
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/gawk
+%attr(755,root,root) %{_bindir}/igawk
+%attr(755,root,root) %{_bindir}/pgawk*
%{_mandir}/man1/*
%lang(es) %{_mandir}/es/man1/*
%lang(fr) %{_mandir}/fr/man1/*
%{_infodir}/*info*
%attr(755,root,root) %{_libdir}/awk
%{_datadir}/awk
+
+%files devel
+%defattr(644,root,root,755)
+%{_includedir}