diff --git a/packaging/vdo-test-tools/README.md b/packaging/vdo-test-tools/README.md new file mode 100644 index 0000000..e83b517 --- /dev/null +++ b/packaging/vdo-test-tools/README.md @@ -0,0 +1,6 @@ +# vdo-test-tools + +This repository contains package definitions needed to build some test utilities that are used in the VDO test environment. The intent is to feed into COPR such that each distro that is being tested in the environment has a compatible set of binaries to use while exercising migration (and other) tests. + +The spec file contained here will simply refer to the public (github vdo-devel repository)[https://github.com/dm-vdo/vdo-devel] and build a subdirectory for the vdo test tools on each supported distro. + diff --git a/packaging/vdo-test-tools/vdo-test-tools.spec b/packaging/vdo-test-tools/vdo-test-tools.spec new file mode 100644 index 0000000..0339b8a --- /dev/null +++ b/packaging/vdo-test-tools/vdo-test-tools.spec @@ -0,0 +1,40 @@ +%define repo_branch main + +Name: vdo-test-tools +Version: 1.0 +Release: 2 +Summary: VDO Test tools +License: GPL2+ +URL: https://github.com/dm-vdo/vdo-devel +Source0: %{url}/archive/refs/heads/main.tar.gz +BuildRequires: make +BuildRequires: gcc +BuildRequires: zlib-devel + +%description +This package provides test utilities that are used in the VDO test environment + +%prep +%autosetup -n vdo-devel-%{repo_branch}/src/c++/vdo/tools + +%build +make + +%install +%{__install} -d $RPM_BUILD_ROOT%{_bindir} -m 0755 +%{__install} -m 0755 genDiscard $RPM_BUILD_ROOT%{_bindir}/genDiscard +%{__install} -m 0755 genDataBlocks $RPM_BUILD_ROOT%{_bindir}/genDataBlocks +%{__install} -m 0755 setReadOnly $RPM_BUILD_ROOT%{_bindir}/setReadOnly + +%files +%defattr(-,root,root) +%{_bindir}/genDiscard +%{_bindir}/genDataBlocks +%{_bindir}/setReadOnly + +%changelog +* Nov 11 2025 Chung Chung - 1.0-1 +- Update description and inital push to github. + +* Tue May 27 2025 Andy Walsh - 1.0-1 +- Initial version