]> git.pld-linux.org Git - packages/vdo.git/blob - vdo.spec
51788101be29166c5310f076346c019acfb0ae09
[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.114
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:  9867ea5f6128d10acac1725f95b94d87
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         UDEVDIR=$RPM_BUILD_ROOT/lib/udev/rules.d \
91         bindir=%{_bindir} \
92         defaultdocdir=%{_docdir} \
93         python3_sitelib=%{py3_sitescriptdir} \
94         mandir=%{_mandir} \
95         unitdir=%{systemdunitdir} \
96         sysconfdir=%{_sysconfdir}
97
98 %py3_comp $RPM_BUILD_ROOT%{py3_sitescriptdir}
99 %py3_ocomp $RPM_BUILD_ROOT%{py3_sitescriptdir}
100
101 # packaged as %doc
102 %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name}
103
104 %clean
105 rm -rf $RPM_BUILD_ROOT
106
107 %post
108 %systemd_post vdo.service
109
110 %preun
111 %systemd_preun vdo.service
112
113 %postun
114 %systemd_postun_with_restart vdo.service
115
116 %files
117 %defattr(644,root,root,755)
118 %doc CONTRIBUTORS.txt README.md examples/{ansible,monitor}
119 %attr(755,root,root) %{_bindir}/vdo
120 %attr(755,root,root) %{_bindir}/vdo-by-dev
121 %attr(755,root,root) %{_bindir}/vdostats
122 %attr(755,root,root) %{_bindir}/vdodmeventd
123 %attr(755,root,root) %{_bindir}/vdodumpconfig
124 %attr(755,root,root) %{_bindir}/vdoforcerebuild
125 %attr(755,root,root) %{_bindir}/vdoformat
126 %attr(755,root,root) %{_bindir}/vdosetuuid
127 %{py3_sitescriptdir}/%{name}
128 %{systemdunitdir}/vdo.service
129 %{systemdunitdir}/vdo-start-by-dev@.service
130 /lib/systemd/system-preset/97-vdo.preset
131 /lib/udev/rules.d/69-vdo-start-by-dev.rules
132 %{_mandir}/man8/vdo.8*
133 %{_mandir}/man8/vdostats.8*
134 %{_mandir}/man8/vdodmeventd.8*
135 %{_mandir}/man8/vdodumpconfig.8*
136 %{_mandir}/man8/vdoforcerebuild.8*
137 %{_mandir}/man8/vdoformat.8*
138 %{_mandir}/man8/vdosetuuid.8*
139
140 %files -n bash-completion-vdo
141 %defattr(644,root,root,755)
142 /etc/bash_completion.d/vdo
143 /etc/bash_completion.d/vdostats
144
145 %files support
146 %defattr(644,root,root,755)
147 %attr(755,root,root) %{_bindir}/vdoaudit
148 %attr(755,root,root) %{_bindir}/vdodebugmetadata
149 %attr(755,root,root) %{_bindir}/vdodumpblockmap
150 %attr(755,root,root) %{_bindir}/vdodumpmetadata
151 %attr(755,root,root) %{_bindir}/vdolistmetadata
152 %attr(755,root,root) %{_bindir}/vdoreadonly
153 %attr(755,root,root) %{_bindir}/vdoregenerategeometry
154 %{_mandir}/man8/vdoaudit.8*
155 %{_mandir}/man8/vdodebugmetadata.8*
156 %{_mandir}/man8/vdodumpblockmap.8*
157 %{_mandir}/man8/vdodumpmetadata.8*
158 %{_mandir}/man8/vdolistmetadata.8*
159 %{_mandir}/man8/vdoreadonly.8*
160 %{_mandir}/man8/vdoregenerategeometry.8*
This page took 0.0879 seconds and 2 git commands to generate.