Blame SPECS/tcmu-runner.spec

641eac
%global __cmake_in_source_build 1
641eac
641eac
Name:           tcmu-runner
641eac
License:        LGPLV2+ or ASL 2.0
641eac
Summary:        A daemon that supports LIO userspace backends
641eac
Version:        1.5.4
ba8725
Release:        4%{?dist}
641eac
URL:            https://github.com/open-iscsi/tcmu-runner
641eac
Source:         https://github.com/open-iscsi/tcmu-runner/archive/v%{version}.tar.gz
641eac
Patch0:         read_conf.patch
641eac
Patch1:		CMakeLists.txt.patch
641eac
BuildRequires: make
641eac
BuildRequires:  gcc
641eac
BuildRequires:  cmake glib2-devel libnl3-devel glusterfs-api-devel kmod-devel zlib-devel librbd-devel
641eac
BuildRequires:  systemd
641eac
Requires:       targetcli
641eac
# Ceph/librbd does not have 32bit builds so we cannot either
641eac
ExcludeArch:	i686 armv7hl
641eac
641eac
%description
641eac
A daemon that handles the complexity of the LIO kernel target's userspace
641eac
passthrough interface (TCMU). It presents a C plugin API for extension modules
641eac
that handle SCSI requests in ways not possible or suitable to be handled
641eac
by LIO's in-kernel backstores.
641eac
641eac
%package -n libtcmu
641eac
Summary:        A library to ease supporting LIO userspace processing
641eac
641eac
%description -n libtcmu
641eac
libtcmu provides a library for processing SCSI commands exposed by the
641eac
LIO kernel target's TCM-User backend.
641eac
641eac
%package -n libtcmu-devel
641eac
Summary:        Development headers for libtcmu
641eac
Requires:       %{name} = %{version}-%{release}
641eac
641eac
%description -n libtcmu-devel
641eac
Development header(s) for developing against libtcmu.
641eac
641eac
%prep
641eac
%setup -q
641eac
%patch0 -p1
641eac
%patch1 -p1
641eac
641eac
%build
641eac
%cmake -DSUPPORT_SYSTEMD:BOOL=ON -DCMAKE_COLOR_MAKEFILE:BOOL=OFF .
641eac
export VERBOSE=1
641eac
export GCC_COLORS=
641eac
%cmake_build
641eac
641eac
%install
641eac
%cmake_install
641eac
mkdir -p %{buildroot}%{_mandir}/man8/
641eac
gzip --stdout tcmu-runner.8 > %{buildroot}%{_mandir}/man8/tcmu-runner.8.gz
641eac
chmod 0644 %{buildroot}%{_mandir}/man8/tcmu-runner.8.gz
641eac
mkdir -p %{buildroot}%{_includedir}
641eac
cp -a libtcmu.h libtcmu_common.h libtcmu_log.h tcmu-runner.h %{buildroot}%{_includedir}/
641eac
641eac
%ldconfig_scriptlets -n libtcmu
641eac
641eac
%files
641eac
%{_bindir}/tcmu-runner
641eac
%dir %{_libdir}/tcmu-runner
641eac
%{_libdir}/tcmu-runner/*
641eac
%{_sysconfdir}/dbus-1/system.d/tcmu-runner.conf
641eac
%{_datarootdir}/dbus-1/system-services/org.kernel.TCMUService1.service
641eac
%{_unitdir}/tcmu-runner.service
641eac
%{_sysconfdir}/logrotate.d/tcmu-runner
641eac
%dir %{_sysconfdir}/tcmu/
641eac
%config %{_sysconfdir}/tcmu/tcmu.conf
641eac
%doc README.md
641eac
%license LICENSE.*
641eac
%{_mandir}/man8/tcmu-runner.8.gz
641eac
641eac
641eac
%files -n libtcmu
641eac
%{_libdir}/*.so.*
641eac
641eac
%files -n libtcmu-devel
641eac
%{_includedir}/libtcmu.h
641eac
%{_includedir}/libtcmu_common.h
641eac
%{_includedir}/libtcmu_log.h
641eac
%{_includedir}/tcmu-runner.h
641eac
%{_libdir}/*.so
641eac
641eac
641eac
%changelog
ba8725
* Wed Sep 15 2021 Kaleb S. KEITHLEY <kkeithle [at] redhat.com> - 1.5.4-4
ba8725
- rebuild from git+lookaside
ba8725
641eac
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.4-3
641eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
641eac
641eac
* Mon May 24 2021 Maurizio Lombardi <mlombard@redhat.com> - 1.5.4-2
641eac
- Fix possible infinite loop when reading the config file
641eac
641eac
* Mon May 17 2021 Maurizio Lombardi <mlombard@redhat.com> - 1.5.4-1
641eac
- Update to version 1.5.4
641eac
641eac
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-8
641eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
641eac
641eac
* Mon Jan 25 2021 Maurizio Lombardi
641eac
- Add fix for CVE-2020-28374
641eac
641eac
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-5
641eac
- Second attempt - Rebuilt for
641eac
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
641eac
641eac
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-4
641eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
641eac
641eac
* Fri Jul 24 2020 Jeff Law <law@redhat.com> - 1.5.2-3
641eac
- Use __cmake_in_source_build
641eac
641eac
* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.5.2-2
641eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
641eac
641eac
* Fri Dec 20 2019 Tom Callaway <spot@fedoraproject.org> - 1.5.2-1
641eac
- update to 1.5.2
641eac
641eac
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-8
641eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
641eac
641eac
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-7
641eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
641eac
641eac
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-6
641eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
641eac
641eac
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-5
641eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
641eac
641eac
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-4
641eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
641eac
641eac
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-3
641eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
641eac
641eac
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.3-2
641eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
641eac
641eac
* Wed Oct 26 2016 Andy Grover <agrover@redhat.com> - 1.1.3-1
641eac
- New upstream version
641eac
641eac
* Mon Aug 15 2016 Andy Grover <agrover@redhat.com> - 1.1.1-1
641eac
- New upstream version
641eac
- include tcmu-runner.h in -devel
641eac
641eac
* Wed Aug 3 2016 Andy Grover <agrover@redhat.com> - 1.1.0-1
641eac
- New upstream version
641eac
- Don't install tcmu-synthesizer, it's an example program
641eac
641eac
* Wed Apr 6 2016 Andy Grover <agrover@redhat.com> - 1.0.4-1
641eac
- New upstream version
641eac
- Add man page for tcmu-runner
641eac
641eac
* Wed Mar 30 2016 Andy Grover <agrover@redhat.com> - 1.0.3-1
641eac
- New upstream version
641eac
641eac
* Thu Mar 24 2016 Andy Grover <agrover@redhat.com> - 1.0.2-1
641eac
- New upstream version
641eac
641eac
* Fri Mar 18 2016 Andy Grover <agrover@redhat.com> - 1.0.1-1
641eac
- New upstream version
641eac
641eac
* Mon Mar 7 2016 Andy Grover <agrover@redhat.com> - 1.0.0-1
641eac
- New upstream version
641eac
- Add libtcmu and libtcmu-devel subpackages
641eac
641eac
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.2-2
641eac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
641eac
641eac
* Wed Oct 14 2015 Andy Grover <agrover@redhat.com> - 0.9.2-1
641eac
- New upstream version
641eac
641eac
* Tue Oct 13 2015 Andy Grover <agrover@redhat.com> - 0.9.1-1
641eac
- Initial Fedora packaging