ed3fd1
Name:           isns-utils
9155a0
Version:        0.99
9155a0
Release:        1%{?dist}
ed3fd1
Summary:        The iSNS daemon and utility programs
ed3fd1
ed3fd1
Group:          System Environment/Daemons
ed3fd1
License:        LGPLv2+
ed3fd1
URL:            https://github.com/open-iscsi/open-isns
ed3fd1
Source0:        https://github.com/open-iscsi/open-isns/archive/v%{version}.tar.gz#/open-isns-%{version}.tar.gz
9155a0
Patch1:		fix-openssl-argument-order-in-tests.patch
9155a0
Patch2:		test_as_installed.patch
ed3fd1
ed3fd1
BuildRequires:  openssl-devel automake pkgconfig systemd-devel systemd
ed3fd1
Requires(post): systemd-units
ed3fd1
Requires(preun): systemd-units
ed3fd1
Requires(postun): systemd-units
ed3fd1
ed3fd1
ed3fd1
%description
ed3fd1
The iSNS package contains the daemon and tools to setup a iSNS server,
ed3fd1
and iSNS client tools. The Internet Storage Name Service (iSNS) protocol
ed3fd1
allows automated discovery, management and configuration of iSCSI and
ed3fd1
Fibre Channel devices (using iFCP gateways) on a TCP/IP network.
ed3fd1
ed3fd1
%package libs
ed3fd1
Group: Development/Libraries
ed3fd1
Summary: Shared library files for iSNS
ed3fd1
ed3fd1
%description libs
ed3fd1
Shared library files for iSNS
ed3fd1
ed3fd1
%package devel
ed3fd1
Group: Development/Libraries
ed3fd1
Summary: Development files for iSNS
ed3fd1
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
ed3fd1
ed3fd1
%description devel
ed3fd1
Development files for iSNS
ed3fd1
ed3fd1
ed3fd1
%prep
9155a0
%autosetup -n open-isns-%{version} -p1
ed3fd1
ed3fd1
ed3fd1
%build
ed3fd1
%configure --enable-shared --disable-static
ed3fd1
make %{?_smp_mflags}
ed3fd1
ed3fd1
ed3fd1
%install
ed3fd1
make install DESTDIR=%{buildroot}
ed3fd1
make install_hdrs DESTDIR=%{buildroot}
ed3fd1
make install_lib DESTDIR=%{buildroot}
ed3fd1
chmod 755 %{buildroot}%{_sbindir}/isns*
ed3fd1
chmod 755 %{buildroot}%{_libdir}/libisns.so.0
ed3fd1
ed3fd1
ed3fd1
%post
9155a0
%systemd_post isnsd.service isnsd.socket
ed3fd1
ed3fd1
ed3fd1
%postun
9155a0
%systemd_postun isnsd.service isnsd.socket
ed3fd1
ed3fd1
ed3fd1
%preun
9155a0
%systemd_preun isnsd.service isnsd.socket
ed3fd1
ed3fd1
ed3fd1
%triggerun -- isns-utils < 0.91-7
ed3fd1
# Save the current service runlevel info
ed3fd1
# User must manually run systemd-sysv-convert --apply httpd
ed3fd1
# to migrate them to systemd targets
ed3fd1
/usr/bin/systemd-sysv-convert --save isnsd >/dev/null 2>&1 ||:
ed3fd1
ed3fd1
# Run these because the SysV package being removed won't do them
ed3fd1
/sbin/chkconfig --del isnsd >/dev/null 2>&1 || :
ed3fd1
/bin/systemctl try-restart isnsd.service >/dev/null 2>&1 || :
ed3fd1
ed3fd1
ed3fd1
%post -n %{name}-libs -p /sbin/ldconfig
ed3fd1
ed3fd1
%postun -n %{name}-libs -p /sbin/ldconfig
ed3fd1
ed3fd1
ed3fd1
%files
ed3fd1
%defattr(-,root,root,-)
ed3fd1
%doc COPYING README
ed3fd1
%{_sbindir}/isnsd
ed3fd1
%{_sbindir}/isnsadm
ed3fd1
%{_sbindir}/isnsdd
ed3fd1
%{_mandir}/man5/*
ed3fd1
%{_mandir}/man8/*
ed3fd1
%{_unitdir}/isnsd.service
9155a0
%{_unitdir}/isnsd.socket
ed3fd1
%dir %{_sysconfdir}/isns
ed3fd1
%dir %{_var}/lib/isns
ed3fd1
%config(noreplace) %{_sysconfdir}/isns/*
ed3fd1
ed3fd1
%files libs
ed3fd1
%defattr(-,root,root,-)
ed3fd1
%{_libdir}/libisns.so.0
ed3fd1
ed3fd1
%files devel
ed3fd1
%defattr(-,root,root,-)
ed3fd1
%dir %{_includedir}/libisns
ed3fd1
%{_includedir}/libisns/*.h
ed3fd1
%{_libdir}/libisns.so
ed3fd1
ed3fd1
ed3fd1
%changelog
9155a0
* Fri Mar 22 2019 Chris Leech <cleech@redhat.com> - 0.99-1
9155a0
- rebase to 0.99
9155a0
ed3fd1
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.97-6
ed3fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
ed3fd1
ed3fd1
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.97-5
ed3fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
ed3fd1
ed3fd1
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.97-4
ed3fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ed3fd1
ed3fd1
* Wed Apr 12 2017 Chris Leech <cleech@redhat.com> - 0.97-3
ed3fd1
- switch to building as a shared library instead of static
ed3fd1
ed3fd1
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.97-2
ed3fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ed3fd1
ed3fd1
* Tue Dec 13 2016 Miro HronĨok <mhroncok@redhat.com> - 0.97-1
ed3fd1
- Update to 0.97
ed3fd1
- Upstream moved on GitHub
ed3fd1
ed3fd1
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.94-3
ed3fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
ed3fd1
ed3fd1
* Sat Dec 12 2015 Michael Schwendt <mschwendt@fedoraproject.org> - 0.94-2
ed3fd1
- add -static Provides to the -devel package (#1284298)
ed3fd1
ed3fd1
* Mon Oct 05 2015 Chris Leech <cleech@redhat.com> - 0.94-1
ed3fd1
- new upstream location, update to 0.94
ed3fd1
- new devel package, upstream open-iscsi is dropping it's internal copy
ed3fd1
ed3fd1
* Wed Jun 17 2015 Chris Leech <cleech@redhat.com> - 0.93-8
ed3fd1
- use of systemd rpm macros now require systemd as a BuildRequires
ed3fd1
ed3fd1
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-7
ed3fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
ed3fd1
ed3fd1
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-6
ed3fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
ed3fd1
ed3fd1
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-5
ed3fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
ed3fd1
ed3fd1
* Sun Aug  4 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.93-4
ed3fd1
- Fix FTBFS, modernise spec
ed3fd1
ed3fd1
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-3
ed3fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
ed3fd1
ed3fd1
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-2
ed3fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
ed3fd1
ed3fd1
* Mon Sep 10 2012 Chris Leech <cleech@redhat.com> - 0.93-1
ed3fd1
- Rebase to 0.93
ed3fd1
- Make use of systemd rpm macros for scriptlets, BZ 850174
ed3fd1
ed3fd1
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-8
ed3fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
ed3fd1
ed3fd1
* Wed Feb 15 2012 Jon Ciesla <limburgher@gmail.com> - 0.91-7
ed3fd1
- Migrate to systemd, BZ 789707.
ed3fd1
ed3fd1
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-6
ed3fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
ed3fd1
ed3fd1
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-5
ed3fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
ed3fd1
ed3fd1
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 0.91-4
ed3fd1
- rebuilt with new openssl
ed3fd1
ed3fd1
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-3
ed3fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
ed3fd1
ed3fd1
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.91-2
ed3fd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
ed3fd1
ed3fd1
* Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 0.91-1
ed3fd1
- rebuild with new openssl
ed3fd1
ed3fd1
* Wed Jan 16 2008 Mike Christie <mchristie@redhat.com> - 0.91-0.0
ed3fd1
- first build