- fix FTBFS

This commit is contained in:
Dan Horák 2018-04-16 09:26:08 +02:00
parent 6a1eb9c9e5
commit 4dcb6151fa
2 changed files with 18 additions and 2 deletions

View File

@ -0,0 +1,11 @@
diff -up lsscsi-0.28/src/lsscsi.c.sysmacros lsscsi-0.28/src/lsscsi.c
--- lsscsi-0.28/src/lsscsi.c.sysmacros 2018-04-14 20:54:14.000000000 +0200
+++ lsscsi-0.28/src/lsscsi.c 2018-04-14 20:54:27.000000000 +0200
@@ -27,6 +27,7 @@
#include <sys/stat.h>
#include <dirent.h>
#include <libgen.h>
+#include <sys/sysmacros.h>
#include <linux/major.h>
#include <linux/limits.h>
#include <time.h>

View File

@ -1,10 +1,12 @@
Summary: List SCSI devices (or hosts) and associated information
Name: lsscsi
Version: 0.28
Release: 7%{?dist}
Release: 8%{?dist}
License: GPLv2+
Group: Applications/System
Source0: http://sg.danny.cz/scsi/%{name}-%{version}.tgz
# fixed in https://github.com/hreinecke/lsscsi/commit/45b4bb13519a782df4d0a4dca471e0d576a6b87d
Patch0: %{name}-0.28-sysmacros.patch
URL: http://sg.danny.cz/scsi/lsscsi.html
%description
@ -19,7 +21,7 @@ Author:
%prep
%setup -q
%autosetup -p1
%build
@ -38,6 +40,9 @@ make DESTDIR=%{buildroot} install
%changelog
* Mon Apr 16 2018 Dan Horák <dan[at]danny.cz> - 0.28-8
- fix FTBFS
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.28-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild