parent
7052aafb95
commit
25f1b9302e
|
@ -19,3 +19,4 @@
|
|||
/libstoragemgmt-1.3.1.tar.gz
|
||||
/libstoragemgmt-1.3.2.tar.gz
|
||||
/libstoragemgmt-1.3.5.tar.gz
|
||||
/libstoragemgmt-1.6.1.tar.gz
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
%bcond_with test
|
||||
|
||||
Name: libstoragemgmt
|
||||
Version: 1.3.5
|
||||
Version: 1.6.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Storage array management library
|
||||
Group: System Environment/Libraries
|
||||
|
@ -13,10 +13,11 @@ Requires: %{name}-python
|
|||
BuildRequires: autoconf automake libtool yajl-devel libxml2-devel check-devel perl
|
||||
BuildRequires: openssl-devel
|
||||
BuildRequires: python-argparse
|
||||
BuildRequires: python-six
|
||||
BuildRequires: glib2-devel
|
||||
BuildRequires: libconfig-devel
|
||||
BuildRequires: libudev-devel
|
||||
BuildRequires: python-devel
|
||||
BuildRequires: python2-devel
|
||||
BuildRequires: procps
|
||||
BuildRequires: sqlite-devel
|
||||
|
||||
|
@ -158,6 +159,51 @@ BuildArch: noarch
|
|||
The %{name}-hpsa-plugin package contains the plugin for HP
|
||||
SmartArray storage management via hpssacli.
|
||||
|
||||
%package arcconf-plugin
|
||||
Summary: Files for Microsemi Adaptec and Smart Family support for %{name}
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name}-python = %{version}
|
||||
Requires(post): %{name}-python = %{version}
|
||||
Requires(postun): %{name}-python = %{version}
|
||||
BuildArch: noarch
|
||||
|
||||
%description arcconf-plugin
|
||||
The %{name}-arcconf-plugin package contains the plugin for Microsemi
|
||||
Adaptec RAID and Smart Family Controller storage management.
|
||||
|
||||
%package nfs-plugin
|
||||
Summary: Files for NFS local filesystem support for %{name}
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name}-python = %{version}
|
||||
Requires: %{name}-nfs-plugin-clibs = %{version}
|
||||
Requires(post): %{name}-python = %{version}
|
||||
Requires(postun): %{name}-python = %{version}
|
||||
|
||||
%description nfs-plugin
|
||||
The nfs-plugin package contains plug-in for local NFS exports support.
|
||||
|
||||
%package nfs-plugin-clibs
|
||||
Summary: Python C extension module for %{name} NFS plugin
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name} = %{version}
|
||||
|
||||
%description nfs-plugin-clibs
|
||||
The %{name}-nfs-plugin-clibs package contains python C extension for %{name}
|
||||
NFS plugin.
|
||||
|
||||
%package local-plugin
|
||||
Summary: Files for local pseudo plugin of %{name}
|
||||
Group: System Environment/Libraries
|
||||
Requires: %{name}-python = %{version}
|
||||
Requires(post): %{name}-python = %{version}
|
||||
Requires(postun): %{name}-python = %{version}
|
||||
BuildArch: noarch
|
||||
|
||||
%description local-plugin
|
||||
The nfs-plugin package contains plug-in for local NFS exports support.
|
||||
LibstorageMgmt local plugin allows user to manage locally storage system
|
||||
without caring which real plugin(s) should be used.
|
||||
|
||||
%prep
|
||||
%setup -q
|
||||
|
||||
|
@ -297,6 +343,42 @@ if [ $1 -eq 0 ]; then
|
|||
/etc/rc.d/init.d/libstoragemgmtd restart >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
# Need to restart lsmd if plugin is new installed or removed.
|
||||
%post arcconf-plugin
|
||||
if [ $1 -eq 1 ]; then
|
||||
# New install.
|
||||
/etc/rc.d/init.d/libstoragemgmtd restart >/dev/null 2>&1 || :
|
||||
fi
|
||||
%postun arcconf-plugin
|
||||
if [ $1 -eq 0 ]; then
|
||||
# Remove
|
||||
/etc/rc.d/init.d/libstoragemgmtd restart >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
# Need to restart lsmd if plugin is new installed or removed.
|
||||
%post nfs-plugin
|
||||
if [ $1 -eq 1 ]; then
|
||||
# New install.
|
||||
/etc/rc.d/init.d/libstoragemgmtd restart >/dev/null 2>&1 || :
|
||||
fi
|
||||
%postun nfs-plugin
|
||||
if [ $1 -eq 0 ]; then
|
||||
# Remove
|
||||
/etc/rc.d/init.d/libstoragemgmtd restart >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
# Need to restart lsmd if plugin is new installed or removed.
|
||||
%post local-plugin
|
||||
if [ $1 -eq 1 ]; then
|
||||
# New install.
|
||||
/etc/rc.d/init.d/libstoragemgmtd restart >/dev/null 2>&1 || :
|
||||
fi
|
||||
%postun local-plugin
|
||||
if [ $1 -eq 0 ]; then
|
||||
# Remove
|
||||
/etc/rc.d/init.d/libstoragemgmtd restart >/dev/null 2>&1 || :
|
||||
fi
|
||||
|
||||
%files
|
||||
%defattr(-,root,root,-)
|
||||
%doc README COPYING.LIB NEWS
|
||||
|
@ -323,6 +405,8 @@ fi
|
|||
%{_includedir}/*
|
||||
%{_libdir}/*.so
|
||||
%{_libdir}/pkgconfig/%{name}.pc
|
||||
%{_mandir}/man3/lsm_*
|
||||
%{_mandir}/man3/libstoragemgmt*
|
||||
|
||||
%files python
|
||||
%defattr(-,root,root,-)
|
||||
|
@ -424,7 +508,41 @@ fi
|
|||
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/hpsa.conf
|
||||
%{_mandir}/man1/hpsa_lsmplugin.1*
|
||||
|
||||
%files nfs-plugin
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{python_sitelib}/lsm/plugin/nfs
|
||||
%{python_sitelib}/lsm/plugin/nfs/__init__.*
|
||||
%{python_sitelib}/lsm/plugin/nfs/nfs.*
|
||||
%{_sysconfdir}/lsm/pluginconf.d/nfs.conf
|
||||
%{_bindir}/nfs_lsmplugin
|
||||
%{_mandir}/man1/nfs_lsmplugin.1*
|
||||
|
||||
%files nfs-plugin-clibs
|
||||
%{python_sitelib}/lsm/plugin/nfs/nfs_clib.*
|
||||
|
||||
%files arcconf-plugin
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{python_sitelib}/lsm/plugin/arcconf
|
||||
%{python_sitelib}/lsm/plugin/arcconf/__init__.*
|
||||
%{python_sitelib}/lsm/plugin/arcconf/arcconf.*
|
||||
%{python_sitelib}/lsm/plugin/arcconf/utils.*
|
||||
%{_bindir}/arcconf_lsmplugin
|
||||
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/arcconf.conf
|
||||
%{_mandir}/man1/arcconf_lsmplugin.1*
|
||||
|
||||
%files local-plugin
|
||||
%defattr(-,root,root,-)
|
||||
%dir %{python_sitelib}/lsm/plugin/local
|
||||
%{python_sitelib}/lsm/plugin/local/__init__.*
|
||||
%{python_sitelib}/lsm/plugin/local/local.*
|
||||
%{_sysconfdir}/lsm/pluginconf.d/local.conf
|
||||
%{_bindir}/local_lsmplugin
|
||||
%{_mandir}/man1/local_lsmplugin.1*
|
||||
|
||||
%changelog
|
||||
* Fri Mar 23 2018 Gris Ge <fge@redhat.com> - 1.6.1-1
|
||||
- Upgrade to 1.6.1
|
||||
|
||||
* Tue Sep 27 2016 Gris Ge <fge@redhat.com> 1.3.5-1
|
||||
- Upgrade to 1.3.5
|
||||
|
||||
|
|
Loading…
Reference in New Issue