-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlsucpd.spec
63 lines (51 loc) · 1.49 KB
/
lsucpd.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
%define name lsucpd
%define version 0.92
%define release 1
Summary: List USB-C Power Delivery ports and partners
Name: %{name}
Version: %{version}
Release: %{release}
License: BSD-2-Clause
Group: Utilities/System
Source0: https://sg.danny.cz/scsi/%{name}-%{version}.tar.gz
Url: https://sg.danny.cz/scsi/lsurl.html
BuildRoot: %{_tmppath}/%{name}-%{version}-root/
Packager: dgilbert at interlog dot com
%description
Uses information provided by the sysfs pseudo file system in the Linux
kernel 2.6 series, and later, to list SCSI devices (Logical
Units (e.g. disks)) plus NVMe namespaces (SSDs). It can list transport
identifiers (e.g. SAS address of a SAS disk), protection information
configuration and size for storage devices. Alternatively it can be used
to list SCSI hosts (e.g. HBAs) or NVMe controllers. By default one line
of information is output per device (or host).
Author:
--------
Doug Gilbert <dgilbert at interlog dot com>
%prep
%setup -q
%build
./autogen.sh
%configure
%install
if [ "$RPM_BUILD_ROOT" != "/" ]; then
rm -rf $RPM_BUILD_ROOT
fi
make install \
DESTDIR=$RPM_BUILD_ROOT
%clean
if [ "$RPM_BUILD_ROOT" != "/" ]; then
rm -rf $RPM_BUILD_ROOT
fi
%files
%defattr(-,root,root)
%doc ChangeLog INSTALL README CREDITS AUTHORS COPYING
%attr(0755,root,root) %{_bindir}/*
%{_mandir}/man8/*
%changelog
* Tue Dec 05 2023 - dgilbert at interlog dot com
- minor cleanups
* lsucpd-0.91
* Thu Oct 26 2023 - dgilbert at interlog dot com
- initial version
* lsucpd-0.90