SHA256
1
0
forked from pool/mawk

Accepting request 33796 from Base:System

Copy from Base:System/mawk based on submit request 33796 from user gberh

OBS-URL: https://build.opensuse.org/request/show/33796
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mawk?expand=0&rev=1
This commit is contained in:
OBS User autobuild 2010-03-05 11:15:05 +00:00 committed by Git OBS Bridge
commit e25a29c77c
7 changed files with 218 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.osc

View File

@ -0,0 +1,62 @@
diff -urN mawk-1.3.4.orig/Makefile.in mawk-1.3.4/Makefile.in
--- mawk-1.3.4.orig/Makefile.in 2009-12-18 00:14:20.000000000 +0100
+++ mawk-1.3.4/Makefile.in 2010-02-16 11:44:18.000000000 +0100
@@ -67,13 +67,11 @@
$(PROG) : $(OBJS)
@ECHO_LD@$(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS)
-TESTPATH= PATH=`pwd`:`cd $(srcdir);pwd`/test:/bin:/usr/bin; export PATH
-
mawk_test : $(PROG) # test that we have a sane mawk
- @sh -c '$(TESTPATH); SRCDIR=`cd $(srcdir);pwd`; cd $(srcdir)/test ; echo "** mawktest $$SRCDIR"; mawktest $$SRCDIR'
+ @sh -c 'cd $(srcdir)/test ; echo "** mawktest"; ./mawktest'
fpe_test : $(PROG) # test FPEs are handled OK
- @sh -c '$(TESTPATH); cd $(srcdir)/test ; echo "** fpe_test"; fpe_test'
+ @sh -c 'cd $(srcdir)/test ; echo "** fpe_test"; ./fpe_test'
parse.c : parse.y
@echo expect 4 shift/reduce conflicts
diff -urN mawk-1.3.4.orig/test/fpe_test mawk-1.3.4/test/fpe_test
--- mawk-1.3.4.orig/test/fpe_test 2009-12-19 17:18:19.000000000 +0100
+++ mawk-1.3.4/test/fpe_test 2010-02-16 11:45:16.000000000 +0100
@@ -12,11 +12,12 @@
# recognize NAN printed as ? for hpux
#
-PROG=mawk
+PROG="${MAWK:-../mawk}"
-echo "testing floating point exception handling"
+PATH=/bin:/usr/bin
+export PATH
-PATH=.:$PATH
+echo "testing floating point exception handling"
STDOUT=${TMPDIR-/tmp}/mawktest$$
diff -urN mawk-1.3.4.orig/test/mawktest mawk-1.3.4/test/mawktest
--- mawk-1.3.4.orig/test/mawktest 2009-12-17 01:21:50.000000000 +0100
+++ mawk-1.3.4/test/mawktest 2010-02-16 11:45:47.000000000 +0100
@@ -9,7 +9,10 @@
# It needs to be run from mawk/test
# and mawk needs to be in mawk/test or in PATH
-PROG=mawk
+PROG="${MAWK:-../mawk}"
+
+PATH=/bin:/usr/bin
+export PATH
MAWKBINMODE=7
export MAWKBINMODE
@@ -27,8 +30,6 @@
trap 'echo mawk_test failed ; rm -f $STDOUT ; exit 1' 0
-PATH=.:$PATH
-
# find out which mawk we're testing
$PROG -W version

3
mawk-1.3.4.tgz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:2f2ab8831c441a5793ad333193c888c9ba29c900f009aa23c9fffc100c405925
size 283167

31
mawk.changes Normal file
View File

@ -0,0 +1,31 @@
-------------------------------------------------------------------
Mon Feb 22 19:13:57 UTC 2010 - guido+opensuse.org@berhoerster.name
- use update-alternatives
-------------------------------------------------------------------
Fri Feb 19 18:44:33 UTC 2010 - guido+opensuse.org@berhoerster.name
- add copyright note for integration into Factory
-------------------------------------------------------------------
Fri Feb 19 11:34:39 UTC 2010 - guido+opensuse.org@berhoerster.name
- cleaned up specfile, added explanatory comment
-------------------------------------------------------------------
Tue Feb 17 09:35:10 UTC 2010 - guido+opensuse.org@berhoerster.name
- added check section
- use external changelog
- dropped mawk-1.3.4-fix-gcc-bogus-warning.patch, passing --enable-warnings to
configure correctly marks the affected functions with GCC's noreturn
attribute (thanks to T. Dickey for clarifying)
- added patch fixing path handling issues with the make check target and
associated scripts
-------------------------------------------------------------------
Tue Dec 23 00:00:00 UTC 2009 - guido+opensuse.org@berhoerster.name
- initial packaging of mawk

98
mawk.spec Normal file
View File

@ -0,0 +1,98 @@
#
# spec file for package mawk (Version 1.3.4)
#
# Copyright (c) 2010 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c) 2010 Guido Berhoerster.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: mawk
Summary: Implementation of New/POSIX AWK
Version: 1.3.4
Release: 1
License: GPLv2
Group: Productivity/Text/Utilities
BuildRequires: update-alternatives
AutoReqProv: on
Requires(post): update-alternatives
Requires(preun): update-alternatives
Source: ftp://invisible-island.net/mawk/mawk-%{version}.tgz
Patch0: mawk-1.3.4-fix-make-check-path-handling.patch
Url: http://invisible-island.net/mawk/mawk.html
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
mawk is an interpreter for the AWK Programming Language. It implements the AWK
language as defined in Aho, Kernighan and Weinberger, The AWK Programming
Language, Addison-Wesley Publishing, 1988. Furthermore, it conforms to the
POSIX 1003.2 (draft 11.3) definition of the AWK language and additionally
provides a small number of extensions.
Authors:
--------
Thomas E. Dickey <dickey@invisible-island.net>
Mike Brennan
%prep
%setup -q
%patch0 -p1
%build
# without --enable-warnings several functions will not be marked with gcc's
# noreturn attribute and produce warnings when $RPM_OPT_FLAGS contains -Wall
%configure --enable-warnings
make %{?_smp_mflags}
%install
%make_install
# move to /bin and symlink to /usr/bin
%__mkdir_p $RPM_BUILD_ROOT/bin
%__mv $RPM_BUILD_ROOT/usr/bin/mawk $RPM_BUILD_ROOT/bin
%__ln_s ../../bin/mawk $RPM_BUILD_ROOT/usr/bin/mawk
# create ghost files
touch $RPM_BUILD_ROOT/bin/awk $RPM_BUILD_ROOT/usr/bin/awk \
$RPM_BUILD_ROOT/%{_mandir}/man1/awk.1.gz
%clean
rm -rf $RPM_BUILD_ROOT
%check
make check
%post
/usr/sbin/update-alternatives --install /bin/awk awk /bin/mawk 15 \
--slave /usr/bin/awk usr-bin-awk /bin/mawk \
--slave %{_mandir}/man1/awk.1.gz awk.1.gz %{_mandir}/man1/mawk.1.gz
%preun
if [ $1 -eq 0 ]; then
/usr/sbin/update-alternatives --remove awk /bin/mawk
fi
%files
%defattr(-,root,root,-)
%doc CHANGES README ACKNOWLEDGMENT examples/
%doc %{_mandir}/man1/mawk.1*
%if %{suse_version} >= 1120
%ghost /bin/awk
%ghost %{_bindir}/awk
%ghost %{_mandir}/man1/awk.1.gz
%endif
/usr/bin/mawk
/bin/mawk
%changelog

0
ready Normal file
View File