summaryrefslogtreecommitdiff
path: root/packaging/gawk.spec
diff options
context:
space:
mode:
Diffstat (limited to 'packaging/gawk.spec')
-rw-r--r--packaging/gawk.spec100
1 files changed, 32 insertions, 68 deletions
diff --git a/packaging/gawk.spec b/packaging/gawk.spec
index d7a2585..f583310 100644
--- a/packaging/gawk.spec
+++ b/packaging/gawk.spec
@@ -1,37 +1,27 @@
-#
-# Do not Edit! Generated by:
-# spectacle version 0.18
-#
-# >> macros
-# << macros
-
-Name: gawk
-Summary: The GNU version of the awk text processing utility
-Version: 3.1.5
-Release: 1
-Epoch: 1
-Group: Applications/Text
-License: GPLv2+
-URL: http://www.gnu.org/software/gawk/gawk.html
-Source0: ftp://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.bz2
-Source100: gawk.yaml
-Source1001: packaging/gawk.manifest
-Patch0: gawk-3.1.3-getpgrp_void.patch
-Patch1: gawk-3.1.5-free.patch
-Patch2: gawk-3.1.5-fieldwidths.patch
-Patch3: gawk-3.1.5-binmode.patch
-Patch4: gawk-3.1.5-num2str.patch
-Patch5: gawk-3.1.5-wconcat.patch
-Patch6: gawk-3.1.5-internal.patch
-Patch7: gawk-3.1.5-syntaxerror.patch
-Patch8: gawk-3.1.5-numflags.patch
-Patch9: gawk-3.1.5-ipv6.patch
-Patch10: gawk-3.1.5-freewstr.patch
-Patch11: gawk-3.1.5-mbread.patch
-Requires: /bin/mktemp
-BuildRequires: flex
+Name: gawk
+Version: 3.1.5
+Release: 1
+License: GPL-2.0+
+Summary: The GNU version of the awk text processing utility
+Url: http://www.gnu.org/software/gawk/gawk.html
+Group: Applications/Text
+Source0: ftp://ftp.gnu.org/gnu/gawk/gawk-%{version}.tar.bz2
+Source1001: packaging/gawk.manifest
+Patch0: gawk-3.1.3-getpgrp_void.patch
+Patch1: gawk-3.1.5-free.patch
+Patch2: gawk-3.1.5-fieldwidths.patch
+Patch3: gawk-3.1.5-binmode.patch
+Patch4: gawk-3.1.5-num2str.patch
+Patch5: gawk-3.1.5-wconcat.patch
+Patch6: gawk-3.1.5-internal.patch
+Patch7: gawk-3.1.5-syntaxerror.patch
+Patch8: gawk-3.1.5-numflags.patch
+Patch9: gawk-3.1.5-ipv6.patch
+Patch10: gawk-3.1.5-freewstr.patch
+Patch11: gawk-3.1.5-mbread.patch
BuildRequires: bison
-
+BuildRequires: flex
+Requires: /bin/mktemp
%description
The gawk package contains the GNU version of awk, a text processing
@@ -41,11 +31,8 @@ quick and easy text pattern matching and reformatting jobs.
Install the gawk package if you need a text processing utility. Gawk is
considered to be a standard Linux tool for processing text.
-
-
-
%prep
-%setup -q -n %{name}-%{version}
+%setup -q
# gawk-3.1.3-getpgrp_void.patch
%patch0 -p1
@@ -71,55 +58,32 @@ considered to be a standard Linux tool for processing text.
%patch10 -p1
# gawk-3.1.5-mbread.patch
%patch11 -p1
-# >> setup
-# << setup
%build
cp %{SOURCE1001} .
-# >> build pre
-# << build pre
-%configure --disable-static \
- --bindir=/bin
+%configure --bindir=/bin --disable-nls
-make %{?jobs:-j%jobs}
+make %{?_smp_mflags}
-# >> build post
-# << build post
%install
-rm -rf %{buildroot}
-# >> install pre
-# << install pre
-%make_install
+%make_install
-# >> install post
chmod a-x COPYING
-mkdir -p $RPM_BUILD_ROOT/usr/bin
-pushd $RPM_BUILD_ROOT/usr/bin
+mkdir -p %{buildroot}%{_prefix}/bin
+pushd %{buildroot}%{_prefix}/bin
ln -s ../../bin/gawk awk
ln -s ../../bin/gawk gawk
popd
-# << install post
-%find_lang gawk
-
-
-
-
+%remove_docs
-%files -f gawk.lang
+%files
%manifest gawk.manifest
-%defattr(-,root,root,-)
-# >> files
-%doc FUTURES LIMITATIONS NEWS POSIX.STD README README_d/README.multibyte README_d/README.tests
%doc COPYING
-%doc %{_mandir}/man1/*
-%doc %{_infodir}/gawk.info*
-%doc %{_infodir}/gawkinet.info*
/bin/*
-/usr/bin/*
+%{_bindir}/*
%{_libexecdir}/awk
%{_datadir}/awk
-# << files