Blame SPECS/libstoragemgmt.spec

d3fdf1
%ifnarch x86_64
d3fdf1
%define skip_mem_check 1
d3fdf1
%endif
d3fdf1
d3fdf1
Name:           libstoragemgmt
c7bd6e
Version:        1.6.2
c7bd6e
Release:        4%{?dist}
d3fdf1
Summary:        Storage array management library
d3fdf1
Group:          System Environment/Libraries
d3fdf1
License:        LGPLv2+
d3fdf1
URL:            https://github.com/libstorage/libstoragemgmt
d3fdf1
Source0:        https://github.com/libstorage/libstoragemgmt/releases/download/%{version}/%{name}-%{version}.tar.gz
c7bd6e
Patch1:         BZ_1582458-Python-plugin-runner-don-t-print-socket-error-to-sys.patch
c7bd6e
Patch2:         BZ_1623515-FHS_fix.patch
d3fdf1
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
d3fdf1
Requires:       %{name}-python
d3fdf1
BuildRequires:  autoconf automake libtool yajl-devel libxml2-devel check-devel perl
d3fdf1
BuildRequires:  openssl-devel
d3fdf1
BuildRequires:  python-argparse
d3fdf1
BuildRequires:  glib2-devel
d3fdf1
BuildRequires:  systemd
d3fdf1
BuildRequires:  bash-completion
d3fdf1
BuildRequires:  libconfig-devel
d3fdf1
BuildRequires:  systemd-devel
d3fdf1
BuildRequires:  python-devel
d3fdf1
BuildRequires:  procps
d3fdf1
BuildRequires:  chrpath
d3fdf1
BuildRequires:  python-six
d3fdf1
BuildRequires:  sqlite-devel
d3fdf1
%if 0%{?skip_mem_check} == 0
d3fdf1
BuildRequires:  valgrind
d3fdf1
%endif
d3fdf1
Requires: initscripts
d3fdf1
Requires(post): systemd
d3fdf1
Requires(preun): systemd
d3fdf1
Requires(postun): systemd
d3fdf1
d3fdf1
%description
d3fdf1
The libStorageMgmt library will provide a vendor agnostic open source storage
d3fdf1
application programming interface (API) that will allow management of storage
d3fdf1
arrays.  The library includes a command line interface for interactive use and
d3fdf1
scripting (command lsmcli).  The library also has a daemon that is used for
d3fdf1
executing plug-ins in a separate process (lsmd).
d3fdf1
d3fdf1
%package        devel
d3fdf1
Summary:        Development files for %{name}
d3fdf1
Group:          Development/Libraries
d3fdf1
Requires:       %{name}%{?_isa} = %{version}-%{release}
d3fdf1
d3fdf1
%description    devel
d3fdf1
The %{name}-devel package contains libraries and header files for
d3fdf1
developing applications that use %{name}.
d3fdf1
d3fdf1
%package        python
d3fdf1
Summary:        Python client libraries and plug-in support for %{name}
d3fdf1
Group:          System Environment/Libraries
d3fdf1
Requires:       %{name} = %{version}-%{release}
d3fdf1
Requires:       %{name}-python-clibs
d3fdf1
Requires:       python-six
d3fdf1
BuildArch:      noarch
d3fdf1
d3fdf1
%description    python
d3fdf1
The %{name}-python package contains python client libraries as
d3fdf1
well as python framework support and open source plug-ins written in python.
d3fdf1
d3fdf1
%package        python-clibs
d3fdf1
Summary:        Python C extension module for %{name}
d3fdf1
Group:          System Environment/Libraries
d3fdf1
Requires:       %{name} = %{version}-%{release}
d3fdf1
d3fdf1
%description    python-clibs
d3fdf1
The %{name}-python-clibs package contains python client C extension
d3fdf1
libraries.
d3fdf1
d3fdf1
%package        smis-plugin
d3fdf1
Summary:        Files for SMI-S generic array support for %{name}
d3fdf1
Group:          System Environment/Libraries
d3fdf1
BuildRequires:  pywbem
d3fdf1
Requires:       pywbem
d3fdf1
Requires:       %{name}-python = %{version}-%{release}
d3fdf1
Requires(post): %{name}-python = %{version}-%{release}
d3fdf1
Requires(postun): %{name}-python = %{version}-%{release}
d3fdf1
BuildArch:      noarch
d3fdf1
d3fdf1
%description    smis-plugin
d3fdf1
The %{name}-smis-plugin package contains plug-in for generic SMI-S array
d3fdf1
support.
d3fdf1
d3fdf1
d3fdf1
%package        netapp-plugin
d3fdf1
Summary:        Files for NetApp array support for %{name}
d3fdf1
Group:          System Environment/Libraries
d3fdf1
BuildRequires:  m2crypto
d3fdf1
Requires:       m2crypto
d3fdf1
Requires:       %{name}-python = %{version}-%{release}
d3fdf1
Requires(post): %{name}-python = %{version}-%{release}
d3fdf1
Requires(postun): %{name}-python = %{version}-%{release}
d3fdf1
BuildArch:      noarch
d3fdf1
d3fdf1
%description    netapp-plugin
d3fdf1
The %{name}-netapp-plugin package contains plug-in for NetApp array
d3fdf1
support.
d3fdf1
d3fdf1
d3fdf1
%package        targetd-plugin
d3fdf1
Summary:        Files for targetd array support for %{name}
d3fdf1
Group:          System Environment/Libraries
d3fdf1
Requires:       %{name}-python = %{version}-%{release}
d3fdf1
Requires(post): %{name}-python = %{version}-%{release}
d3fdf1
Requires(postun): %{name}-python = %{version}-%{release}
d3fdf1
BuildArch:      noarch
d3fdf1
d3fdf1
%description    targetd-plugin
d3fdf1
The %{name}-targetd-plugin package contains plug-in for targetd array
d3fdf1
support.
d3fdf1
d3fdf1
d3fdf1
%package        nstor-plugin
d3fdf1
Summary:        Files for NexentaStor array support for %{name}
d3fdf1
Group:          System Environment/Libraries
d3fdf1
Requires:       %{name}-python = %{version}-%{release}
d3fdf1
Requires(post): %{name}-python = %{version}-%{release}
d3fdf1
Requires(postun): %{name}-python = %{version}-%{release}
d3fdf1
BuildArch:      noarch
d3fdf1
d3fdf1
%description    nstor-plugin
d3fdf1
The %{name}-nstor-plugin package contains plug-in for NexentaStor array
d3fdf1
support.
d3fdf1
d3fdf1
%package        megaraid-plugin
d3fdf1
Summary:        Files for LSI MegaRAID support for %{name}
d3fdf1
Group:          System Environment/Libraries
d3fdf1
Requires:       %{name}-python = %{version}-%{release}
d3fdf1
Requires(post): %{name}-python = %{version}-%{release}
d3fdf1
Requires(postun): %{name}-python = %{version}-%{release}
d3fdf1
BuildArch:      noarch
d3fdf1
d3fdf1
%description    megaraid-plugin
d3fdf1
The %{name}-megaraid-plugin package contains the plugin for LSI
d3fdf1
MegaRAID storage management via storcli.
d3fdf1
d3fdf1
%package        hpsa-plugin
d3fdf1
Summary:        Files for HPE SmartArray support for %{name}
d3fdf1
Group:          System Environment/Libraries
d3fdf1
Requires:       python-pyudev
d3fdf1
Requires:       %{name}-python = %{version}-%{release}
d3fdf1
Requires(post): %{name}-python = %{version}-%{release}
d3fdf1
Requires(postun): %{name}-python = %{version}-%{release}
d3fdf1
BuildArch:      noarch
d3fdf1
d3fdf1
%description    hpsa-plugin
d3fdf1
The %{name}-hpsa-plugin package contains the plugin for HPE
d3fdf1
SmartArray storage management via hpssacli.
d3fdf1
d3fdf1
%package        udev
d3fdf1
Summary:        Udev files for %{name}
d3fdf1
Group:          System Environment/Base
d3fdf1
d3fdf1
%description    udev
d3fdf1
The %{name}-udev package contains udev rules and helper utilities for
d3fdf1
uevents generated by the kernel.
d3fdf1
719f88
%package        arcconf-plugin
719f88
Summary:        Files for Microsemi Adaptec and Smart Family support for %{name}
719f88
Group:          System Environment/Libraries
719f88
Requires:       %{name}-python = %{version}-%{release}
719f88
Requires(post): %{name}-python = %{version}-%{release}
719f88
Requires(postun): %{name}-python = %{version}-%{release}
719f88
BuildArch:      noarch
719f88
719f88
%description    arcconf-plugin
719f88
The %{name}-arcconf-plugin package contains the plugin for Microsemi
719f88
Adaptec RAID and Smart Family Controller storage management.
719f88
719f88
%package        nfs-plugin
719f88
Summary:        Files for NFS local filesystem support for %{name}
719f88
Group:          System Environment/Libraries
719f88
Requires:       %{name}-python = %{version}-%{release}
719f88
Requires:       %{name}-nfs-plugin-clibs = %{version}-%{release}
719f88
Requires(post): %{name}-python = %{version}-%{release}
719f88
Requires(postun): %{name}-python = %{version}-%{release}
719f88
BuildArch:      noarch
719f88
719f88
%description    nfs-plugin
719f88
The nfs-plugin package contains plug-in for local NFS exports support.
719f88
719f88
%package        nfs-plugin-clibs
719f88
Summary:        Python C extension module for %{name} NFS plugin
719f88
Group:          System Environment/Libraries
719f88
Requires:       %{name} = %{version}-%{release}
719f88
719f88
%description    nfs-plugin-clibs
719f88
The %{name}-nfs-plugin-clibs package contains python C extension for %{name}
719f88
NFS plugin.
719f88
719f88
%package        local-plugin
719f88
Summary:        Files for local pseudo plugin of %{name}
719f88
Group:          System Environment/Libraries
719f88
Requires:       %{name}-python = %{version}-%{release}
719f88
Requires(post): %{name}-python = %{version}-%{release}
719f88
Requires(postun): %{name}-python = %{version}-%{release}
c7bd6e
Requires:       %{name}-arcconf-plugin = %{version}-%{release}
c7bd6e
Requires:       %{name}-nfs-plugin = %{version}-%{release}
c7bd6e
Requires:       %{name}-megaraid-plugin = %{version}-%{release}
c7bd6e
Requires:       %{name}-hpsa-plugin = %{version}-%{release}
719f88
BuildArch:      noarch
719f88
719f88
%description    local-plugin
719f88
LibstorageMgmt local plugin allows user to manage locally storage system
719f88
without caring which real plugin(s) should be used.
719f88
d3fdf1
%prep
c7bd6e
%autosetup -p1
d3fdf1
d3fdf1
#Make sure you always have a build section, even when you don't
d3fdf1
#need it, see: https://bugzilla.redhat.com/show_bug.cgi?id=192422
d3fdf1
%build
d3fdf1
c7bd6e
# We need to run this again as we changed Makefile.am in Patch2
c7bd6e
./autogen.sh
c7bd6e
d3fdf1
#Tell the install program to preserve file date/timestamps
d3fdf1
%configure --disable-static \
d3fdf1
%if 0%{?skip_mem_check} == 1
d3fdf1
    --without-mem-leak-test
d3fdf1
%endif
d3fdf1
d3fdf1
V=1 make %{?_smp_mflags}
d3fdf1
d3fdf1
%install
d3fdf1
rm -rf %{buildroot}
d3fdf1
make install DESTDIR=%{buildroot}
d3fdf1
find %{buildroot} -name '*.la' -exec rm -f {} ';'
d3fdf1
d3fdf1
install -d -m 0755 %{buildroot}/%{_unitdir}
d3fdf1
install -m 0644 packaging/daemon/libstoragemgmt.service \
d3fdf1
    %{buildroot}/%{_unitdir}/libstoragemgmt.service
d3fdf1
d3fdf1
#Files for udev handling
d3fdf1
mkdir -p %{buildroot}/%{_udevrulesdir}
d3fdf1
install -m 0644 tools/udev/90-scsi-ua.rules \
d3fdf1
    %{buildroot}/%{_udevrulesdir}/90-scsi-ua.rules
d3fdf1
install -m 0755 tools/udev/scan-scsi-target \
d3fdf1
    %{buildroot}/%{_udevrulesdir}/../scan-scsi-target
d3fdf1
d3fdf1
%clean
d3fdf1
rm -rf %{buildroot}
d3fdf1
d3fdf1
%check
d3fdf1
if ! make check
d3fdf1
then
d3fdf1
  cat ./test-suite.log || true
d3fdf1
  exit 1
d3fdf1
fi
d3fdf1
d3fdf1
%pre
d3fdf1
getent group libstoragemgmt >/dev/null || groupadd -r libstoragemgmt
d3fdf1
getent passwd libstoragemgmt >/dev/null || \
d3fdf1
    useradd -r -g libstoragemgmt -d /var/run/lsm -s /sbin/nologin \
d3fdf1
    -c "daemon account for libstoragemgmt" libstoragemgmt
d3fdf1
d3fdf1
%post
d3fdf1
/sbin/ldconfig
d3fdf1
# Create tmp socket folders.
d3fdf1
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
d3fdf1
%systemd_post libstoragemgmt.service
d3fdf1
d3fdf1
%preun
d3fdf1
%systemd_preun libstoragemgmt.service
d3fdf1
d3fdf1
%postun
d3fdf1
/sbin/ldconfig
d3fdf1
%systemd_postun libstoragemgmt.service
d3fdf1
d3fdf1
# Need to restart lsmd if plugin is new installed or removed.
d3fdf1
%post smis-plugin
d3fdf1
if [ $1 -eq 1 ]; then
d3fdf1
    # New install.
d3fdf1
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
d3fdf1
fi
d3fdf1
d3fdf1
%postun smis-plugin
d3fdf1
if [ $1 -eq 0 ]; then
d3fdf1
    # Remove
d3fdf1
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
d3fdf1
fi
d3fdf1
d3fdf1
%post netapp-plugin
d3fdf1
if [ $1 -eq 1 ]; then
d3fdf1
    # New install.
d3fdf1
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
d3fdf1
fi
d3fdf1
d3fdf1
%postun netapp-plugin
d3fdf1
if [ $1 -eq 0 ]; then
d3fdf1
    # Remove
d3fdf1
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
d3fdf1
fi
d3fdf1
d3fdf1
%post targetd-plugin
d3fdf1
if [ $1 -eq 1 ]; then
d3fdf1
    # New install.
d3fdf1
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
d3fdf1
fi
d3fdf1
d3fdf1
%postun targetd-plugin
d3fdf1
if [ $1 -eq 0 ]; then
d3fdf1
    # Remove
d3fdf1
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
d3fdf1
fi
d3fdf1
d3fdf1
%post nstor-plugin
d3fdf1
if [ $1 -eq 1 ]; then
d3fdf1
    # New install.
d3fdf1
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
d3fdf1
fi
d3fdf1
d3fdf1
%postun nstor-plugin
d3fdf1
if [ $1 -eq 0 ]; then
d3fdf1
    # Remove
d3fdf1
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
d3fdf1
fi
d3fdf1
d3fdf1
%post megaraid-plugin
d3fdf1
if [ $1 -eq 1 ]; then
d3fdf1
    # New install.
d3fdf1
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
d3fdf1
fi
d3fdf1
d3fdf1
%postun megaraid-plugin
d3fdf1
if [ $1 -eq 0 ]; then
d3fdf1
    # Remove
d3fdf1
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
d3fdf1
fi
d3fdf1
d3fdf1
%post hpsa-plugin
d3fdf1
if [ $1 -eq 1 ]; then
d3fdf1
    # New install.
d3fdf1
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
d3fdf1
fi
d3fdf1
d3fdf1
%postun hpsa-plugin
d3fdf1
if [ $1 -eq 0 ]; then
d3fdf1
    # Remove
d3fdf1
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
d3fdf1
fi
d3fdf1
719f88
# Need to restart lsmd if plugin is new installed or removed.
719f88
%post nfs-plugin
719f88
if [ $1 -eq 1 ]; then
719f88
    # New install.
719f88
    /usr/bin/systemctl try-restart libstoragemgmt.service \
719f88
        >/dev/null 2>&1 || :
719f88
fi
719f88
719f88
%postun nfs-plugin
719f88
if [ $1 -eq 0 ]; then
719f88
    # Remove
719f88
    /usr/bin/systemctl try-restart libstoragemgmt.service \
719f88
        >/dev/null 2>&1 || :
719f88
fi
719f88
719f88
# Need to restart lsmd if plugin is new installed or removed.
719f88
%post arcconf-plugin
719f88
if [ $1 -eq 1 ]; then
719f88
    # New install.
719f88
    /usr/bin/systemctl try-restart libstoragemgmt.service \
719f88
        >/dev/null 2>&1 || :
719f88
fi
719f88
719f88
%postun arcconf-plugin
719f88
if [ $1 -eq 0 ]; then
719f88
    # Remove
719f88
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
719f88
fi
719f88
c7bd6e
# Need to restart lsmd if plugin is new installed or removed.
c7bd6e
%post local-plugin
c7bd6e
if [ $1 -eq 1 ]; then
c7bd6e
    # New install.
c7bd6e
    /usr/bin/systemctl try-restart libstoragemgmt.service \
c7bd6e
        >/dev/null 2>&1 || :
c7bd6e
fi
c7bd6e
c7bd6e
%postun local-plugin
c7bd6e
if [ $1 -eq 0 ]; then
c7bd6e
    # Remove
c7bd6e
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
c7bd6e
fi
c7bd6e
d3fdf1
%files
d3fdf1
%defattr(-,root,root,-)
d3fdf1
%doc README COPYING.LIB
d3fdf1
%{_mandir}/man1/lsmcli.1*
d3fdf1
%{_mandir}/man1/lsmd.1*
d3fdf1
%{_mandir}/man5/lsmd.conf.5*
d3fdf1
%{_libdir}/*.so.*
d3fdf1
%{_bindir}/lsmcli
d3fdf1
%{_datadir}/bash-completion/completions/lsmcli
d3fdf1
%{_bindir}/lsmd
d3fdf1
%{_bindir}/simc_lsmplugin
d3fdf1
%dir %{_sysconfdir}/lsm
d3fdf1
%dir %{_sysconfdir}/lsm/pluginconf.d
d3fdf1
%config(noreplace) %{_sysconfdir}/lsm/lsmd.conf
d3fdf1
%{_mandir}/man1/simc_lsmplugin.1*
d3fdf1
d3fdf1
%{_unitdir}/%{name}.service
d3fdf1
d3fdf1
%ghost %dir %attr(0755, -, -) /run/lsm/
d3fdf1
%ghost %dir %attr(0755, -, -) /run/lsm/ipc
d3fdf1
d3fdf1
%attr(0644, root, root) %{_tmpfilesdir}/%{name}.conf
d3fdf1
d3fdf1
%files devel
d3fdf1
%defattr(-,root,root,-)
d3fdf1
%{_includedir}/*
d3fdf1
%{_libdir}/*.so
d3fdf1
%{_libdir}/pkgconfig/%{name}.pc
719f88
%{_mandir}/man3/lsm_*
719f88
%{_mandir}/man3/libstoragemgmt*
d3fdf1
d3fdf1
%files python
d3fdf1
%defattr(-,root,root,-)
d3fdf1
#Python library files
d3fdf1
%dir %{python_sitelib}/lsm
d3fdf1
%{python_sitelib}/lsm/__init__.*
d3fdf1
%dir %{python_sitelib}/lsm/external
d3fdf1
%{python_sitelib}/lsm/external/*
d3fdf1
%{python_sitelib}/lsm/_client.*
d3fdf1
%{python_sitelib}/lsm/_common.*
d3fdf1
%{python_sitelib}/lsm/_data.*
d3fdf1
%{python_sitelib}/lsm/_iplugin.*
d3fdf1
%{python_sitelib}/lsm/_pluginrunner.*
d3fdf1
%{python_sitelib}/lsm/_transport.*
d3fdf1
%{python_sitelib}/lsm/_local_disk.*
d3fdf1
%{python_sitelib}/lsm/version.*
d3fdf1
%dir %{python_sitelib}/lsm/plugin
d3fdf1
%{python_sitelib}/lsm/plugin/__init__.*
d3fdf1
%dir %{python_sitelib}/lsm/plugin/sim
d3fdf1
%{python_sitelib}/lsm/plugin/sim/__init__.*
d3fdf1
%{python_sitelib}/lsm/plugin/sim/simulator.*
d3fdf1
%{python_sitelib}/lsm/plugin/sim/simarray.*
d3fdf1
%dir %{python_sitelib}/lsm/lsmcli
d3fdf1
%{python_sitelib}/lsm/lsmcli/__init__.*
d3fdf1
%{python_sitelib}/lsm/lsmcli/data_display.*
d3fdf1
%{python_sitelib}/lsm/lsmcli/cmdline.*
d3fdf1
%{_bindir}/sim_lsmplugin
d3fdf1
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/sim.conf
d3fdf1
%{_mandir}/man1/sim_lsmplugin.1*
c7bd6e
%dir %{_libexecdir}/lsm.d
c7bd6e
%{_libexecdir}/lsm.d/find_unused_lun.py*
c7bd6e
%{_libexecdir}/lsm.d/local_sanity_check.py*
d3fdf1
d3fdf1
# Compiled C files for python library
d3fdf1
%files python-clibs
d3fdf1
%{python_sitelib}/lsm/_clib.*
d3fdf1
d3fdf1
%files smis-plugin
d3fdf1
%defattr(-,root,root,-)
d3fdf1
%dir %{python_sitelib}/lsm/plugin/smispy
d3fdf1
%{python_sitelib}/lsm/plugin/smispy/__init__.*
d3fdf1
%{python_sitelib}/lsm/plugin/smispy/smis.*
d3fdf1
%{python_sitelib}/lsm/plugin/smispy/dmtf.*
d3fdf1
%{python_sitelib}/lsm/plugin/smispy/utils.*
d3fdf1
%{python_sitelib}/lsm/plugin/smispy/smis_common.*
d3fdf1
%{python_sitelib}/lsm/plugin/smispy/smis_cap.*
d3fdf1
%{python_sitelib}/lsm/plugin/smispy/smis_sys.*
d3fdf1
%{python_sitelib}/lsm/plugin/smispy/smis_pool.*
d3fdf1
%{python_sitelib}/lsm/plugin/smispy/smis_disk.*
d3fdf1
%{python_sitelib}/lsm/plugin/smispy/smis_vol.*
d3fdf1
%{python_sitelib}/lsm/plugin/smispy/smis_ag.*
d3fdf1
%{_bindir}/smispy_lsmplugin
d3fdf1
%{_mandir}/man1/smispy_lsmplugin.1*
d3fdf1
d3fdf1
%files netapp-plugin
d3fdf1
%defattr(-,root,root,-)
d3fdf1
%dir %{python_sitelib}/lsm/plugin/ontap
d3fdf1
%{python_sitelib}/lsm/plugin/ontap/__init__.*
d3fdf1
%{python_sitelib}/lsm/plugin/ontap/na.*
d3fdf1
%{python_sitelib}/lsm/plugin/ontap/ontap.*
d3fdf1
%{_bindir}/ontap_lsmplugin
d3fdf1
%{_mandir}/man1/ontap_lsmplugin.1*
d3fdf1
d3fdf1
%files targetd-plugin
d3fdf1
%defattr(-,root,root,-)
d3fdf1
%dir %{python_sitelib}/lsm/plugin/targetd
d3fdf1
%{python_sitelib}/lsm/plugin/targetd/__init__.*
d3fdf1
%{python_sitelib}/lsm/plugin/targetd/targetd.*
d3fdf1
%{_bindir}/targetd_lsmplugin
d3fdf1
%{_mandir}/man1/targetd_lsmplugin.1*
d3fdf1
d3fdf1
%files nstor-plugin
d3fdf1
%defattr(-,root,root,-)
d3fdf1
%dir %{python_sitelib}/lsm/plugin/nstor
d3fdf1
%{python_sitelib}/lsm/plugin/nstor/__init__.*
d3fdf1
%{python_sitelib}/lsm/plugin/nstor/nstor.*
d3fdf1
%{_bindir}/nstor_lsmplugin
d3fdf1
%{_mandir}/man1/nstor_lsmplugin.1*
d3fdf1
d3fdf1
%files udev
d3fdf1
%defattr(-,root,root,-)
d3fdf1
%{_udevrulesdir}/../scan-scsi-target
d3fdf1
%{_udevrulesdir}/90-scsi-ua.rules
d3fdf1
d3fdf1
%files megaraid-plugin
d3fdf1
%defattr(-,root,root,-)
d3fdf1
%dir %{python_sitelib}/lsm/plugin/megaraid
d3fdf1
%{python_sitelib}/lsm/plugin/megaraid/__init__.*
d3fdf1
%{python_sitelib}/lsm/plugin/megaraid/megaraid.*
d3fdf1
%{python_sitelib}/lsm/plugin/megaraid/utils.*
d3fdf1
%{_bindir}/megaraid_lsmplugin
d3fdf1
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/megaraid.conf
d3fdf1
%{_mandir}/man1/megaraid_lsmplugin.1*
d3fdf1
d3fdf1
%files hpsa-plugin
d3fdf1
%defattr(-,root,root,-)
d3fdf1
%dir %{python_sitelib}/lsm/plugin/hpsa
d3fdf1
%{python_sitelib}/lsm/plugin/hpsa/__init__.*
d3fdf1
%{python_sitelib}/lsm/plugin/hpsa/hpsa.*
d3fdf1
%{python_sitelib}/lsm/plugin/hpsa/utils.*
d3fdf1
%{_bindir}/hpsa_lsmplugin
d3fdf1
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/hpsa.conf
d3fdf1
%{_mandir}/man1/hpsa_lsmplugin.1*
d3fdf1
719f88
%files nfs-plugin
719f88
%defattr(-,root,root,-)
719f88
%dir %{python_sitelib}/lsm/plugin/nfs
719f88
%{python_sitelib}/lsm/plugin/nfs/__init__.*
719f88
%{python_sitelib}/lsm/plugin/nfs/nfs.*
719f88
%{_sysconfdir}/lsm/pluginconf.d/nfs.conf
719f88
%{_bindir}/nfs_lsmplugin
719f88
%{_mandir}/man1/nfs_lsmplugin.1*
719f88
719f88
%files nfs-plugin-clibs
719f88
%{python_sitelib}/lsm/plugin/nfs/nfs_clib.*
719f88
719f88
%files arcconf-plugin
719f88
%defattr(-,root,root,-)
719f88
%dir %{python_sitelib}/lsm/plugin/arcconf
719f88
%{python_sitelib}/lsm/plugin/arcconf/__init__.*
719f88
%{python_sitelib}/lsm/plugin/arcconf/arcconf.*
719f88
%{python_sitelib}/lsm/plugin/arcconf/utils.*
719f88
%{_bindir}/arcconf_lsmplugin
719f88
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/arcconf.conf
719f88
%{_mandir}/man1/arcconf_lsmplugin.1*
719f88
719f88
%files local-plugin
719f88
%defattr(-,root,root,-)
719f88
%dir %{python_sitelib}/lsm/plugin/local
719f88
%{python_sitelib}/lsm/plugin/local/__init__.*
719f88
%{python_sitelib}/lsm/plugin/local/local.*
719f88
%{_sysconfdir}/lsm/pluginconf.d/local.conf
719f88
%{_bindir}/local_lsmplugin
719f88
%{_mandir}/man1/local_lsmplugin.1*
719f88
d3fdf1
%changelog
c7bd6e
* Fri Aug 31 2018 Gris Ge <fge@redhat.com> - 1.6.2-4
c7bd6e
- Fix FHS problem of find_unused_lun.py and etc, (RHBZ #1623515)
c7bd6e
c7bd6e
* Thu Jul 12 2018 Gris Ge <fge@redhat.com> 1.6.2-3
c7bd6e
- Fix rpm runtime dependency of libstoragemgmt-local-plugin.
c7bd6e
c7bd6e
* Tue Jun 26 2018 Gris Ge <fge@redhat.com> 1.6.2-2
c7bd6e
- Silence socket EPIPE error. (RHBZ #1582458)
c7bd6e
c7bd6e
* Tue May 15 2018 Gris Ge <fge@redhat.com> 1.6.2-1
c7bd6e
- Upgrade to 1.6.2
c7bd6e
719f88
* Tue Dec 12 2017 Gris Ge <fge@redhat.com> - 1.6.1-2
719f88
- Fix MegaRAID cache query and set. (RHBZ #1524490)
719f88
719f88
* Tue Oct 31 2017 Gris Ge <fge@redhat.com> - 1.6.1-1
719f88
- Upgrade to 1.6.1.
719f88
719f88
* Fri Oct 20 2017 Gris Ge <fge@redhat.com> - 1.6.0-2
719f88
- Fix missing pywbem import in SMI-S plugin
719f88
719f88
* Thu Oct 19 2017 Gris Ge <fge@redhat.com> - 1.6.0-1
719f88
- Upgrade to 1.6.0.
719f88
719f88
* Wed Oct 11 2017 Gris Ge <fge@redhat.com> - 1.5.0-2
719f88
- Fix multilib confliction of nfs-plugin by move binrary file to
719f88
  another subpackage libstoragemgmt-nfs-plugin-clibs
d3fdf1
719f88
* Sat Sep 30 2017 Gris Ge <fge@redhat.com> - 1.5.0-1
719f88
- Upgraded to 1.5.0.
d3fdf1
d3fdf1
* Thu Mar 30 2017 Gris Ge <fge@redhat.com> 1.4.0-3
d3fdf1
- Fix ONTAP SSL connection. # RHBZ 1437130
d3fdf1
d3fdf1
* Thu Feb 23 2017 Gris Ge <fge@redhat.com> 1.4.0-2
d3fdf1
- Include a patch for incorrect use of sizeof in C library.
d3fdf1
d3fdf1
* Tue Feb 21 2017 Gris Ge <fge@redhat.com> 1.4.0-1
d3fdf1
- Add Python3 support.
d3fdf1
- New sub rpm package python3-libstoragemgmt.
d3fdf1
- Add support of lmiwbem.
d3fdf1
- Allow plugin test to be run concurrently.
d3fdf1
- Bug fixes:
d3fdf1
    * Fix megaraid plugin for dell PERC.
d3fdf1
    * Fix local disk rotation speed query on NVMe disk.
d3fdf1
    * Fix lsmcli incorrect try-expect on local disk query.
d3fdf1
    * Fix all the gcc compile warnings.
d3fdf1
    * Fix the obsolete usage of AC_OUTPUT in configure.ac.
d3fdf1
- Library adds:
d3fdf1
    * Query serial of local disk:
d3fdf1
        lsm_local_disk_serial_num_get()/lsm.LocalDisk.serial_num_get()
d3fdf1
    * Query LED status of local disk:
d3fdf1
        lsm_local_disk_led_status_get()/lsm.LocalDisk.led_status_get()
d3fdf1
    * Query link speed of local disk:
d3fdf1
        lsm_local_disk_link_speed_get()/lsm.LocalDisk.link_speed_get()
d3fdf1
d3fdf1
* Wed Aug 03 2016 Gris Ge <fge@redhat.com> 1.3.4-1
d3fdf1
- Upgrade to 1.3.4
d3fdf1
d3fdf1
* Wed Jul 13 2016 Gris Ge <fge@redhat.com> 1.3.2-7
d3fdf1
- Fix https://bugzilla.redhat.com/show_bug.cgi?id=1355637
d3fdf1
d3fdf1
* Wed Jun 22 2016 Gris Ge <fge@redhat.com> 1.3.2-6
d3fdf1
- Apply the forgotten patch6.
d3fdf1
d3fdf1
* Wed Jun 22 2016 Gris Ge <fge@redhat.com> 1.3.2-5
d3fdf1
- Fix compile warning by removing unused static function _sd_name_of().
d3fdf1
d3fdf1
* Tue Jun 21 2016 Gris Ge <fge@redhat.com> 1.3.2-4
d3fdf1
- Fix https://bugzilla.redhat.com/show_bug.cgi?id=1348394
d3fdf1
d3fdf1
* Tue Jun 21 2016 Gris Ge <fge@redhat.com> 1.3.2-3
d3fdf1
- Fix https://bugzilla.redhat.com/show_bug.cgi?id=1346898
d3fdf1
d3fdf1
* Fri Jun 17 2016 Gris Ge <fge@redhat.com> 1.3.2-2
d3fdf1
- Fix https://bugzilla.redhat.com/show_bug.cgi?id=1346901
d3fdf1
d3fdf1
* Thu May 26 2016 Gris Ge <fge@redhat.com> 1.3.2-1
d3fdf1
- New upstream release 1.3.2
d3fdf1
d3fdf1
* Tue Sep 8 2015 Tony Asleson <tasleson@redhat.com> 1.2.3-4
d3fdf1
- Fix 'make check' when running as root
d3fdf1
  https://bugzilla.redhat.com/show_bug.cgi?id=1260899
d3fdf1
d3fdf1
* Thu Jul 2 2015 Tony Asleson <tasleson@redhat.com> 1.2.3-3
d3fdf1
- Megaraid fixes
d3fdf1
  * https://bugzilla.redhat.com/show_bug.cgi?id=1238554
d3fdf1
  * https://bugzilla.redhat.com/show_bug.cgi?id=1238582
d3fdf1
  * https://bugzilla.redhat.com/show_bug.cgi?id=1238566
d3fdf1
- Command line exit code fix:
d3fdf1
  * https://bugzilla.redhat.com/show_bug.cgi?id=1238737
d3fdf1
d3fdf1
* Thu Jun 25 2015 Tony Asleson <tasleson@redhat.com> 1.2.3-2
d3fdf1
- Be explicit in package version requirements
d3fdf1
- Add build section back to get debug-infos
d3fdf1
d3fdf1
* Wed Jun 24 2015 Tony Asleson <tasleson@redhat.com> 1.2.3-1
d3fdf1
- New upstream release
d3fdf1
- New sub-pacakges:
d3fdf1
    * libstoragemgmt-megaraid-plugin
d3fdf1
    * libstoragemgmt-hpsa-plugin
d3fdf1
- Add bash-completion script for lsmcli
d3fdf1
- Replace the hardcoded udev path with %{_udevrulesdir}.
d3fdf1
- Mark /run/lsm and /run/lsm/ipc as %ghost folder.
d3fdf1
- Add 'Requires(post)' and 'Requires(postun)' to plugins in order
d3fdf1
  to make sure plugin is installed after libstoragemgmt and removed before
d3fdf1
  libstoragemgmt.
d3fdf1
d3fdf1
* Thu Dec 11 2014 Tony Asleson <tasleson@redhat.com> 1.1.0-2
d3fdf1
- Remove PyYAML build dependency
d3fdf1
d3fdf1
* Thu Dec 4 2014 Tony Asleson <tasleson@redhat.com> 1.1.0-1
d3fdf1
- New upstream release
d3fdf1
d3fdf1
* Mon Oct 6 2014 Tony Asleson  <tasleson@redhat.com> - 1.0.0-4
d3fdf1
- Fix rpmdiff, error for path names
d3fdf1
  https://bugzilla.redhat.com/show_bug.cgi?id=1149368
d3fdf1
- Fix rpmdiff, multilib regressions
d3fdf1
  https://bugzilla.redhat.com/show_bug.cgi?id=1149371
d3fdf1
d3fdf1
* Fri Oct 3 2014 Tony Asleson  <tasleson@redhat.com> - 1.0.0-3
d3fdf1
- Use new systemd rpm macros
d3fdf1
  https://bugzilla.redhat.com/show_bug.cgi?id=1149010
d3fdf1
- Place config file in correct tmpfiles.d directory
d3fdf1
  https://bugzilla.redhat.com/show_bug.cgi?id=1122087
d3fdf1
d3fdf1
* Mon Sep 8 2014 Tony Asleson  <tasleson@redhat.com> - 1.0.0-2
d3fdf1
- Removed REST sub-package
d3fdf1
d3fdf1
* Sun Sep 7 2014 Tony Asleson <tasleson@redhat.com> - 1.0.0-1
d3fdf1
- New upstream release
d3fdf1
d3fdf1
* Fri Feb 28 2014 Tony Asleson <tasleson@redhat.com> - 0.0.24-4
d3fdf1
- https://bugzilla.redhat.com/show_bug.cgi?id=1071382
d3fdf1
d3fdf1
* Mon Feb 10 2014 Tony Asleson <tasleson@redhat.com> - 0.0.24-3
d3fdf1
- Corrected coverity found bugs
d3fdf1
d3fdf1
* Thu Jan 30 2014 Tony Asleson <tasleson@redhat.com> - 0.0.24-2
d3fdf1
- Missed patch to correct python paths
d3fdf1
d3fdf1
* Thu Jan 30 2014 Tony Asleson <tasleson@redhat.com> - 0.0.24-1
d3fdf1
- New upstream release
d3fdf1
- Patch nstor plugin for json instead of simple-json
d3fdf1
d3fdf1
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.0.22-10
d3fdf1
- Mass rebuild 2014-01-24
d3fdf1
d3fdf1
* Fri Jan 3 2014 Ewan D. Milne <emilne@redhat.com> 0.0.22-9
d3fdf1
- Fixed DEVPATH parsing in scan-scsi-target
d3fdf1
d3fdf1
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.0.22-7
d3fdf1
- Mass rebuild 2013-12-27
d3fdf1
d3fdf1
* Mon Dec 2 2013 Tony Asleson <tasleson@redhat.com> 0.0.22-6
d3fdf1
- https://bugzilla.redhat.com/show_bug.cgi?id=1019467
d3fdf1
d3fdf1
* Fri Nov 22 2013 Tony Asleson <tasleson@redhat.com> 0.0.22-5
d3fdf1
- https://bugzilla.redhat.com/show_bug.cgi?id=1019320
d3fdf1
d3fdf1
* Mon Oct 14 2013 Tony Asleson <tasleson@redhat.com> 0.0.22-4
d3fdf1
- https://bugzilla.redhat.com/show_bug.cgi?id=905465
d3fdf1
d3fdf1
* Fri Oct 4 2013 Tony Asleson <tasleson@redhat.com> 0.0.22-3
d3fdf1
- https://bugzilla.redhat.com/show_bug.cgi?id=998898
d3fdf1
d3fdf1
* Tue Aug 13 2013 Tony Asleson <tasleson@redhat.com> 0.0.22-2
d3fdf1
- BZ 987027
d3fdf1
- BZ 990577
d3fdf1
- BZ 968384
d3fdf1
- New upstream release
d3fdf1
d3fdf1
* Tue Jul 16 2013 Tony Asleson <tasleson@redhat.com> 0.0.21-1
d3fdf1
- New upstream release
d3fdf1
- Put plug-ins in separate sub packages
d3fdf1
- Don't include IBM plug-in on RHEL > 6, missing paramiko
d3fdf1
d3fdf1
* Tue May 28 2013 Tony Asleson <tasleson@redhat.com> - 0.0.20-1
d3fdf1
- New upstream release
d3fdf1
- Separate package for python libraries
d3fdf1
- Make timestamps match on version.py in library
d3fdf1
- Add python-paramiko requirement for IBM plug-in
d3fdf1
d3fdf1
* Mon Apr 22 2013 Tony Asleson <tasleson@redhat.com> 0.0.19-1
d3fdf1
- New upstream release
d3fdf1
d3fdf1
* Fri Mar 8 2013 Tony Asleson <tasleson@redhat.com> 0.0.18-1
d3fdf1
- New upstream release
d3fdf1
- Corrected spec file for missing "fi" in postinstall
d3fdf1
d3fdf1
* Tue Jan 29 2013 Tony Asleson <tasleson@redhat.com> 0.0.16-1
d3fdf1
- New upstream release
d3fdf1
d3fdf1
* Wed Oct 31 2012 Tony Asleson <tasleson@redhat.com> 0.0.14-1
d3fdf1
- Initial RHEL Release
d3fdf1
- Removed conditional checks for fedora as RHEL7 uses systemd
d3fdf1
d3fdf1
* Wed Oct 3 2012 Tony Asleson <tasleson@redhat.com> - 0.0.13-1
d3fdf1
- New upstream release
d3fdf1
d3fdf1
* Tue Sep 18 2012 Tony Asleson <tasleson@redhat.com> - 0.0.12-1
d3fdf1
- New upstream release
d3fdf1
d3fdf1
* Mon Aug 13 2012 Tony Asleson <tasleson@redhat.com> 0.0.11-1
d3fdf1
- New upstream release
d3fdf1
d3fdf1
* Fri Jul 27 2012 Dan HorĂ¡k <dan[at]danny.cz> - 0.0.9-3
d3fdf1
- detect also non-x86 arches in Pegasus check
d3fdf1
d3fdf1
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.0.9-2
d3fdf1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d3fdf1
d3fdf1
* Tue Jun 12 2012 Tony Asleson <tasleson@redhat.com> 0.0.9-1
d3fdf1
- Initial checkin of lio plug-in
d3fdf1
- System filtering via URI (smispy)
d3fdf1
- Error code mapping (ontap)
d3fdf1
- Fixed build so same build tarball is used for all binaries
d3fdf1
d3fdf1
* Mon Jun 4 2012 Tony Asleson <tasleson@redhat.com> 0.0.8-1
d3fdf1
- Make building of SMI-S CPP plugin optional
d3fdf1
- Add pkg-config file
d3fdf1
- SMIS: Fix exception while retrieving Volumes
d3fdf1
- SMIS: Fix exception while retrieving Volumes
d3fdf1
- lsm: Add package imports
d3fdf1
- Make Smis class available in lsm python package
d3fdf1
- Add option to disable building C unit test
d3fdf1
- Make simulator classes available in lsm python package
d3fdf1
- Make ontap class available in lsm python package
d3fdf1
- Changes to support building on Fedora 17 (v2)
d3fdf1
- Spec. file updates from feedback from T. Callaway (spot)
d3fdf1
- F17 linker symbol visibility correction
d3fdf1
- Remove unneeded build dependencies and cleaned up some warnings
d3fdf1
- C Updates, client C library feature parity with python
d3fdf1
d3fdf1
* Fri May 11 2012 Tony Asleson <tasleson@redhat.com> 0.0.7-1
d3fdf1
- Bug fix for smi-s constants
d3fdf1
- Display formatting improvements
d3fdf1
- Added header option for lsmcli
d3fdf1
- Improved version handling for builds
d3fdf1
- Made terminology consistent
d3fdf1
- Ability to list visibility for access groups and volumes
d3fdf1
- Simulator plug-in fully supports all block operations
d3fdf1
- Added support for multiple systems with a single plug-in instance
d3fdf1
d3fdf1
* Fri Apr 20 2012 Tony Asleson <tasleson@redhat.com> 0.0.6-1
d3fdf1
- Documentation improvements (man & source code)
d3fdf1
- Support for access groups
d3fdf1
- Unified spec files Fedora/RHEL
d3fdf1
- Package version auto generate
d3fdf1
- Rpm target added to make
d3fdf1
- Bug fix for missing optional property on volume retrieval (smispy plug-in)
d3fdf1
d3fdf1
* Fri Apr 6 2012 Tony Asleson <tasleson@redhat.com> 0.0.5-1
d3fdf1
- Spec file clean-up improvements
d3fdf1
- Async. operation added to lsmcli and ability to check on job status
d3fdf1
- Sub volume replication support
d3fdf1
- Ability to check for child dependencies on VOLUMES, FS and files
d3fdf1
- SMI-S Bug fixes and improvements
d3fdf1
d3fdf1
* Mon Mar 26 2012 Tony Asleson <tasleson@redhat.com> 0.0.4-1
d3fdf1
- Restore from snapshot
d3fdf1
- Job identifiers string instead of integer
d3fdf1
- Updated license address
d3fdf1
d3fdf1
* Wed Mar 14 2012 Tony Asleson <tasleson@redhat.com> 0.0.3-1
d3fdf1
- Changes to installer, daemon uid, gid, /var/run/lsm/*
d3fdf1
- NFS improvements and bug fixes
d3fdf1
- Python library clean up (rpmlint errors)
d3fdf1
d3fdf1
* Sun Mar 11 2012 Tony Asleson <tasleson@redhat.com> 0.0.2-1
d3fdf1
- Added NetApp native plugin
d3fdf1
d3fdf1
* Mon Feb 6 2012 Tony Asleson <tasleson@redhat.com>  0.0.1alpha-1
d3fdf1
- Initial version of package