2020-02-18 11:27:01 +08:00
|
|
|
Name: vdo
|
2023-10-16 09:47:01 +08:00
|
|
|
Version: 6.2.9.7
|
|
|
|
|
Release: 1
|
2020-02-18 11:27:01 +08:00
|
|
|
Summary: Management tools for Virtual Data Optimizer
|
|
|
|
|
License: GPLv2
|
|
|
|
|
URL: http://github.com/dm-vdo/vdo
|
2022-05-20 10:53:21 +08:00
|
|
|
Source0: https://github.com/dm-vdo/vdo/archive/refs/tags/%{version}.tar.gz
|
2020-06-05 14:19:35 +08:00
|
|
|
Patch0002: 0002-Ignore-misaligned-pointers.patch
|
2023-03-07 11:27:17 +08:00
|
|
|
Patch0003: 0001-Add-loongarch64-support.patch
|
2023-03-17 16:42:17 +08:00
|
|
|
Patch0004: 0003-RISC-V-support.patch
|
2020-02-18 11:27:01 +08:00
|
|
|
|
|
|
|
|
BuildRequires: gcc libuuid-devel device-mapper-devel device-mapper-event-devel
|
|
|
|
|
BuildRequires: valgrind-devel python3 python3-devel zlib-devel systemd
|
|
|
|
|
%{?systemd_requires}
|
|
|
|
|
Requires: lvm2 >= 2.02 python3-PyYAML >= 3.10 libuuid >= 2.23 kmod-kvdo >= 6.2 util-linux >= 2.32.1
|
|
|
|
|
Provides: kvdo-kmod-common = %{version}
|
|
|
|
|
|
|
|
|
|
%define __requires_exclude perl
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Virtual Data Optimizer (VDO) is a device mapper target that delivers
|
|
|
|
|
block-level deduplication, compression, and thin provisioning.
|
|
|
|
|
This package provides the user-space management tools for VDO.
|
|
|
|
|
|
|
|
|
|
%package_help
|
|
|
|
|
|
|
|
|
|
%prep
|
2023-03-07 11:27:17 +08:00
|
|
|
%setup -q
|
|
|
|
|
%patch0002 -p1
|
|
|
|
|
%patch0003 -p1
|
2023-03-17 16:42:17 +08:00
|
|
|
%patch0004 -p1
|
2020-02-18 11:27:01 +08:00
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%make_build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%make_install DESTDIR=%{buildroot} INSTALLOWNER= bindir=%{_bindir} \
|
|
|
|
|
defaultdocdir=%{_defaultdocdir} name=%{name} \
|
|
|
|
|
python3_sitelib=%{python3_sitelib} mandir=%{_mandir} \
|
|
|
|
|
unitdir=%{_unitdir} presetdir=%{_presetdir}
|
|
|
|
|
|
|
|
|
|
# Fix the python3 shebangs
|
|
|
|
|
for file in %{_bindir}/vdo \
|
2022-05-20 10:53:21 +08:00
|
|
|
%{_bindir}/vdostats
|
2020-02-18 11:27:01 +08:00
|
|
|
do
|
|
|
|
|
pathfix.py -pni "%{__python3}" %{buildroot}${file}
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
%post
|
|
|
|
|
%systemd_post vdo.service
|
|
|
|
|
|
|
|
|
|
%preun
|
|
|
|
|
%systemd_preun vdo.service
|
|
|
|
|
|
|
|
|
|
%postun
|
|
|
|
|
%systemd_postun_with_restart vdo.service
|
|
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%dir %{_defaultdocdir}/%{name}
|
|
|
|
|
%doc CONTRIBUTORS.txt README.md
|
|
|
|
|
%doc %{_defaultdocdir}/%{name}/examples/*
|
|
|
|
|
%license %{_defaultdocdir}/%{name}/COPYING
|
|
|
|
|
%{_bindir}/*
|
|
|
|
|
%dir %{python3_sitelib}/%{name}
|
|
|
|
|
%{python3_sitelib}/%{name}/__init__.py
|
|
|
|
|
%{python3_sitelib}/%{name}/__pycache__/__init__.cpython-*.pyc
|
|
|
|
|
%{python3_sitelib}/%{name}/__pycache__/__init__.cpython-*.opt-1.pyc
|
|
|
|
|
%dir %{python3_sitelib}/%{name}/vdomgmnt/
|
|
|
|
|
%{python3_sitelib}/%{name}/vdomgmnt/*
|
|
|
|
|
%dir %{python3_sitelib}/%{name}/statistics/
|
|
|
|
|
%{python3_sitelib}/%{name}/statistics/*
|
|
|
|
|
%dir %{python3_sitelib}/%{name}/utils/
|
|
|
|
|
%{python3_sitelib}/%{name}/utils/*
|
|
|
|
|
%{_unitdir}/vdo.service
|
|
|
|
|
%{_presetdir}/97-vdo.preset
|
2022-05-20 10:53:21 +08:00
|
|
|
/bash_completion.d/vdo
|
|
|
|
|
/bash_completion.d/vdostats
|
|
|
|
|
/etc/udev/rules.d/69-vdo-start-by-dev.rules
|
|
|
|
|
/usr/lib/systemd/system/vdo-start-by-dev@.service
|
|
|
|
|
/usr/libexec/vdoprepareforlvm
|
2020-02-18 11:27:01 +08:00
|
|
|
|
|
|
|
|
%files help
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%{_mandir}/man8/*
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-10-16 09:47:01 +08:00
|
|
|
* Wed Aug 16 2023 huxintao <806908118@qq.com> - 6.2.9.7-1
|
|
|
|
|
- Upgrade to 6.2.9.7
|
|
|
|
|
|
2023-03-17 16:42:17 +08:00
|
|
|
* Fri Mar 17 2023 laokz <zhangkai@iscas.ac.cn> - 6.2.6.14-3
|
|
|
|
|
- Add RISC-V support (Patch by YukariChiba<i@0x7f.cc>)
|
|
|
|
|
- Source of fence commands: RISC-V ISA Spec from riscv.org
|
|
|
|
|
- Remove -Wcast-align flag, since it causes error in RISC-V gcc
|
|
|
|
|
- Remove error-prone patch isolation macro
|
|
|
|
|
|
2023-03-07 11:27:17 +08:00
|
|
|
* Tue Mar 7 2023 doupengda <doupengda@loongson.cn> - 6.2.6.14-2
|
|
|
|
|
- Add loongarch64 support
|
|
|
|
|
|
2022-05-20 10:53:21 +08:00
|
|
|
* Fri May 20 2022 houyingchao <houyingchao@h-partners.com> - 6.2.6.14-1
|
|
|
|
|
- Upgrade to 6.2.6.14
|
|
|
|
|
|
2020-06-05 14:19:35 +08:00
|
|
|
* Fri Jun 5 2020 leiju<leiju4@huawei.com> - 6.2.0.298-13
|
|
|
|
|
- Fix null string and misaligned pointers
|
|
|
|
|
|
2020-02-18 11:27:01 +08:00
|
|
|
* Tue Feb 18 2019 cangyi<cangyi@huawei.com> - 6.2.0.298-12
|
|
|
|
|
- Package init
|