Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:42.2:Ports
tgt
tgt.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tgt.spec of Package tgt
# # spec file for package tgt # # 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/ # Name: tgt BuildRequires: docbook-xsl-stylesheets BuildRequires: libaio-devel BuildRequires: libxslt BuildRequires: openssl-devel BuildRequires: perl-Config-General BuildRequires: systemd BuildRequires: systemd-devel BuildRequires: pkgconfig(systemd) Obsoletes: iscsitarget Requires: perl-Config-General Url: http://stgt.berlios.de Requires(pre): %fillup_prereq Version: 1.0.44 Release: 0 %{?systemd_requires} Summary: Generic Linux target framework (tgt) License: GPL-2.0 Group: System/Daemons Source: %{name}-%{version}.tar.bz2 Source1: %{name}d.service Source3: %{name}.services Source4: sysconfig.%{name} Patch1: %{name}-git-update Patch2: %{name}-fix-build Patch3: setup-tgt-conf-d.patch Patch4: %{name}-systemd-notification-support Patch5: %{name}-fix-libs-for-current-systemd-linker-name Patch6: %{name}-handle-access-of-a-target-that-has-been-removed Patch7: %{name}-missing-module-directory-not-an-error %description Linux target framework (tgt) aims to simplify various SCSI target driver (iSCSI, Fibre Channel, SRP, etc) creation and maintenance. Tgt consists of kernel modules, user-space daemon, and user-space tools. Some target drivers uses all of them and some use only user-space daemon and tools (i.e. they completely runs in user space). Authors: -------- FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> Mike Christie <michaelc@cs.wisc.edu> %prep %setup -n %{name}-%{version} %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p1 %patch5 -p1 %patch6 -p1 %patch7 -p1 %build %ifarch ppc ppc64 ppc64le %define backends ISCSI=1 FCP=1 FCOE=1 IBMVIO=1 SD_NOTIFY=1 %else %define backends ISCSI=1 FCP=1 FCOE=1 SD_NOTIFY=1 %endif %{__make} OPTFLAGS="${RPM_OPT_FLAGS}" %{backends} %install %{__make} DESTDIR=%{buildroot} docdir=%_docdir/%{name} install install -vD -m 644 %{S:1} %{buildroot}/%{_unitdir}/%{name}d.service install -vD %{S:3} %{buildroot}/etc/sysconfig/SuSEfirewall2.d/services/tgt install -vD %{S:4} %{buildroot}/var/adm/fillup-templates/sysconfig.%{name} ln -sf service %{buildroot}/%{_sbindir}/rc%{name}d %pre %service_add_pre %{name}d.service %post %{fillup_only} %service_add_post %{name}d.service %preun %service_del_preun %{name}d.service %postun %service_del_postun %{name}d.service %files %defattr(-,root,root) %{_sbindir}/* %dir /etc/tgt %dir /etc/tgt/conf.d %config %attr(0644,root,root) /etc/tgt/targets.conf %config %attr(0644,root,root) /etc/sysconfig/SuSEfirewall2.d/services/tgt /var/adm/fillup-templates/sysconfig.tgt %{_unitdir}/%{name}d.service %doc README doc/README.iscsi doc/README.iser doc/README.lu_configuration %doc doc/README.mmc doc/README.passthrough doc/README.sbcjukebox doc/README.ssc %doc %{_mandir}/man8/* %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