OSDN Git Service

Finished gawk %install
authorHe Chenlan <210hcl@gmail.com>
Fri, 5 Feb 2021 16:29:42 +0000 (00:29 +0800)
committerHe Chenlan <210hcl@gmail.com>
Fri, 5 Feb 2021 16:29:42 +0000 (00:29 +0800)
gawk.spec [new file with mode: 0644]

diff --git a/gawk.spec b/gawk.spec
new file mode 100644 (file)
index 0000000..d9194bd
--- /dev/null
+++ b/gawk.spec
@@ -0,0 +1,40 @@
+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}