diff --git a/python3-sphinx.patch b/python3-sphinx.patch new file mode 100644 index 0000000000000000000000000000000000000000..a6378f7d06e450051f38cd9bb003435f58818a52 --- /dev/null +++ b/python3-sphinx.patch @@ -0,0 +1,23 @@ +diff --git a/doc/Makefile b/doc/Makefile +index 135bfb4..efe5f22 100644 +--- a/doc/Makefile ++++ b/doc/Makefile +@@ -3,7 +3,7 @@ + + # You can set these variables from the command line. + SPHINXOPTS = +-SPHINXBUILD = sphinx-build ++SPHINXBUILD = sphinx-build-3 + PAPER = a4 + BUILDDIR = _build + +diff --git a/doc/generate_usage_includes.py b/doc/generate_usage_includes.py +index 257ba51..0182116 100755 +--- a/doc/generate_usage_includes.py ++++ b/doc/generate_usage_includes.py +@@ -1,4 +1,4 @@ +-#!/usr/bin/env python ++#!/usr/bin/env python3 + + import re + import sys, os diff --git a/system-storage-manager-1.4.tar.gz b/system-storage-manager-1.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..fd47e9c9faaf0f484ec94c1e10385c84aa4af295 Binary files /dev/null and b/system-storage-manager-1.4.tar.gz differ diff --git a/system-storage-manager.spec b/system-storage-manager.spec new file mode 100644 index 0000000000000000000000000000000000000000..54f1e608b13c354e2525a4e4e5de4393cbb82362 --- /dev/null +++ b/system-storage-manager.spec @@ -0,0 +1,72 @@ +%define anolis_release 1 + +Name: system-storage-manager +Version: 1.4 +Release: %{anolis_release}%{?dist} +Summary: A single tool to manage your storage + +License: GPLv2+ +URL: https://github.com/system-storage-manager/ssm +Source0: https://github.com/system-storage-manager/ssm/archive/%{name}-%{version}.tar.gz +Patch0: python3-sphinx.patch + +BuildArch: noarch +BuildRequires: make +BuildRequires: python3-devel +BuildRequires: python3-sphinx +BuildRequires: python3-pwquality +Requires: util-linux +Requires: which +Requires: xfsprogs +Requires: e2fsprogs +Requires: python3-pwquality + +%description +System Storage Manager provides an easy to use command line interface to manage +your storage using various technologies like lvm, btrfs, encrypted volumes and +more. + +In more sophisticated enterprise storage environments, management with Device +Mapper (dm), Logical Volume Manager (LVM), or Multiple Devices (md) is becoming +increasingly more difficult. With file systems added to the mix, the number of +tools needed to configure and manage storage has grown so large that it is +simply not user friendly. With so many options for a system administrator to +consider, the opportunity for errors and problems is large. + +The btrfs administration tools have shown us that storage management can be +simplified, and we are working to bring that ease of use to Linux file systems +in general. + +You should install the ssm if you need to manage your storage with various +technologies via a single unified interface. + +%prep +%autosetup -n ssm-%{name}-%{version} -p1 + +%build +make docs %{?_smp_mflags} + +%install +%{__python3} setup.py install --root=${RPM_BUILD_ROOT} +if [ "%{_pkgdocdir}" != "%{_docdir}/%{name}-%{version}" ]; then + mv ${RPM_BUILD_ROOT}/{%{_docdir}/%{name}-%{version},%{_pkgdocdir}} +fi + +%check +# we recommend you **not** to run +# tests with root privileges on your work or production system, but +# rather to run them on your testing machine. +%{__python3} test.py || : + +%files +%license COPYING +%doc README CHANGES AUTHORS +%{_bindir}/ssm +%{_pkgdocdir}/ +%{_mandir}/man8/ssm.8* +%{python3_sitelib}/ssmlib/ +%{python3_sitelib}/*.egg-info + +%changelog +* Tue Apr 19 2022 happy_orange - 1.4-1 +- Init package from upstream