Name: target-isns License: GPLv2+ Group: System Environment/Daemons Summary: An iSNS client for the Linux LIO iSCSI target Version: 0.5 Release: 2%{?dist} URL: https://github.com/cvubrugier/target-isns Source: https://fedorahosted.org/releases/t/a/target-isns/%{name}-%{version}.tar.xz BuildRequires: cmake systemd-units Requires(post): systemd Requires(preun): systemd Requires(postun): systemd %description Target-isns is an Internet Storage Name Service (iSNS) client for the Linux LIO iSCSI target. It allows registering LIO iSCSI targets with an iSNS server. %prep %setup -q %build %cmake -DSUPPORT_SYSTEMD=ON . make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} install -m 644 target-isns.service %{buildroot}%{_unitdir} %post %systemd_post target-isns.service %preun %systemd_preun target-isns.service %postun %systemd_postun_with_restart target-isns.service %files %{_bindir}/target-isns %config(noreplace) %{_sysconfdir}/target-isns.conf %{_mandir}/man8/target-isns.8.gz %{_unitdir}/target-isns.service %doc README.md %license COPYING %changelog * Fri Oct 16 2015 Andy Grover - 0.5-2 - Initial Fedora packaging