source: projects/specs/trunk/d/device-mapper-multipath/device-mapper-multipath-vl.spec @ 12401

Revision 12401, 13.6 KB checked in by tomop, 4 years ago (diff)

updated 7 packages

cryptsetup-2.3.2-1

device-mapper-multipath-0.8.2-2

gimp-2.10.18-1

json-c-0.14-1

libmypaint-1.6.1-1

strongswan-5.8.4-1

upstart-1.12.1-7

Line 
1%bcond_with systemd
2
3Summary: Tools to manage multipath devices using device-mapper
4Summary(ja): Device-mapper を使用してマルチパスデバイスを管理するためのツール集
5Name: device-mapper-multipath
6Version: 0.8.2
7Release: 2%{?_dist_release}%{?with_systemd:.systemd}
8Group: System Environment/Base
9Vendor: Project Vine
10Distribution: Vine Linux
11Packager: daisuke
12
13License: GPLv2+
14URL: http://christophe.varoqui.free.fr/
15# The source for this package was pulled from upstream's git repo.  Use the
16# following command to generate the tarball
17# curl "https://git.opensvc.com/?p=multipath-tools/.git;a=snapshot;h=refs/tags/0.8.2;sf=tgz" -o multipath-tools-0.8.2.tgz
18Source0: multipath-tools-%{version}.tgz
19Source1: multipath.conf
20Source2: multipathd.init
21
22Patch0001: 0001-libmultipath-make-vector_foreach_slot_backwards-work.patch
23Patch0002: 0002-libmultipath-add-marginal-paths-and-groups-infrastru.patch
24Patch0003: 0003-tests-add-path-grouping-policy-unit-tests.patch
25Patch0004: 0004-libmultipath-add-wrapper-function-around-pgpolicyfn.patch
26Patch0005: 0005-tests-update-pgpolicy-tests-to-work-with-group_paths.patch
27Patch0006: 0006-libmultipath-fix-double-free-in-pgpolicyfn-error-pat.patch
28Patch0007: 0007-libmultipath-consolidate-group_by_-functions.patch
29Patch0008: 0008-libmultipath-make-pgpolicyfn-take-a-paths-vector.patch
30Patch0009: 0009-libmultipath-make-group_paths-handle-marginal-paths.patch
31Patch0010: 0010-tests-add-tests-for-grouping-marginal-paths.patch
32Patch0011: 0011-libmultipath-add-marginal_pathgroups-config-option.patch
33Patch0012: 0012-libmutipath-deprecate-delay_-_checks.patch
34Patch0013: 0013-multipathd-use-marginal_pathgroups.patch
35Patch0014: 0014-multipath-update-man-pages.patch
36Patch0015: 0015-multipath.conf-add-enable_foreign-parameter.patch
37Patch0016: 0016-multipath.conf.5-document-foreign-library-support.patch
38Patch0017: 0017-mpathpersist-remove-broken-unused-code.patch
39Patch0018: 0018-libmultipath-EMC-PowerMax-NVMe-device-config.patch
40Patch0019: 0019-mpathpersist-fix-leaks.patch
41Patch0020: 0020-libmultipath-fix-mpcontext-initialization.patch
42Patch0021: 0021-RH-fixup-udev-rules-for-redhat.patch
43Patch0022: 0022-RH-Remove-the-property-blacklist-exception-builtin.patch
44Patch0023: 0023-RH-don-t-start-without-a-config-file.patch
45Patch0024: 0024-RH-use-rpm-optflags-if-present.patch
46Patch0025: 0025-RH-add-mpathconf.patch
47Patch0026: 0026-RH-add-wwids-from-kernel-cmdline-mpath.wwids-with-A.patch
48Patch0027: 0027-RH-warn-on-invalid-regex-instead-of-failing.patch
49Patch0028: 0028-RH-reset-default-find_mutipaths-value-to-off.patch
50Patch0029: 0029-RH-Fix-nvme-compilation-warning.patch
51Patch0030: 0030-RH-attempt-to-get-ANA-info-via-sysfs-first.patch
52Patch0031: 0031-multipath-fix-issues-found-by-compiling-with-gcc-10.patch
53
54BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
55BuildRequires: libsysfs-devel
56BuildRequires: device-mapper-devel
57#BuildRequires: libselinux-devel, libsepol-devel
58BuildRequires: readline-devel, ncurses-devel
59BuildRequires: libaio-devel
60BuildRequires: userspace-rcu-devel
61BuildRequires: json-c-devel
62Requires: kpartx = %{version}-%{release}
63Requires: device-mapper >= 1.02.39
64%if %{with systemd}
65BuildRequires: systemd-devel
66%{?systemd_requires}
67%else
68BuildRequires: libudev-devel
69Requires(post): chkconfig
70Requires(preun): chkconfig
71%endif
72
73%description
74%{name} provides tools to manage multipath devices by instructing the
75device-mapper multipath kernel module what to do.
76The tools are :
77* multipath :   Scan the system for multipath devices and assemble them.
78* multipathd :  Detects when paths fail and execs multipath to update things.
79
80
81%package libs
82Summary: The %{name} modules and shared library
83# only libmpathcmd is LGPLv2+
84License: GPLv2 and LGPLv2+
85
86%description libs
87The %{name}-libs provides the path checker
88and prioritizer modules. It also contains the libmpathpersist and
89libmpathcmd shared libraries, as well as multipath's internal library,
90libmultipath.
91
92
93%package devel
94Summary: Development libraries and headers for %{name}
95Requires: %{name} = %{version}-%{release}
96Requires: %{name}-libs = %{version}-%{release}
97
98%description devel
99This package contains the files need to develop applications that use
100device-mapper-multipath's lbmpathpersist and libmpathcmd libraries.
101
102
103%package -n kpartx
104Summary: Partition device manager for device-mapper devices
105Summary(ja): Device-mapper デバイス用のパーティションデバイスマネージャー
106Group: System Environment/Base
107Provides: kpartx = %{version}-%{release}
108
109%description -n kpartx
110kpartx manages partition creation and removal for device-mapper devices.
111
112
113%package -n libdmmp
114Summary: device-mapper-multipath C API library
115License: GPLv3+
116Requires: json-c
117Requires: %{name} = %{version}-%{release}
118Requires: %{name}-libs = %{version}-%{release}
119
120%description -n libdmmp
121This package contains the shared library for the device-mapper-multipath
122C API library.
123
124%package -n libdmmp-devel
125Summary: device-mapper-multipath C API library headers
126Requires: pkgconfig
127Requires: libdmmp = %{version}-%{release}
128
129%description -n libdmmp-devel
130This package contains the files needed to develop applications that use
131device-mapper-multipath's libdmmp C API library
132
133
134%prep
135%setup -q -n multipath-tools-0.8.2
136%autopatch -p1
137
138sed -i -e 's/ != TRUE/ == 0/g' libdmmp/libdmmp_private.h
139
140
141%build
142make %{?_smp_mflags} LIB=%{_lib} SYSTEMDPATH=/lib
143
144
145%install
146rm -rf %{buildroot}
147make install \
148  DESTDIR=%{buildroot} \
149  bindir=%{_syssbindir} \
150  syslibdir=/%{_lib} \
151  usrlibdir=%{_libdir} \
152  libdir=/%{_lib}/multipath \
153  rcdir=%{_initdir} \
154  unitdir=%{_unitdir} \
155  pkgconfdir=%{_libdir}/pkgconfig \
156  SYSTEMDPATH=/lib
157
158install -d %{buildroot}/etc/multipath
159install -m644 %{SOURCE1} %{buildroot}/etc/multipath.conf
160
161%if !%{with systemd}
162install -d %{buildroot}%{_initdir}
163install -m755 %{SOURCE2} %{buildroot}%{_initdir}/multipathd
164%endif
165
166%clean
167rm -rf %{buildroot}
168
169
170%post
171%if %{with systemd}
172%systemd_post multipathd.service
173%else
174/sbin/chkconfig --add multipathd
175%endif
176if [ "$1" -gt "1" -a ! -e /etc/multipath/bindings -a \
177    -f /var/lib/multipath/bindings ]; then
178       mv /var/lib/multipath/bindings /etc/multipath/bindings
179       ln -s /etc/multipath/bindings /var/lib/multipath/bindings
180fi
181
182%preun
183%if %{with systemd}
184%systemd_preun multipathd.service
185%else
186if [ "$1" = 0 -o -x /bin/systemctl ]; then
187        /sbin/service multipathd stop /dev/null 2>&1
188        /sbin/chkconfig --del multipathd
189fi
190%endif
191
192
193%postun
194if [ $1 -ge 1 ] ; then
195        /sbin/multipathd forcequeueing daemon > /dev/null 2>&1 || :
196fi
197%if %{with systemd}
198%systemd_postun_with_restart multipathd.service
199%else
200if [ "$1" -ge "1" ]; then
201        /sbin/service multipathd condrestart >/dev/null 2>&1 || :
202fi
203%endif
204
205%post libs -p /sbin/ldconfig
206%postun libs -p /sbin/ldconfig
207
208%post -n libdmmp -p /sbin/ldconfig
209%postun -n libdmmp -p /sbin/ldconfig
210
211
212%files
213%defattr(-,root,root,-)
214%license LICENSES/GPL-2.0 LICENSES/LGPL-2.0
215%doc README*
216%config /lib/udev/rules.d/62-multipath.rules
217%config /lib/udev/rules.d/11-dm-mpath.rules
218%{_syssbindir}/multipath
219%{_syssbindir}/multipathd
220%{_syssbindir}/mpathconf
221%{_syssbindir}/mpathpersist
222%{_mandir}/man5/multipath.conf.5.gz
223%{_mandir}/man8/multipath.8.gz
224%{_mandir}/man8/multipathd.8.gz
225%{_mandir}/man8/mpathconf.8.gz
226%{_mandir}/man8/mpathpersist.8.gz
227%config(noreplace) /etc/multipath.conf
228%dir /etc/multipath
229%if %{with systemd}
230%{_unitdir}/multipathd.service
231%{_unitdir}/multipathd.socket
232%else
233%config /etc/rc.d/init.d/multipathd
234%endif
235
236%files libs
237%license LICENSES/GPL-2.0 LICENSES/LGPL-2.0
238%doc README
239/%{_lib}/libmultipath.so
240/%{_lib}/libmultipath.so.*
241/%{_lib}/libmpathpersist.so.*
242/%{_lib}/libmpathcmd.so.*
243%dir /%{_lib}/multipath
244/%{_lib}/multipath/*
245
246%files devel
247%doc README
248/%{_lib}/libmpathpersist.so
249/%{_lib}/libmpathcmd.so
250%{_includedir}/mpath_cmd.h
251%{_includedir}/mpath_persist.h
252%{_mandir}/man3/mpath_persistent_reserve_in.3.gz
253%{_mandir}/man3/mpath_persistent_reserve_out.3.gz
254
255%files -n kpartx
256%defattr(-,root,root,-)
257%license LICENSES/GPL-2.0 LICENSES/LGPL-2.0
258%doc README
259%{_syssbindir}/kpartx
260/lib/udev/kpartx_id
261%config /lib/udev/rules.d/11-dm-parts.rules
262%config /lib/udev/rules.d/66-kpartx.rules
263%config /lib/udev/rules.d/68-del-part-nodes.rules
264%{_mandir}/man8/kpartx.8.gz
265
266%files -n libdmmp
267%license LICENSES/GPL-3.0
268%doc README
269%{_libdir}/libdmmp.so.*
270
271%files -n libdmmp-devel
272%doc README
273%{_libdir}/libdmmp.so
274%dir %{_includedir}/libdmmp
275%{_includedir}/libdmmp/*
276%{_mandir}/man3/dmmp_*
277%{_mandir}/man3/libdmmp.h.3.gz
278%{_libdir}/pkgconfig/libdmmp.pc
279
280
281%changelog
282* Sat May 16 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.2-2
283- rebuilt with json-c-0.14.
284- added systemd support (disabled as default).
285
286* Sat Mar 28 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.8.2-1
287- new upstream release.
288- replaced all patches with rawhide's.
289- added sub-packages.
290  - device-mapper-multipath-libs
291  - device-mapper-multipath-devel
292  - libdmmp
293  - libdmmp-devel
294
295* Sat Mar 21 2015 Ryoichi INAGAKI <ryo1@toki.waseda.jp> 0.4.9-5
296- rebuilt with readline 6.3
297- changed BuildRequires: libsysfs-devel instead of sysfsutils-devel
298- added Japanese summary
299
300* Mon Jan 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.9-4
301- rebuild with VineSeed environment
302
303* Wed May 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.9-3
304- import patches from RH package
305
306* Wed Apr 20 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.9-2
307- install multipath libraries to %%{_lib}/multipath
308
309* Wed Apr 20 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.9-1
310- update to 0.4.9
311- drop static version
312- add BR: libaio-devel
313
314* Sun Sep 07 2008 Shu KONNO <owa@bg.wakwak.com> 0.4.7-12vl5
315- applied new versioning policy
316
317* Thu Feb 14 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.4.7-11vl1
318- initial build for VineSeed
319- add Patch100 to disable linking to libselinux and libsepol
320
321* Mon Feb 05 2007 Alasdair Kergon <agk@redhat.com> - 0.4.7-11.fc7
322- Add build dependency on new device-mapper-devel package.
323- Add dependency on device-mapper.
324
325* Wed Jan 31 2007 Benjamin Marzinksi <bmarzins@redhat.com> - 0.4.7-10.fc7
326- Update BuildRoot and PreReq lines.
327
328* Mon Jan 15 2007 Benjamin Marzinksi <bmarzins@redhat.com> - 0.4.7-9.fc7
329- Fixed spec file.
330
331* Mon Jan 15 2007 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.7-8.fc7
332- Update to latest code (t0_4_7_head2)
333
334* Wed Dec 13 2006 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.7-7.fc7
335- Update to latest code (t0_4_7_head1)
336
337* Thu Sep  7 2006 Peter Jones <pjones@redhat.com> - 0.4.7-5
338- Fix kpartx to handle with drives >2TB correctly.
339
340* Thu Aug 31 2006 Peter Jones <pjones@redhat.com> - 0.4.7-4.1
341- Split kpartx out into its own package so dmraid can use it without
342  installing multipathd
343- Fix a segfault in kpartx
344
345* Mon Jul 17 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-4.0
346- Updated to latest source. Fixes bug in default multipath.conf
347
348* Wed Jul 12 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-3.1
349- Added ncurses-devel to BuildRequires
350
351* Wed Jul 12 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-3.0
352- Updated to latest source. deals with change in libsysfs API
353
354* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.4.7-2.2.1
355- rebuild
356
357* Mon Jul 10 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-2.2
358- fix tagging issue.
359
360* Mon Jul 10 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-2.1
361- changed BuildRequires from sysfsutils-devel to libsysfs-devel
362
363* Wed Jun 28 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-2.0
364- Updated to latest upstream source, fixes kpartx udev rule issue
365
366* Tue Jun 06 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-1.0
367- Updated to Christophe's latest source
368
369* Mon May 22 2006 Alasdair Kergon <agk@redhat.com> - 0.4.5-16.0
370- Newer upstream source (t0_4_5_post59).
371
372* Mon May 22 2006 Alasdair Kergon <agk@redhat.com> - 0.4.5-12.3
373- BuildRequires: libsepol-devel, readline-devel
374
375* Mon Feb 27 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.5-12.2
376- Prereq: chkconfig
377
378* Mon Feb 20 2006 Karsten Hopp <karsten@redhat.de> 0.4.5-12.1
379- BuildRequires: libselinux-devel
380
381* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.4.5-12.0.1
382- bump again for double-long bug on ppc(64)
383
384* Tue Feb 07 2006 Benjamin Marzinski <bmarzins@redhat.com> -0.4.5-12.0
385- Updated to latest upstream source (t0_4_5_post56)
386
387* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.4.5-9.1.1
388- rebuilt for new gcc4.1 snapshot and glibc changes
389
390* Mon Dec 19 2005 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.5-9.1
391- added patch for fedora changes
392
393* Fri Dec 16 2005 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.5-9.0
394- Updated to latest upstream source (t)_4_5_post52)
395
396* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
397- rebuilt
398
399* Sun Dec  4 2005 Peter Jones <pjones@redhat.com> - 0.4.4-2.6
400- rebuild for newer libs
401
402* Tue Nov 15 2005 Peter Jones <pjones@redhat.com> - 0.4.4-2.5
403- unsplit kpartx.  parted knows how to do this now, so we don't
404  need this in a separate package.
405
406* Tue Nov 15 2005 Peter Jones <pjones@redhat.com> - 0.4.4-2.4
407- split kpartx out into its own package
408
409* Fri May 06 2005 Bill Nottingham <notting@redhat.com> - 0.4.4-2.3
410- Fix last fix.
411
412* Thu May 05 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-2.2
413- Fix last fix.
414
415* Wed May 04 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-2.1
416- By default, disable the multipathd service.
417
418* Tue Apr 19 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-2.0
419- Fix core dump from last build.
420
421* Tue Apr 19 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-1.0
422- Move cache file into /var/cache/multipath.
423
424* Fri Apr 08 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-0.pre8.1
425- Remove pp_balance_units.
426
427* Mon Apr 04 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-0.pre8.0
428- Incorporate numerous upstream fixes.
429- Update init script to distribution standards.
430
431* Tue Mar 01 2005 Alasdair Kergon <agk@redhat.com> - 0.4.2-1.0
432- Initial import based on Christophe Varoqui's spec file.
Note: See TracBrowser for help on using the repository browser.