SHA256
1
0
forked from pool/inxi
inxi/inxi.spec

59 lines
1.8 KiB
RPMSpec

#
# spec file for package inxi
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2011-2016 Malcolm J Lewis <malcolmlewis@opensuse.org>
#
# 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/
#
%define _rev dedc0bc1cae5e9fade99cd8ddf50a5088566995c
Name: inxi
Version: 2.3.5
Release: 0
Summary: A system information script
License: GPL-3.0+
Group: System/Console
Url: https://github.com/smxi/inxi
Source: https://github.com/smxi/%{name}/archive/%{_rev}.tar.gz#/%{name}-%{version}.tar.gz
Requires: bash
%if 0%{?suse_version} >= 1120
BuildArch: noarch
%else
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%endif
%description
inxi is a command line system information tool. It was forked from
infobash. The primary purpose of inxi is for support, and sys admin
use. inxi is used widely for forum and IRC support.
%prep
%setup -q -n %{name}-%{_rev}
chmod 0644 inxi.changelog README.txt
%build
# Nothing to build.
%install
install -Dpm 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dpm 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
%files
%defattr(-,root,root)
%doc inxi.changelog LICENSE.txt README.txt
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%changelog