Blame SPECS/isns-utils.spec

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