94b05b
Name:           target-isns
94b05b
License:        GPLv2+
94b05b
Summary:        An iSNS client for the Linux LIO iSCSI target 
b23c97
Version:        0.6.6
b23c97
Release:        1%{?dist}
b23c97
URL:            https://github.com/open-iscsi/target-isns
b23c97
Source:         %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Igor Gnatenko 6546d8
BuildRequires:  gcc
94b05b
BuildRequires:  cmake systemd-units
94b05b
Requires(post): systemd
94b05b
Requires(preun): systemd
94b05b
Requires(postun): systemd
94b05b
94b05b
94b05b
%description
94b05b
Target-isns is an Internet Storage Name Service (iSNS) client for the Linux
94b05b
LIO iSCSI target. It allows registering LIO iSCSI targets with an iSNS server.
94b05b
94b05b
%prep
94b05b
%setup -q
94b05b
94b05b
%build
94b05b
%cmake -DSUPPORT_SYSTEMD=ON .
94b05b
make %{?_smp_mflags}
94b05b
94b05b
%install
94b05b
make install DESTDIR=%{buildroot}
94b05b
install -m 644 target-isns.service %{buildroot}%{_unitdir}
94b05b
94b05b
%post
94b05b
%systemd_post target-isns.service
94b05b
94b05b
%preun
94b05b
%systemd_preun target-isns.service
94b05b
94b05b
%postun
94b05b
%systemd_postun_with_restart target-isns.service
94b05b
94b05b
%files
94b05b
%{_bindir}/target-isns
94b05b
%config(noreplace) %{_sysconfdir}/target-isns.conf
94b05b
%{_mandir}/man8/target-isns.8.gz
94b05b
%{_unitdir}/target-isns.service
94b05b
%doc README.md
94b05b
%license COPYING
94b05b
94b05b
%changelog
b23c97
* Tue Oct 01 2019 Maurizio Lombardi <mlombard@redhat.com> - 0.6.6-1
b23c97
- New upstream version
b23c97
9ff13a
* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-9
9ff13a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
9ff13a
bf5f3a
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-8
bf5f3a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
bf5f3a
3eca84
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-7
3eca84
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
3eca84
2b6eda
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-6
2b6eda
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
2b6eda
1dbe73
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-5
1dbe73
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
1dbe73
405a41
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-4
405a41
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
405a41
ba8f16
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-3
ba8f16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ba8f16
876f8b
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.2-2
876f8b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
876f8b
94b05b
* Mon Oct 19 2015 Andy Grover <agrover@redhat.com> - 0.6.2-1
94b05b
- New upstream version
94b05b
94b05b
* Fri Oct 16 2015 Andy Grover <agrover@redhat.com> - 0.5-2
94b05b
- Initial Fedora packaging