Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12-SP5:Update
tcmu-runner
tcmu-runner.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tcmu-runner.spec of Package tcmu-runner
# # spec file for package tcmu-runner # # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # %define oname tcmu-runner %bcond_with glusterfs Name: %{oname} Summary: A userspace daemon that handles the LIO TCM-User backstore License: Apache-2.0 Group: System/Management Version: 1.0.4 Release: 0 Url: https://github.com/agrover/%{oname} Source: %{oname}-%{version}.tar.gz Patch1: %{oname}-handler_file-add-libtcmu.patch Patch2: %{oname}-include-falloc-in-qcow.patch Patch3: %{oname}-let-cmake-install-man-page.patch Patch4: %{oname}-Use-CMake-FULL-library-directory-for-SOs.patch Patch5: glfs-discard-glfs_check_config Patch6: removed-all-check_config-callback-implementations-to-avoid-security-issues BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: cmake BuildRequires: glibc-devel BuildRequires: systemd-rpm-macros BuildRequires: libnl3-devel %if %{with glusterfs} BuildRequires: libgfapi0 BuildRequires: glusterfs-devel %endif BuildRequires: libkmod-devel BuildRequires: libgio-2_0-0 BuildRequires: glib2-devel BuildRequires: zlib-devel %{?systemd_requires} %description LIO is the SCSI target in the Linux kernel. It is entirely kernel code, and allows exported SCSI logical units (LUNs) to be backed by regular files or block devices. But, if we want to get fancier with the capabilities of the device we're emulating, the kernel is not necessarily the right place. While there are userspace libraries for compression, encryption, and clustered storage solutions like Ceph or Gluster, these are not accessible from the kernel. The TCMU userspace-passthrough backstore allows a userspace process to handle requests to a LUN. But since the kernel-user interface that TCMU provides must be fast and flexible, it is complex enough that we'd like to avoid each userspace handler having to write boilerplate code. tcmu-runner handles the messy details of the TCMU interface -- UIO, netlink, pthreads, and DBus -- and exports a more friendly C plugin module API. Modules using this API are called "TCMU handlers". Handler authors can write code just to handle the SCSI commands as desired, and can also link with whatever userspace libraries they like. %package -n tcmu-runner-devel Summary: Development files for tcmu-runner Group: Development/Libraries/C and C++ Requires: tcmu-runner = %{version} %description -n tcmu-runner-devel Files to develop an application using the libtcmu library. %prep %setup -n %{name}-%{version} %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %build %cmake -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \ -DSUPPORT_SYSTEMD="true" -Dwith-glfs="false" %{__make} %install cd build %{__make} DESTDIR=${RPM_BUILD_ROOT} install %{__install} -d -m 755 ${RPM_BUILD_ROOT}%{_sbindir} %{__ln_s} %{_sbindir}/service ${RPM_BUILD_ROOT}%{_sbindir}/rctcmu-runner %post %{run_ldconfig} %{service_add_post tcmu-runner.service} %postun %{service_del_postun tcmu-runner.service} %{run_ldconfig} %pre %{service_add_pre tcmu-runner.service} %preun %{service_del_preun tcmu-runner.service} %files %defattr(-,root,root) %{_bindir}/tcmu-runner %{_sbindir}/rctcmu-runner %doc README.md LICENSE %{_libdir}/libtcmu.so.1 %dir %{_libdir}/tcmu-runner %{_libdir}/tcmu-runner/handler_*.so %dir %{_datadir}/dbus-1 %dir %{_datadir}/dbus-1/system-services %{_datadir}/dbus-1/system-services/org.kernel.TCMUService1.service %dir %{_sysconfdir}/dbus-1 %dir %{_sysconfdir}/dbus-1/system.d %config %{_sysconfdir}/dbus-1/system.d/tcmu-runner.conf %{_unitdir}/tcmu-runner.service %doc %{_mandir}/man8/tcmu-runner.8%{ext_man} %files -n tcmu-runner-devel %defattr(-,root,root) %{_libdir}/libtcmu.so %{_includedir}/libtcmu*.h %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor