diff --git a/python3-sphinx.patch b/python3-sphinx.patch new file mode 100644 index 0000000..a6378f7 --- /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.3.tar.gz b/system-storage-manager-1.3.tar.gz new file mode 100644 index 0000000..21c74d2 Binary files /dev/null and b/system-storage-manager-1.3.tar.gz differ diff --git a/system-storage-manager.spec b/system-storage-manager.spec new file mode 100644 index 0000000..56a800a --- /dev/null +++ b/system-storage-manager.spec @@ -0,0 +1,51 @@ +%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/system-storage-manager-%{version}} + +Name: system-storage-manager +Version: 1.3 +Release: 2 +Summary: A single tool to manage your storage +License: GPLv2+ +URL: https://system-storage-manager.github.io/ +Source0: https://github.com/system-storage-manager/ssm/archive/system-storage-manager-%{version}.tar.gz +Patch0000: python3-sphinx.patch +BuildArch: noarch +Requires: util-linux which xfsprogs e2fsprogs python3-pwquality +BuildRequires: python3-devel python3-sphinx python3-pwquality + +%description +system Storage Manager has developed a convenient command-line interface. + +In more complex enterprise storage environment, using the device mapper (dm), +the logical volume manager (LVM) or multiple devices (md) it would be difficult to manage, +because of the addition of the file system, the tools needed to configure and manage storage +quantity has become more, so that the user is difficult to grasp, and system administrators +to consider too many options, so have a greater chance for mistakes and problems. + +System Storage Manager can manage Storage using LVM, BTRFS, encrypted volumes, +and many other technologies. BTRFS management tools can simplify Storage management, +and we are working to bring this ease of use to Linux file systems. + +%prep +%autosetup -n ssm-system-storage-manager-%{version} -p1 + +%build +make docs + +%install +%{__python3} setup.py install --root=${RPM_BUILD_ROOT} +if [ "%{_pkgdocdir}" != "%{_docdir}/system-storage-manager-%{version}" ]; then + mv ${RPM_BUILD_ROOT}/{%{_docdir}/system-storage-manager-%{version},%{_pkgdocdir}} +fi + +%check +%{__python3} test.py || : + +%files +%{_bindir}/* +%{_pkgdocdir}/ +%{_mandir}/man8/* +%{python3_sitelib}/* + +%changelog +* Fri Jul 03 2020 yaokai - 1.3-2 +- Package init diff --git a/system-storage-manager.yaml b/system-storage-manager.yaml new file mode 100644 index 0000000..18bdcd2 --- /dev/null +++ b/system-storage-manager.yaml @@ -0,0 +1,5 @@ +git_url: https://github.com/system-storage-manager/ssm.git +version_control: github +src_repo: system-storage-manager/ssm +tag_prefix: "^" +seperator: "."