Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d02d801814 | |||
| 7d57a7bfb6 |
@ -1 +0,0 @@
|
||||
1
|
||||
2
.gitignore
vendored
2
.gitignore
vendored
@ -1 +1 @@
|
||||
/snapm-0.4.0.tar.gz
|
||||
SOURCES/snapm-0.4.3.tar.gz
|
||||
|
||||
1
.snapm.metadata
Normal file
1
.snapm.metadata
Normal file
@ -0,0 +1 @@
|
||||
249e7900beb6fed873b91cc7152cbc5b13e3a450 SOURCES/snapm-0.4.3.tar.gz
|
||||
@ -1,38 +0,0 @@
|
||||
From 5b96245740eb8ee94ff744edb9cacd1d161ddec0 Mon Sep 17 00:00:00 2001
|
||||
From: "Bryn M. Reeves" <bmr@redhat.com>
|
||||
Date: Fri, 20 Dec 2024 20:32:14 +0000
|
||||
Subject: [PATCH] tests: temporarily exclude CentOS from test_boot.is_redhat()
|
||||
check
|
||||
|
||||
The current version of boom-boot in CentOS Stream does not support
|
||||
automatic --uname-pattern for CentOS installations:
|
||||
|
||||
# boom profile create --from-host
|
||||
Could not determine uname pattern for 'CentOS Stream'
|
||||
|
||||
Exclude CentOS temporarily from the profile auto-creation test until
|
||||
https://github.com/snapshotmanager/boom-boot/issues/59 is fixed and
|
||||
available in the CentOS repos.
|
||||
---
|
||||
tests/test_boot.py | 5 ++++-
|
||||
1 file changed, 4 insertions(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_boot.py b/tests/test_boot.py
|
||||
index a15ce5f..e8d76ee 100644
|
||||
--- a/tests/test_boot.py
|
||||
+++ b/tests/test_boot.py
|
||||
@@ -39,7 +39,10 @@ _VAR_TMP = "/var/tmp"
|
||||
|
||||
|
||||
def is_redhat():
|
||||
- return os.path.exists("/etc/redhat-release")
|
||||
+ # Exclude CentOS for now until the fix for boom-boot #59 is available
|
||||
+ # in the CentOS repositories.
|
||||
+ return (os.path.exists("/etc/redhat-release")
|
||||
+ and not os.path.exists("/etc/centos-release"))
|
||||
|
||||
|
||||
class BootTestsSimple(unittest.TestCase):
|
||||
--
|
||||
2.47.1
|
||||
|
||||
@ -1,53 +1,32 @@
|
||||
%global summary A set of tools for managing snapshots
|
||||
%global sphinx_docs 1
|
||||
|
||||
Name: snapm
|
||||
Version: 0.4.0
|
||||
Release: 2%{?dist}
|
||||
Version: 0.4.3
|
||||
Release: 1%{?dist}
|
||||
Summary: %{summary}
|
||||
|
||||
License: GPL-2.0-only AND Apache-2.0
|
||||
URL: https://github.com/snapshotmanager/snapm
|
||||
License: Apache-2.0
|
||||
URL: https://github.com/snapshotmanager/%{name}
|
||||
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
|
||||
Patch1: 0001-tests-temporarily-exclude-CentOS-from-test_boot.is_r.patch
|
||||
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: make
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-wheel
|
||||
BuildRequires: python3-boom
|
||||
BuildRequires: python3-dbus-client-gen
|
||||
BuildRequires: python3-dbus-python-client-gen
|
||||
BuildRequires: python3-justbytes
|
||||
BuildRequires: python3-packaging
|
||||
BuildRequires: python3-dateutil
|
||||
BuildRequires: python3-wcwidth
|
||||
BuildRequires: python3-psutil
|
||||
BuildRequires: python3-pytest
|
||||
BuildRequires: lvm2
|
||||
BuildRequires: stratisd
|
||||
BuildRequires: stratis-cli
|
||||
%if 0%{?sphinx_docs}
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: boom-boot
|
||||
%endif
|
||||
BuildRequires: lvm2
|
||||
BuildRequires: make
|
||||
BuildRequires: stratis-cli
|
||||
BuildRequires: stratisd
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-sphinx
|
||||
|
||||
Requires: python3-snapm = %{version}-%{release}
|
||||
Recommends: boom-boot
|
||||
|
||||
%package -n python3-snapm
|
||||
Summary: %{summary}
|
||||
%{?python_provide:%python_provide python3-snapm}
|
||||
Requires: %{__python3}
|
||||
Requires: python3-boom >= 1.6.4
|
||||
|
||||
%if 0%{?sphinx_docs}
|
||||
%package -n python3-snapm-doc
|
||||
Summary: %{summary}
|
||||
%endif
|
||||
|
||||
%description
|
||||
Snapshot manager (snapm) is a tool for managing sets of snapshots on Linux
|
||||
@ -61,86 +40,67 @@ the same time, representing the system state at the time the set was created.
|
||||
|
||||
This package provides the python3 snapm module.
|
||||
|
||||
%if 0%{?sphinx_docs}
|
||||
%description -n python3-snapm-doc
|
||||
Snapshot manager (snapm) is a tool for managing sets of snapshots on Linux
|
||||
systems. The snapm tool allows snapshots of multiple volumes to be captured at
|
||||
the same time, representing the system state at the time the set was created.
|
||||
|
||||
This package provides the python3 snapm module documentation in HTML format.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%autosetup -p1 -n snapm-%{version}
|
||||
%autosetup -p1 -n %{name}-%{version}
|
||||
|
||||
%generate_buildrequires
|
||||
%pyproject_buildrequires
|
||||
|
||||
%build
|
||||
%if 0%{?sphinx_docs}
|
||||
make %{?_smp_mflags} -C doc html
|
||||
%pyproject_wheel
|
||||
|
||||
%{make_build} -C doc html
|
||||
rm doc/_build/html/.buildinfo
|
||||
mv doc/_build/html doc/html
|
||||
rm -rf doc/html/_sources
|
||||
rm -rf doc/_build
|
||||
rm -f doc/*.rst
|
||||
%endif
|
||||
|
||||
%if 0%{?centos} || 0%{?rhel}
|
||||
%py3_build
|
||||
%else
|
||||
%pyproject_wheel
|
||||
%endif
|
||||
rm -rf doc/html/_sources doc/_build
|
||||
rm -f doc/*.rst doc/Makefile doc/conf.py
|
||||
|
||||
%install
|
||||
%if 0%{?centos} || 0%{?rhel}
|
||||
%py3_install
|
||||
%else
|
||||
%pyproject_install
|
||||
%endif
|
||||
|
||||
mkdir -p ${RPM_BUILD_ROOT}/%{_mandir}/man8
|
||||
install -m 644 man/man8/snapm.8 ${RPM_BUILD_ROOT}/%{_mandir}/man8
|
||||
|
||||
rm doc/Makefile
|
||||
rm doc/conf.py
|
||||
mkdir -p %{buildroot}/%{_mandir}/man8
|
||||
%{__install} -p -m 644 man/man8/snapm.8 %{buildroot}/%{_mandir}/man8
|
||||
|
||||
%check
|
||||
pytest-3 --log-level=debug -v
|
||||
%pytest --log-level=debug -v tests/
|
||||
|
||||
%files
|
||||
# Main license for snapm (GPLv2)
|
||||
%license COPYING
|
||||
# License for snapm.manager.plugins.stratislib (Apache 2.0)
|
||||
%license COPYING.stratislib
|
||||
# Main license for snapm (Apache-2.0)
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{_bindir}/snapm
|
||||
%doc %{_mandir}/man*/snapm.*
|
||||
|
||||
%files -n python3-snapm
|
||||
# Main license for snapm (GPLv2)
|
||||
%license COPYING
|
||||
# License for snapm.manager.plugins.stratislib (Apache 2.0)
|
||||
%license COPYING.stratislib
|
||||
# license for snapm (Apache-2.0)
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%{python3_sitelib}/%{name}/
|
||||
%if 0%{?centos} || 0%{?rhel}
|
||||
%{python3_sitelib}/%{name}-*.egg-info/
|
||||
%else
|
||||
%{python3_sitelib}/%{name}*.dist-info/
|
||||
%endif
|
||||
|
||||
%if 0%{?sphinx_docs}
|
||||
%files -n python3-snapm-doc
|
||||
# Main license for snapm (GPLv2)
|
||||
%license COPYING
|
||||
# License for snapm.manager.plugins.stratislib (Apache 2.0)
|
||||
%license COPYING.stratislib
|
||||
# license for snapm (Apache-2.0)
|
||||
%license LICENSE
|
||||
%doc README.md
|
||||
%doc doc
|
||||
%endif
|
||||
|
||||
%changelog
|
||||
* Mon May 12 2025 Bryn M. Reeves <bmr@redhat.com> - 0.4.3-1
|
||||
- Update to upstream 0.4.3
|
||||
Resolves: RHEL-89836
|
||||
Resolves: RHEL-78813
|
||||
|
||||
* Thu Jan 09 2025 Bryn M. Reeves <bmr@redhat.com> - 0.4.0-2
|
||||
- Bump release and rebuild
|
||||
Resolves: RHEL-59006
|
||||
Resolves: RHEL-59005
|
||||
|
||||
* Wed Dec 18 2024 Bryn M. Reeves <bmr@redhat.com> - 0.4.0-1
|
||||
- Initial commit on c10s
|
||||
Resolves: RHEL-59006
|
||||
- Initial commit on c9s
|
||||
Resolves: RHEL-59005
|
||||
@ -1,6 +0,0 @@
|
||||
--- !Policy
|
||||
product_versions:
|
||||
- rhel-10
|
||||
decision_context: osci_compose_gate
|
||||
rules:
|
||||
- !PassingTestCaseRule {test_case_name: osci.brew-build.tier0.functional}
|
||||
@ -1,29 +0,0 @@
|
||||
discover:
|
||||
how: fmf
|
||||
dist-git-source: true
|
||||
|
||||
execute:
|
||||
how: tmt
|
||||
|
||||
prepare:
|
||||
- name: Install packages
|
||||
how: install
|
||||
package:
|
||||
- stratisd
|
||||
- stratis-cli
|
||||
- lvm2
|
||||
- python3-boom
|
||||
- python3-pytest
|
||||
- name: Enable Stratisd
|
||||
how: shell
|
||||
script: |
|
||||
systemctl enable --now stratisd
|
||||
- name: Create boom OsProfile
|
||||
how: shell
|
||||
script: |
|
||||
boom profile create --from-host --uname-pattern el10
|
||||
- name: Enable CRB
|
||||
how: shell
|
||||
script: |
|
||||
dnf install -y "dnf-command(config-manager)" ;
|
||||
dnf config-manager --set-enabled crb || true
|
||||
1
sources
1
sources
@ -1 +0,0 @@
|
||||
SHA512 (snapm-0.4.0.tar.gz) = d4829bef312212e0b122c241235cce6520dc1c37e11dbe32d1882485a2d81e94aa396d0957c13fee848e472ab3efcad18b262c5bfbb9a7fd08f74497d34f97ba
|
||||
@ -1,8 +0,0 @@
|
||||
summary: Run snapm upstream test suite
|
||||
test: |
|
||||
pytest -v --log-level=debug
|
||||
path: snapm-0.4.0/
|
||||
require:
|
||||
- python3-pytest
|
||||
- python3-devel
|
||||
duration: 25m
|
||||
Loading…
Reference in New Issue
Block a user