[libstoragemgmt] Initial import (#807472)

tasleson tasleson at fedoraproject.org
Tue Jun 19 18:53:15 UTC 2012


commit 30083b0aa6b6942748f050211fb4d9a9b3f0da4b
Author: Tony Asleson <tasleson at redhat.com>
Date:   Tue Jun 19 13:52:44 2012 -0500

    Initial import (#807472)

 .gitignore          |    1 +
 libstoragemgmt.spec |  204 +++++++++++++++++++++++++++++++++++++++++++++++++++
 sources             |    1 +
 3 files changed, 206 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..4dcfdc6 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/libstoragemgmt-0.0.9.tar.gz
diff --git a/libstoragemgmt.spec b/libstoragemgmt.spec
new file mode 100644
index 0000000..2ca6d80
--- /dev/null
+++ b/libstoragemgmt.spec
@@ -0,0 +1,204 @@
+Name:           libstoragemgmt
+Version:        0.0.9
+Release:        1%{?dist}
+Summary:        Storage array management library
+Group:          System Environment/Libraries
+License:        LGPLv2+
+URL:            http://sourceforge.net/projects/libstoragemgmt/
+Source0:        http://sourceforge.net/projects/libstoragemgmt/files/Alpha/libstoragemgmt-%{version}.tar.gz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  yajl-devel libxml2-devel tog-pegasus-devel pywbem check-devel
+Requires:       pywbem
+
+%if 0%{?fedora}
+BuildRequires:  systemd-units
+Requires: initscripts
+Requires(post): systemd-units
+Requires(preun): systemd-units
+Requires(postun): systemd-units
+%endif
+
+%description
+The libStorageMgmt library will provide a vendor agnostic open source storage
+application programming interface (API) that will allow management of storage
+arrays.  The library includes a command line interface for interactive use and
+scripting (command lsmcli).  The library also has a daemon that is used for
+executing plug-ins in a separate process (lsmd).
+
+%package        devel
+Summary:        Development files for %{name}
+Group:          Development/Libraries
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description    devel
+The %{name}-devel package contains libraries and header files for
+developing applications that use %{name}.
+
+
+%prep
+%setup -q
+
+%build
+%configure --disable-static
+make %{?_smp_mflags}
+
+
+%install
+rm -rf %{buildroot}
+make install DESTDIR=%{buildroot}
+find %{buildroot} -name '*.la' -exec rm -f {} ';'
+
+%if 0%{?fedora}
+install -d -m755 %{buildroot}/%{_unitdir}
+install -m644 packaging/daemon/libstoragemgmt.service %{buildroot}/%{_unitdir}/libstoragemgmt.service
+
+#tempfiles.d configuration for /var/run
+mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
+install -m 0644 packaging/daemon/lsm-tmpfiles.conf %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf
+%else
+#Need these to exist at install so we can start the daemon
+mkdir -p %{buildroot}/etc/rc.d/init.d
+install packaging/daemon/libstoragemgmtd %{buildroot}/etc/rc.d/init.d/libstoragemgmtd
+%endif
+
+#Need these to exist at install so we can start the daemon
+mkdir -p %{buildroot}%{_localstatedir}/run/lsm/ipc
+
+%clean
+rm -rf %{buildroot}
+
+%pre
+getent group libstoragemgmt >/dev/null || groupadd -r libstoragemgmt
+getent passwd libstoragemgmt >/dev/null || \
+    useradd -r -g libstoragemgmt -d /var/run/lsm -s /sbin/nologin \
+    -c "daemon account for libstoragemgmt" libstoragemgmt
+
+%post
+/sbin/ldconfig
+if [ $1 -eq 1 ]; then
+%if 0%{?fedora}
+    /bin/systemctl enable libstoragemgmt.service >/dev/null 2>&1 || :
+%else
+    /sbin/chkconfig --add libstoragemgmtd
+%endif
+fi
+
+%preun
+if [ $1 -eq 0 ]; then
+%if 0%{?fedora}
+    # On uninstall (not upgrade), disable and stop the units
+    /bin/systemctl --no-reload disable libstoragemgmt.service >/dev/null 2>&1 || :
+    /bin/systemctl stop libstoragemgmt.service >/dev/null 2>&1 || :
+%else
+    /etc/rc.d/init.d/libstoragemgmtd stop > /dev/null 2>&1 || :
+    /sbin/chkconfig --del libstoragemgmtd
+%endif
+fi
+
+%postun
+/sbin/ldconfig
+/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+if [ $1 -ge 1 ] ; then
+%if 0%{?fedora}
+    # On upgrade (not uninstall), optionally, restart the daemon
+    /bin/systemctl try-restart libstoragemgmt.service >/dev/null 2>&1 || :
+%else
+    #Restart the daemond
+    /etc/rc.d/init.d/libstoragemgmtd restart  >/dev/null 2>&1 || :
+%endif
+fi
+
+%files
+%defattr(-,root,root,-)
+%doc README COPYING.LIB
+%{_mandir}/man1/lsmcli.1*
+%{_mandir}/man1/lsmd.1*
+%{_libdir}/*.so.*
+%{_bindir}/*
+
+#Python library files
+%{python_sitelib}/*
+
+%if 0%{?fedora}
+%{_unitdir}/*
+%endif
+
+%dir %attr(0755, libstoragemgmt, libstoragemgmt) %{_localstatedir}/run/lsm/
+%dir %attr(0755, libstoragemgmt, libstoragemgmt) %{_localstatedir}/run/lsm/ipc
+
+%if 0%{?fedora}
+%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
+%else
+%attr(0755, root, root) /etc/rc.d/init.d/libstoragemgmtd
+%endif
+
+%files devel
+%defattr(-,root,root,-)
+%{_includedir}/*
+%{_libdir}/*.so
+%{_libdir}/pkgconfig/libstoragemgmt.pc
+
+%changelog
+* Tue Jun 12 2012 Tony Asleson <tasleson at redhat.com> 0.0.9-1
+- Initial checkin of lio plug-in
+- System filtering via URI (smispy)
+- Error code mapping (ontap)
+- Fixed build so same build tarball is used for all binaries
+
+* Mon Jun 4 2012 Tony Asleson <tasleson at redhat.com> 0.0.8-1
+- Make building of SMI-S CPP plugin optional
+- Add pkg-config file
+- SMIS: Fix exception while retrieving Volumes
+- SMIS: Fix exception while retrieving Volumes
+- lsm: Add package imports
+- Make Smis class available in lsm python package
+- Add option to disable building C unit test
+- Make simulator classes available in lsm python package
+- Make ontap class available in lsm python package
+- Changes to support building on Fedora 17 (v2)
+- Spec. file updates from feedback from T. Callaway (spot)
+- F17 linker symbol visibility correction
+- Remove unneeded build dependencies and cleaned up some warnings
+- C Updates, client C library feature parity with python
+
+* Fri May 11 2012 Tony Asleson <tasleson at redhat.com> 0.0.7-1
+- Bug fix for smi-s constants
+- Display formatting improvements
+- Added header option for lsmcli
+- Improved version handling for builds
+- Made terminology consistent
+- Ability to list visibility for access groups and volumes
+- Simulator plug-in fully supports all block operations
+- Added support for multiple systems with a single plug-in instance
+
+* Fri Apr 20 2012 Tony Asleson <tasleson at redhat.com> 0.0.6-1
+- Documentation improvements (man & source code)
+- Support for access groups
+- Unified spec files Fedora/RHEL
+- Package version auto generate
+- Rpm target added to make
+- Bug fix for missing optional property on volume retrieval (smispy plug-in)
+
+* Fri Apr 6 2012 Tony Asleson <tasleson at redhat.com> 0.0.5-1
+- Spec file clean-up improvements
+- Async. operation added to lsmcli and ability to check on job status
+- Sub volume replication support
+- Ability to check for child dependencies on VOLUMES, FS and files
+- SMI-S Bug fixes and improvements
+
+* Mon Mar 26 2012 Tony Asleson <tasleson at redhat.com> 0.0.4-1
+- Restore from snapshot
+- Job identifiers string instead of integer
+- Updated license address
+
+* Wed Mar 14 2012 Tony Asleson <tasleson at redhat.com> 0.0.3-1
+- Changes to installer, daemon uid, gid, /var/run/lsm/*
+- NFS improvements and bug fixes
+- Python library clean up (rpmlint errors)
+
+* Sun Mar 11 2012 Tony Asleson <tasleson at redhat.com> 0.0.2-1
+- Added NetApp native plugin
+
+* Mon Feb 6 2012 Tony Asleson <tasleson at redhat.com>  0.0.1alpha-1
+- Initial version of package
diff --git a/sources b/sources
index e69de29..be10419 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+76433d1092a9d43c250043c076cd4a38  libstoragemgmt-0.0.9.tar.gz


More information about the scm-commits mailing list