OSDN Git Service

Almost finished which.
authorHe Chenlan <210hcl@gmail.com>
Fri, 5 Feb 2021 16:06:34 +0000 (00:06 +0800)
committerHe Chenlan <210hcl@gmail.com>
Fri, 5 Feb 2021 16:06:34 +0000 (00:06 +0800)
which.spec [new file with mode: 0644]

diff --git a/which.spec b/which.spec
new file mode 100644 (file)
index 0000000..02f7340
--- /dev/null
@@ -0,0 +1,32 @@
+Name:           which
+Version:        2.21
+Release:        0
+Summary:        Displays where a particular program in your path is located
+License:        GPLv3.0+
+Url:            https://carlowood.github.io/which/
+Source0:        https://mirrors.ustc.edu.cn/gnu/%{name}/%{name}-%{version}.tar.gz
+Source1:        https://mirrors.ustc.edu.cn/gnu/%{name}/%{name}-%{version}.tar.gz.sig
+
+%description
+The which command shows the full pathname of a specified program, if
+the specified program is in your PATH.
+
+%prep
+%setup -q
+
+%build
+%configure
+make %{?_smp_mflags}
+
+%install
+make %{?_smp_mflags} DESTDIR=%{buildroot} install
+
+%files
+%defattr(-,root,root)
+%{_bindir}/which
+%license COPYING
+%doc EXAMPLES README README.alias AUTHORS NEWS
+%{_infodir}/which.info*
+%{_mandir}/man1/which.1*
+
+%changelog