open-iscsi/open-iscsi.spec

62 lines
1.7 KiB
RPMSpec

%define pkgver %(echo %version | tr _ -)
Name: open-iscsi
Version: 2.0_873
Release: 1mamba
Summary: A high performance, transport independent, multi-platform implementation of RFC3720
Group: System/Kernel and Hardware
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: http://www.open-iscsi.org/
Source: http://www.open-iscsi.org/bits/open-iscsi-%{pkgver}.tar.gz
Patch0: open-iscsi-2.0_873-slp.patch
License: GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libopenslp-devel
## AUTOBUILDREQ-END
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
Open-iSCSI project is a high performance, transport independent, multi-platform implementation of RFC3720.
%debug_package
%prep
%setup -q -n %{name}-%{pkgver}
%patch0 -p1
%build
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -D -m0755 usr/iscsistart %{buildroot}/sbin/iscsistart
install -D -m0644 doc/iscsistart.8 %{buildroot}%{_mandir}/man8/iscsistart.8
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%files
%defattr(-,root,root)
%dir %{_sysconfdir}/iscsi
%dir %{_sysconfdir}/iscsi/ifaces
%{_sysconfdir}/iscsi/ifaces/iface.example
%{_sysconfdir}/iscsi/initiatorname.iscsi
%config(noreplace) %{_sysconfdir}/iscsi/iscsid.conf
/sbin/iscsi-iname
/sbin/iscsi_discovery
/sbin/iscsiadm
/sbin/iscsid
/sbin/iscsistart
%{_mandir}/man8/iscsi_discovery.8*
%{_mandir}/man8/iscsiadm.8*
%{_mandir}/man8/iscsid.8*
%{_mandir}/man8/iscsistart.8*
%doc COPYING THANKS
%changelog
* Tue Jun 24 2014 Silvan Calarco <silvan.calarco@mambasoft.it> 2.0_873-1mamba
- package created using the webbuild interface