Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
119 lines (93 sloc) 3.07 KB
# Disable the building of the debug package(s).
%define debug_package %{nil}
Summary: Virtual tape library. kernel pseudo HBA driver + userspace daemons
%define real_name mhvtl
Name: mhvtl-utils
%define real_version 2012-09-13
Version: 1.4
Release: 4%{?dist}
License: GPL
Group: System/Kernel
Source: mhvtl-%{real_version}.tgz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-build-%(%{__id_u} -n)
BuildRequires: lzo-devel
BuildRequires: zlib-devel
Obsoletes: mhvtl <= %{version}-%{release}
Provides: mhvtl = %{version}-%{release}
A Virtual tape library and tape drives:
Used to emulate hardware robot & tape drives:
VTL consists of a pseudo HBA kernel driver and user-space daemons which
function as the SCSI target.
Communication between the kernel module and the daemons is achieved
via /dev/mhvtl? device nodes.
The kernel module is based on the scsi_debug driver.
The SSC/SMC target daemons have been written from scratch.
%setup -n %{real_name}-%{version}
%{__make} RPM_OPT_FLAGS="%{optflags}" VERSION="%{version}.%{release}" usr
%{__make} RPM_OPT_FLAGS="%{optflags}" VERSION="%{version}.%{release}" INITD="%{_initrddir}" etc
%{__make} RPM_OPT_FLAGS="%{optflags}" VERSION="%{version}.%{release}" scripts
%{__rm} -rf %{buildroot}
%{__make} install DESTDIR="%{buildroot}" INITD="%{_initrddir}" LIBDIR="%{_libdir}"
if ! getent group vtl &>/dev/null; then
groupadd -r vtl
if ! getent passwd vtl &>/dev/null; then
useradd -r -g vtl -c "VTL daemon" -d /opt/mhvtl -s /bin/bash vtl
/sbin/chkconfig --add mhvtl
if (( $1 == 0 )); then
/sbin/service mhvtl shutdown &>/dev/null || :
/sbin/chkconfig --del mhvtl
%postun -p /sbin/ldconfig
%{__rm} -rf %{buildroot}
%defattr(-, vtl, vtl, 0755)
%doc INSTALL README etc/library_contents.sample
%doc %{_mandir}/man1/build_library_config.1*
%doc %{_mandir}/man1/mhvtl.1*
%doc %{_mandir}/man1/mktape.1*
%doc %{_mandir}/man1/vtlcmd.1*
%doc %{_mandir}/man1/vtllibrary.1*
%doc %{_mandir}/man1/vtltape.1*
%doc %{_mandir}/man1/make_vtl_media.1*
%doc %{_mandir}/man5/device.conf.5*
%doc %{_mandir}/man5/mhvtl.conf.5*
%doc %{_mandir}/man5/library_contents.5*
%config %{_initrddir}/mhvtl
%defattr(4750, root, vtl, 0755)
%defattr(-, vtl, vtl, 2770)
* Thu Aug 13 2012 Mark Harvey <> - 1.4-4
- Updated to release 1.4-4 (2012-09-13).
* Wed Aug 8 2012 Mark Harvey <> - 1.4-1
- Updated to release 1.4-1 (2012-08-08).
* Wed Aug 1 2012 Mark Harvey <> - 1.4-0
- Updated to release 1.4 (2012-08-01).
- install using Makefile
* Thu Jun 21 2012 Dag Wieers <> - 1.3-1
- Updated to release 1.3 (2012-06-15).
* Thu Aug 05 2010 Dag Wieers <> - 0.18-11
- Initial build of the kmod package.
Something went wrong with that request. Please try again.