fix rpmlint problems
This fixes all rpmlint problems except for missing manpages and the invalid URL for the tarball.
This commit is contained in:
@@ -1,26 +1,22 @@
|
|||||||
Name: libiscsi
|
Name: libiscsi
|
||||||
Summary: iSCSI client library
|
Summary: iSCSI client library
|
||||||
Vendor: Ronnie Sahlberg
|
|
||||||
Packager: Ronnie Sahlberg <ronniesahlberg@gmail.com>
|
|
||||||
Version: 1.0.0
|
Version: 1.0.0
|
||||||
Release: 1GITHASH
|
Release: 2GITHASH%{?dist}
|
||||||
Epoch: 0
|
License: LGPLv2+
|
||||||
License: GNU LGPL version 3
|
Group: System Environment/Libraries
|
||||||
Group: Libraries
|
|
||||||
URL: https://github.com/sahlberg/libiscsi
|
URL: https://github.com/sahlberg/libiscsi
|
||||||
|
|
||||||
Source: libiscsi-%{version}.tar.gz
|
Source: libiscsi-%{version}.tar.gz
|
||||||
|
|
||||||
Prereq: fileutils
|
|
||||||
|
|
||||||
Provides: libiscsi = %{version}
|
|
||||||
|
|
||||||
Prefix: /usr
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||||||
|
BuildRequires: autoconf
|
||||||
|
BuildRequires: automake
|
||||||
|
BuildRequires: libtool
|
||||||
|
BuildRequires: popt-devel
|
||||||
|
|
||||||
%description
|
%description
|
||||||
libiscsi is a client library for attaching to iscsi resources across
|
libiscsi is a library for attaching to iSCSI resources across
|
||||||
a network and a set of assorted useful utilities
|
a network.
|
||||||
|
|
||||||
|
|
||||||
#######################################################################
|
#######################################################################
|
||||||
@@ -41,12 +37,14 @@ export CC
|
|||||||
## always run autogen.sh
|
## always run autogen.sh
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
%configure
|
%configure
|
||||||
make
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# Clean up in case there is trash left from a previous build
|
# Clean up in case there is trash left from a previous build
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
make DESTDIR=$RPM_BUILD_ROOT install
|
make DESTDIR=$RPM_BUILD_ROOT install %{?_smp_mflags}
|
||||||
|
rm $RPM_BUILD_ROOT/%{_libdir}/libiscsi.a
|
||||||
|
rm $RPM_BUILD_ROOT/%{_libdir}/libiscsi.la
|
||||||
|
|
||||||
# Remove "*.old" files
|
# Remove "*.old" files
|
||||||
find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \;
|
find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \;
|
||||||
@@ -54,33 +52,47 @@ find $RPM_BUILD_ROOT -name "*.old" -exec rm -f {} \;
|
|||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
#######################################################################
|
%postun -p /sbin/ldconfig
|
||||||
## Files section ##
|
|
||||||
#######################################################################
|
|
||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc COPYING.LESSER README TODO
|
||||||
|
%{_libdir}/libiscsi.so.*
|
||||||
|
|
||||||
|
%package utils
|
||||||
|
Summary: iSCSI Client Utilities
|
||||||
|
Group: Applications/System
|
||||||
|
|
||||||
|
%description utils
|
||||||
|
The libiscsi-utils package provides a set of assorted utilities to connect
|
||||||
|
to iSCSI servers without having to set up the Linux iSCSI initiator.
|
||||||
|
|
||||||
|
%files utils
|
||||||
|
%doc COPYING README TODO
|
||||||
%{_bindir}/ld_iscsi.so
|
%{_bindir}/ld_iscsi.so
|
||||||
%{_bindir}/iscsi-ls
|
%{_bindir}/iscsi-ls
|
||||||
%{_bindir}/iscsi-inq
|
%{_bindir}/iscsi-inq
|
||||||
%{_libdir}/libiscsi.so.*
|
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: iSCSI client development libraries
|
Summary: iSCSI client development libraries
|
||||||
Group: Development
|
Group: Development/Libraries
|
||||||
|
Requires: libiscsi = %{version}-%{release}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
development libraries for iSCSI
|
The libiscsi-devel package includes the header files for libiscsi.
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
|
%doc COPYING.LESSER README TODO
|
||||||
%{_includedir}/iscsi/iscsi.h
|
%{_includedir}/iscsi/iscsi.h
|
||||||
%{_includedir}/iscsi/scsi-lowlevel.h
|
%{_includedir}/iscsi/scsi-lowlevel.h
|
||||||
%{_libdir}/libiscsi.a
|
|
||||||
%{_libdir}/libiscsi.la
|
|
||||||
%{_libdir}/libiscsi.so
|
%{_libdir}/libiscsi.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Sat Dec 4 2010 : Version 1.0.0
|
* Fri Oct 28 2011 Paolo Bonzini <pbonzini@redhat.com> - 1.0.0-2
|
||||||
- Initial version
|
- Fixed rpmlint problems
|
||||||
|
|
||||||
|
* Sat Dec 4 2010 Ronnie Sahlberg <ronniesahlberg@gmail.com> - 1.0.0-1
|
||||||
|
- Initial version
|
||||||
|
|||||||
Reference in New Issue
Block a user