]> git.pld-linux.org Git - packages/vdo.git/blob - vdo.spec
- initial; with patches to allow build on 32-bit x86
[packages/vdo.git] / vdo.spec
1 Summary:        Management tools for Virtual Data Optimizer
2 Summary(pl.UTF-8):      Narzędzia do zarządzania podsystemem Virtual Data Optimizer
3 Name:           vdo
4 Version:        6.2.3.91
5 Release:        1
6 License:        GPL v2
7 Group:          Applications/System
8 #Source0Download: https://github.com/dm-vdo/vdo/releases
9 Source0:        https://github.com/dm-vdo/vdo/archive/%{version}/%{name}-%{version}.tar.gz
10 # Source0-md5:  a4eeab4f23938683ef3c0d0bcd2e34ad
11 Patch0:         %{name}-x86.patch
12 Patch1:         %{name}-types.patch
13 URL:            http://github.com/dm-vdo/vdo
14 BuildRequires:  device-mapper-devel
15 BuildRequires:  libblkid-devel
16 BuildRequires:  libuuid-devel >= 2.23
17 BuildRequires:  python3 >= 1:3.6
18 BuildRequires:  python3-devel >= 1:3.6
19 BuildRequires:  valgrind
20 BuildRequires:  zlib-devel
21 Requires:       libuuid >= 2.23
22 Requires:       lvm2
23 Requires:       python3 >= 1:3.6
24 Requires:       python3-PyYAML >= 3.10
25 #Suggests:      kernel-kvdo >= 6.2
26 ExclusiveArch:  %{ix86} %{x8664} x32 aarch64 ppc ppc64 s390x
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 Virtual Data Optimizer (VDO) is a device mapper target that delivers
31 block-level deduplication, compression, and thin provisioning.
32
33 This package provides the user-space management tools for VDO.
34
35 %description -l pl.UTF-8
36 Virtual Data Optimizer (VDO) to cel device mappera zapewniający
37 deduplikację, kompresję i "thin provisioning" na poziomie bloków.
38
39 Ten pakiet zawiera narzędzia przestrzeni użytkownika do zarządzania
40 VDO.
41
42 %package -n bash-completion-vdo
43 Summary:        Bash completion for VDO management commands
44 Summary(pl.UTF-8):      Bashowe uzupełnianie parametrów poleceń do zarządzania VDO
45 Group:          Applications/Shells
46 Requires:       %{name} = %{version}-%{release}
47 Requires:       bash-completion
48
49 %description -n bash-completion-vdo
50 Bash completion for VDO management commands.
51
52 %description -n bash-completion-vdo -l pl.UTF-8
53 Bashowe uzupełnianie parametrów poleceń do zarządzania VDO.
54
55 %package support
56 Summary:        Support tools for Virtual Data Optimizer
57 Summary(pl.UTF-8):      Narzędzia wspomagające dla podsystemu Virtual Data Optimizer
58 Group:          Applications/System
59 Requires:       libuuid >= 2.23
60
61 %description support
62 Virtual Data Optimizer (VDO) is a device mapper target that delivers
63 block-level deduplication, compression, and thin provisioning.
64
65 This package provides the user-space support tools for VDO.
66
67 %description support -l pl.UTF-8
68 Virtual Data Optimizer (VDO) to cel device mappera zapewniający
69 deduplikację, kompresję i "thin provisioning" na poziomie bloków.
70
71 Ten pakiet zawiera narzędzia wspomagające przestrzeni użytkownika dla
72 VDO.
73
74 %prep
75 %setup -q
76 %patch0 -p1
77 %patch1 -p1
78
79 %build
80 %{__make} \
81         CC="%{__cc}" \
82         OPT_FLAGS="%{rpmcflags} -fno-omit-frame-pointer"
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT \
89         INSTALLOWNER= \
90         bindir=%{_bindir} \
91         defaultdocdir=%{_docdir} \
92         python3_sitelib=%{py3_sitescriptdir} \
93         mandir=%{_mandir} \
94         unitdir=%{systemdunitdir} \
95         sysconfdir=%{_sysconfdir}
96
97 %py3_comp $RPM_BUILD_ROOT%{py3_sitescriptdir}
98 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitescriptdir}
99
100 # packaged as %doc
101 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
102
103 %clean
104 rm -rf $RPM_BUILD_ROOT
105
106 %post
107 %systemd_post vdo.service
108
109 %preun
110 %systemd_preun vdo.service
111
112 %postun
113 %systemd_postun_with_restart vdo.service
114
115 %files
116 %defattr(644,root,root,755)
117 %doc CONTRIBUTORS.txt README.md examples/{ansible,monitor}
118 %attr(755,root,root) %{_bindir}/vdo
119 %attr(755,root,root) %{_bindir}/vdo-by-dev
120 %attr(755,root,root) %{_bindir}/vdostats
121 %attr(755,root,root) %{_bindir}/vdodmeventd
122 %attr(755,root,root) %{_bindir}/vdodumpconfig
123 %attr(755,root,root) %{_bindir}/vdoforcerebuild
124 %attr(755,root,root) %{_bindir}/vdoformat
125 %attr(755,root,root) %{_bindir}/vdosetuuid
126 %{py3_sitescriptdir}/%{name}
127 %{systemdunitdir}/vdo.service
128 %{systemdunitdir}/vdo-start-by-dev@.service
129 /lib/systemd/system-preset/97-vdo.preset
130 %{_sysconfdir}/udev/rules.d/69-vdo-start-by-dev.rules
131 %{_mandir}/man8/vdo.8*
132 %{_mandir}/man8/vdostats.8*
133 %{_mandir}/man8/vdodmeventd.8*
134 %{_mandir}/man8/vdodumpconfig.8*
135 %{_mandir}/man8/vdoforcerebuild.8*
136 %{_mandir}/man8/vdoformat.8*
137 %{_mandir}/man8/vdosetuuid.8*
138
139 %files -n bash-completion-vdo
140 %defattr(644,root,root,755)
141 /etc/bash_completion.d/vdo
142 /etc/bash_completion.d/vdostats
143
144 %files support
145 %defattr(644,root,root,755)
146 %attr(755,root,root) %{_bindir}/vdoaudit
147 %attr(755,root,root) %{_bindir}/vdodebugmetadata
148 %attr(755,root,root) %{_bindir}/vdodumpblockmap
149 %attr(755,root,root) %{_bindir}/vdodumpmetadata
150 %attr(755,root,root) %{_bindir}/vdolistmetadata
151 %attr(755,root,root) %{_bindir}/vdoreadonly
152 %attr(755,root,root) %{_bindir}/vdoregenerategeometry
153 %{_mandir}/man8/vdoaudit.8*
154 %{_mandir}/man8/vdodebugmetadata.8*
155 %{_mandir}/man8/vdodumpblockmap.8*
156 %{_mandir}/man8/vdodumpmetadata.8*
157 %{_mandir}/man8/vdolistmetadata.8*
158 %{_mandir}/man8/vdoreadonly.8*
159 %{_mandir}/man8/vdoregenerategeometry.8*
This page took 0.037367 seconds and 3 git commands to generate.