Browse Source

isns-utils package update

Signed-off-by: basebuilder_pel7ppc64bebuilder0 <basebuilder@powerel.org>
master
basebuilder_pel7ppc64bebuilder0 5 years ago
parent
commit
a8d038ea09
  1. 137
      SPECS/isns-utils.spec

137
SPECS/isns-utils.spec

@ -1,22 +1,19 @@
Name: isns-utils Name: isns-utils
Version: 0.93 Version: 0.97
Release: 7%{?dist} Release: 6%{?dist}
Summary: The iSNS daemon and utility programs Summary: The iSNS daemon and utility programs


Group: System Environment/Daemons Group: System Environment/Daemons
License: LGPLv2+ License: LGPLv2+
URL: https://github.com/mikechristie/open-isns URL: https://github.com/open-iscsi/open-isns
Source0: https://github.com/cleech/open-isns/releases/download/v0.93/open-isns-%{version}.tar.bz2 Source0: https://github.com/open-iscsi/open-isns/archive/v%{version}.tar.gz#/open-isns-%{version}.tar.gz
Source1: isnsd.service Source1: isnsd.service


Patch1: 0001-use-LDFLAGS.patch BuildRequires: openssl-devel automake pkgconfig systemd-devel systemd

BuildRequires: openssl-devel automake pkgconfig systemd
Requires(post): systemd-units Requires(post): systemd-units
Requires(preun): systemd-units Requires(preun): systemd-units
Requires(postun): systemd-units Requires(postun): systemd-units


%global _hardened_build 1


%description %description
The iSNS package contains the daemon and tools to setup a iSNS server, The iSNS package contains the daemon and tools to setup a iSNS server,
@ -24,36 +21,40 @@ and iSNS client tools. The Internet Storage Name Service (iSNS) protocol
allows automated discovery, management and configuration of iSCSI and allows automated discovery, management and configuration of iSCSI and
Fibre Channel devices (using iFCP gateways) on a TCP/IP network. Fibre Channel devices (using iFCP gateways) on a TCP/IP network.


%package libs
Group: Development/Libraries
Summary: Shared library files for iSNS

%description libs
Shared library files for iSNS

%package devel
Group: Development/Libraries
Summary: Development files for iSNS
Requires: %{name}-libs%{?_isa} = %{version}-%{release}

%description devel
Development files for iSNS


%prep %prep
%setup -q -n open-isns-%{version} %setup -q -n open-isns-%{version}
%patch1 -p1




%build %build
autoconf %configure --enable-shared --disable-static
autoheader make %{?_smp_mflags}
%{configure}
%{__sed} -i -e 's|-Wall -g -O2|%{optflags}|' Makefile
%{__make} %{?_smp_mflags}




%install %install
%{__install} -d %{buildroot}%{_sbindir} make install DESTDIR=%{buildroot}
%{__install} -d %{buildroot}%{_mandir}/man8 make install_hdrs DESTDIR=%{buildroot}
%{__install} -d %{buildroot}%{_mandir}/man5 make install_lib DESTDIR=%{buildroot}
%{__install} -d %{buildroot}%{_unitdir} chmod 755 %{buildroot}%{_sbindir}/isns*
%{__install} -d %{buildroot}%{_sysconfdir}/isns chmod 755 %{buildroot}%{_libdir}/libisns.so.0
%{__install} -d %{buildroot}%{_var}/lib rm %{buildroot}%{_unitdir}/isnsd.service
%{__install} -d %{buildroot}%{_var}/lib/isns rm %{buildroot}%{_unitdir}/isnsd.socket

install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/isnsd.service
%{__install} -p -m 644 etc/isnsd.conf %{buildroot}%{_sysconfdir}/isns/isnsd.conf
%{__install} -p -m 644 etc/isnsdd.conf %{buildroot}%{_sysconfdir}/isns/isnsdd.conf
%{__install} -p -m 644 etc/isnsadm.conf %{buildroot}%{_sysconfdir}/isns/isnsadm.conf

%{__install} -p -m 755 isnsd isnsdd isnsadm isnssetup %{buildroot}%{_sbindir}
%{__install} -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/isnsd.service
%{__install} -p -m 644 doc/isns_config.5 %{buildroot}/%{_mandir}/man5/
%{__install} -p -m 644 doc/isnsd.8 doc/isnsdd.8 doc/isnsadm.8 %{buildroot}/%{_mandir}/man8/




%post %post
@ -79,38 +80,82 @@ autoheader
/bin/systemctl try-restart isnsd.service >/dev/null 2>&1 || : /bin/systemctl try-restart isnsd.service >/dev/null 2>&1 || :




%clean %post -n %{name}-libs -p /sbin/ldconfig
%{__rm} -rf %{buildroot}
%postun -n %{name}-libs -p /sbin/ldconfig



%files %files
%defattr(-,root,root,-)
%doc COPYING README %doc COPYING README
%{_sbindir}/isnsd %{_sbindir}/isnsd
%{_sbindir}/isnsadm %{_sbindir}/isnsadm
%{_sbindir}/isnsdd %{_sbindir}/isnsdd
%{_sbindir}/isnssetup
%{_mandir}/man8/*
%{_mandir}/man5/* %{_mandir}/man5/*
%{_mandir}/man8/*
%{_unitdir}/isnsd.service %{_unitdir}/isnsd.service
%dir %{_sysconfdir}/isns %dir %{_sysconfdir}/isns
%dir %{_var}/lib/isns %dir %{_var}/lib/isns
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/isns/* %config(noreplace) %{_sysconfdir}/isns/*

%files libs
%defattr(-,root,root,-)
%{_libdir}/libisns.so.0

%files devel
%defattr(-,root,root,-)
%dir %{_includedir}/libisns
%{_includedir}/libisns/*.h
%{_libdir}/libisns.so



%changelog %changelog
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.93-7 * Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.97-6
- Mass rebuild 2014-01-24 - Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.97-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.97-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Wed Apr 12 2017 Chris Leech <cleech@redhat.com> - 0.97-3
- switch to building as a shared library instead of static

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.97-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Tue Dec 13 2016 Miro Hrončok <mhroncok@redhat.com> - 0.97-1
- Update to 0.97
- Upstream moved on GitHub

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.94-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Sat Dec 12 2015 Michael Schwendt <mschwendt@fedoraproject.org> - 0.94-2
- add -static Provides to the -devel package (#1284298)

* Mon Oct 05 2015 Chris Leech <cleech@redhat.com> - 0.94-1
- new upstream location, update to 0.94
- new devel package, upstream open-iscsi is dropping it's internal copy

* Wed Jun 17 2015 Chris Leech <cleech@redhat.com> - 0.93-8
- use of systemd rpm macros now require systemd as a BuildRequires

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild


* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.93-6 * Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-6
- Mass rebuild 2013-12-27 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild


* Fri Sep 13 2013 Chris Leech <cleech@redhat.com> - 0.93-5 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-5
- remove unneeded libssl requirement - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild


* Fri Sep 13 2013 Chris Leech <cleech@redhat.com> - 0.93-4 * Sun Aug 4 2013 Peter Robinson <pbrobinson@fedoraproject.org> 0.93-4
- set hardened build flag, required for long running processes (isnsd) - Fix FTBFS, modernise spec
- patch makefile to actually use LDFLAGS


* Mon Aug 19 2013 Chris Leech <cleech@redhat.com> - 0.93-3 * Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-3
- rpmlint fixes, cleanup spec to keep building after rpm changes - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild


* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-2 * Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.93-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

Loading…
Cancel
Save