%global commit 84517ca07dce84b4921aa5731fd48a114f6884a4 %global shortcommit %(c=%{commit}; echo ${c:0:7}) Name: vdo Version: 6.2.0.298 Release: 13 Summary: Management tools for Virtual Data Optimizer License: GPLv2 URL: http://github.com/dm-vdo/vdo Source0: https://github.com/dm-vdo/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz Patch0001: 0001-utils-fileUtils-Fix-null-string.patch Patch0002: 0002-Ignore-misaligned-pointers.patch 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 %autosetup -n %{name}-%{commit} -p1 %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 \ %{_bindir}/vdostats \ %{_defaultdocdir}/%{name}/examples/ansible/vdo.py 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 %files help %defattr(-,root,root) %{_mandir}/man8/* %changelog * Fri Jun 5 2020 leiju - 6.2.0.298-13 - Fix null string and misaligned pointers * Tue Feb 18 2019 cangyi - 6.2.0.298-12 - Package init