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