--- /dev/null
+Name: gawk
+Version: 5.1.0
+Release: 0
+Summary: Domain-specific language for text processing
+License: GPLv3.0+
+URL: https://www.gnu.org/software/gawk/
+Source: https://mirrors.ustc.edu.cn/gnu/%{name}/%{name}-%{version}.tar.xz
+Source2: https://mirrors.ustc.edu.cn/gnu/%{name}/%{name}-%{version}.tar.xz.sig
+Source3: http://savannah.gnu.org/people/viewgpg.php?user_id=80653#/gawk.keyring
+Source4: gawk.rpmlintrc
+
+%description
+AWK is a domain-specific language designed for text processing and
+typically used as a data extraction and reporting tool.
+
+GNU awk is upwardly compatible with the System V Release 4 awk. It is
+almost completely POSIX 1003.2 compliant.
+
+%prep
+%autosetup -p1
+
+%build
+autoreconf -fiv
+%configure
+make %{?_smp_mflags}
+
+%check
+make check %{?_smp_mflags}
+
+%install
+%make_install
+
+#UsrMerge
+install -d %{buildroot}/bin
+ln -sf %{_bindir}/gawk %{buildroot}/bin
+ln -s %{_sysconfdir}/alternatives/awk %{buildroot}/bin/awk
+#EndUsrMerge
+rm -f %{buildroot}%{_bindir}/*-%{version} %{buildroot}%{_bindir}/awk
+
+%find_lang %{name}