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

Revision 12356, 12.9 KB checked in by tomop, 4 years ago (diff)

updated 8 packages

device-mapper-multipath-0.8.2-1

dmraid-1.0.0.rc16-4

jansson-2.12-2

libbsd-0.10.0-1

libedit-3.1-4.20191231

libnsl2-1.2.0-2

libxcrypt-4.4.15-1

sgpio-1.2.1-1

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