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

Revision 9256, 8.5 KB checked in by Takemikaduchi, 9 years ago (diff)

cpufrequtils,dev86,hdf5,irqbalance,openslp,pcmciautils: new upstream release
others: rebuild

Line 
1Summary: Tools to manage multipath devices using device-mapper
2Name: device-mapper-multipath
3Version: 0.4.9
4Release: 4%{?_dist_release}
5License: GPL+
6Group: System Environment/Base
7URL: http://christophe.varoqui.free.fr/
8Source0: multipath-tools-%{version}.tar.bz2
9Source1: multipath.conf
10
11# patch that should go upstream
12Patch1: 0001-for-upstream-add-tpg_pref-prioritizer.patch
13
14# RH patches
15Patch1007: 0007-RH-do-not-remove.patch
16Patch1008: 0008-RH-Make-build-system-RH-Fedora-friendly.patch
17Patch1009: 0009-RH-multipathd-blacklist-all-by-default.patch
18Patch1010: 0010-RH-multipath-rules-udev-changes.patch
19Patch1014: 0014-RH-add-hp_tur-checker.patch
20Patch1017: 0017-RHBZ-554592-man-page-note.patch
21Patch1018: 0018-RHBZ-554596-SUN-6540-config.patch
22Patch1019: 0019-RHBZ-554598-fix-multipath-locking.patch
23Patch1020: 0020-RHBZ-554605-fix-manual-failover.patch
24Patch1021: 0021-RHBZ-548874-add-find-multipaths-2.patch
25Patch1022: 0022-RHBZ-557845-RHEL5-style-partitions-2.patch
26Patch1023: 0023-RHBZ-557810-emc-invista-config.patch
27Patch1024: 0024-RHBZ-565933-checker-timeout-2.patch
28
29BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
30Requires(post): chkconfig
31Requires(preun): chkconfig
32Requires: kpartx = %{version}-%{release}
33Requires: device-mapper >= 1.02.39
34BuildRequires: sysfsutils-devel, device-mapper-devel
35#BuildRequires: libselinux-devel, libsepol-devel
36BuildRequires: readline-devel, ncurses-devel
37BuildRequires: libaio-devel
38
39Vendor: Project Vine
40Distribution: Vine Linux
41Packager: daisuke
42
43%description
44%{name} provides tools to manage multipath devices by instructing the
45device-mapper multipath kernel module what to do.
46The tools are :
47* multipath :   Scan the system for multipath devices and assemble them.
48* multipathd :  Detects when paths fail and execs multipath to update things.
49
50
51%package -n kpartx
52Summary: Partition device manager for device-mapper devices
53Group: System Environment/Base
54Provides: kpartx = %{version}-%{release}
55
56
57%description -n kpartx
58kpartx manages partition creation and removal for device-mapper devices.
59
60
61%prep
62%setup -q -c
63%patch1 -p1
64%patch1007 -p1
65%patch1008 -p1
66%patch1009 -p1
67%patch1010 -p1
68%patch1014 -p1
69%patch1017 -p1
70%patch1018 -p1
71%patch1019 -p1
72%patch1020 -p1
73%patch1021 -p1
74%patch1022 -p1
75%patch1023 -p1
76%patch1024 -p1
77
78
79%build
80make LIB=%{_lib}
81
82%install
83rm -rf $RPM_BUILD_ROOT
84make install \
85  DESTDIR=$RPM_BUILD_ROOT \
86  bindir=%{_syssbindir} \
87  syslibdir=/%{_lib} \
88  libdir=/%{_lib}/multipath \
89  rcdir=%{_initrddir}
90
91install -d %{buildroot}/etc/multipath
92install -m644 %{SOURCE1} %{buildroot}/etc/multipath.conf
93
94install -m755 multipathd/multipathd.init.redhat %{buildroot}%{_initrddir}/multipathd
95
96%clean
97rm -rf $RPM_BUILD_ROOT
98
99
100%post
101/sbin/ldconfig
102/sbin/chkconfig --add multipathd
103if [ "$1" -gt "1" -a ! -e /etc/multipath/bindings -a \
104    -f /var/lib/multipath/bindings ]; then
105       mv /var/lib/multipath/bindings /etc/multipath/bindings
106       ln -s /etc/multipath/bindings /var/lib/multipath/bindings
107fi
108
109%preun
110if [ "$1" = 0 ]; then
111        /sbin/service multipathd stop /dev/null 2>&1
112        /sbin/chkconfig --del multipathd
113fi
114
115
116%postun
117/sbin/ldconfig
118if [ "$1" -ge "1" ]; then
119        /sbin/service multipathd condrestart >/dev/null 2>&1 || :
120fi
121
122
123%files
124%defattr(-,root,root,-)
125%doc AUTHOR COPYING README* FAQ
126%doc multipath.conf.annotated multipath.conf.defaults
127%doc multipath.conf.synthetic
128%{_syssbindir}/multipath
129%{_syssbindir}/multipathd
130%{_syssbindir}/mpathconf
131%config /lib/udev/rules.d/40-multipath.rules
132%{_mandir}/man8/multipath.8.gz
133%{_mandir}/man8/multipathd.8.gz
134%{_mandir}/man5/multipath.conf.5.gz
135%config /etc/rc.d/init.d/multipathd
136%config(noreplace) /etc/multipath.conf
137%dir /etc/multipath
138/%{_lib}/libmultipath.so*
139%dir /%{_lib}/multipath
140/%{_lib}/multipath/*
141
142%files -n kpartx
143%defattr(-,root,root,-)
144%{_syssbindir}/kpartx
145%{_mandir}/man8/kpartx.8.gz
146
147
148%changelog
149* Mon Jan 12 2015 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.4.9-4
150- rebuild with VineSeed environment
151
152* Wed May 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.9-3
153- import patches from RH package
154
155* Wed Apr 20 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.9-2
156- install multipath libraries to %%{_lib}/multipath
157
158* Wed Apr 20 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4.9-1
159- update to 0.4.9
160- drop static version
161- add BR: libaio-devel
162
163* Sun Sep 07 2008 Shu KONNO <owa@bg.wakwak.com> 0.4.7-12vl5
164- applied new versioning policy
165
166* Thu Feb 14 2008 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.4.7-11vl1
167- initial build for VineSeed
168- add Patch100 to disable linking to libselinux and libsepol
169
170* Mon Feb 05 2007 Alasdair Kergon <agk@redhat.com> - 0.4.7-11.fc7
171- Add build dependency on new device-mapper-devel package.
172- Add dependency on device-mapper.
173
174* Wed Jan 31 2007 Benjamin Marzinksi <bmarzins@redhat.com> - 0.4.7-10.fc7
175- Update BuildRoot and PreReq lines.
176
177* Mon Jan 15 2007 Benjamin Marzinksi <bmarzins@redhat.com> - 0.4.7-9.fc7
178- Fixed spec file.
179
180* Mon Jan 15 2007 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.7-8.fc7
181- Update to latest code (t0_4_7_head2)
182
183* Wed Dec 13 2006 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.7-7.fc7
184- Update to latest code (t0_4_7_head1)
185
186* Thu Sep  7 2006 Peter Jones <pjones@redhat.com> - 0.4.7-5
187- Fix kpartx to handle with drives >2TB correctly.
188
189* Thu Aug 31 2006 Peter Jones <pjones@redhat.com> - 0.4.7-4.1
190- Split kpartx out into its own package so dmraid can use it without
191  installing multipathd
192- Fix a segfault in kpartx
193
194* Mon Jul 17 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-4.0
195- Updated to latest source. Fixes bug in default multipath.conf
196
197* Wed Jul 12 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-3.1
198- Added ncurses-devel to BuildRequires
199
200* Wed Jul 12 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-3.0
201- Updated to latest source. deals with change in libsysfs API
202
203* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.4.7-2.2.1
204- rebuild
205
206* Mon Jul 10 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-2.2
207- fix tagging issue.
208
209* Mon Jul 10 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-2.1
210- changed BuildRequires from sysfsutils-devel to libsysfs-devel
211
212* Wed Jun 28 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-2.0
213- Updated to latest upstream source, fixes kpartx udev rule issue
214
215* Tue Jun 06 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.7-1.0
216- Updated to Christophe's latest source
217
218* Mon May 22 2006 Alasdair Kergon <agk@redhat.com> - 0.4.5-16.0
219- Newer upstream source (t0_4_5_post59).
220
221* Mon May 22 2006 Alasdair Kergon <agk@redhat.com> - 0.4.5-12.3
222- BuildRequires: libsepol-devel, readline-devel
223
224* Mon Feb 27 2006 Benjamin Marzinski <bmarzins@redhat.com> 0.4.5-12.2
225- Prereq: chkconfig
226
227* Mon Feb 20 2006 Karsten Hopp <karsten@redhat.de> 0.4.5-12.1
228- BuildRequires: libselinux-devel
229
230* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 0.4.5-12.0.1
231- bump again for double-long bug on ppc(64)
232
233* Tue Feb 07 2006 Benjamin Marzinski <bmarzins@redhat.com> -0.4.5-12.0
234- Updated to latest upstream source (t0_4_5_post56)
235
236* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 0.4.5-9.1.1
237- rebuilt for new gcc4.1 snapshot and glibc changes
238
239* Mon Dec 19 2005 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.5-9.1
240- added patch for fedora changes
241
242* Fri Dec 16 2005 Benjamin Marzinski <bmarzins@redhat.com> - 0.4.5-9.0
243- Updated to latest upstream source (t)_4_5_post52)
244
245* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
246- rebuilt
247
248* Sun Dec  4 2005 Peter Jones <pjones@redhat.com> - 0.4.4-2.6
249- rebuild for newer libs
250
251* Tue Nov 15 2005 Peter Jones <pjones@redhat.com> - 0.4.4-2.5
252- unsplit kpartx.  parted knows how to do this now, so we don't
253  need this in a separate package.
254
255* Tue Nov 15 2005 Peter Jones <pjones@redhat.com> - 0.4.4-2.4
256- split kpartx out into its own package
257
258* Fri May 06 2005 Bill Nottingham <notting@redhat.com> - 0.4.4-2.3
259- Fix last fix.
260
261* Thu May 05 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-2.2
262- Fix last fix.
263
264* Wed May 04 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-2.1
265- By default, disable the multipathd service.
266
267* Tue Apr 19 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-2.0
268- Fix core dump from last build.
269
270* Tue Apr 19 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-1.0
271- Move cache file into /var/cache/multipath.
272
273* Fri Apr 08 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-0.pre8.1
274- Remove pp_balance_units.
275
276* Mon Apr 04 2005 Alasdair Kergon <agk@redhat.com> - 0.4.4-0.pre8.0
277- Incorporate numerous upstream fixes.
278- Update init script to distribution standards.
279
280* Tue Mar 01 2005 Alasdair Kergon <agk@redhat.com> - 0.4.2-1.0
281- Initial import based on Christophe Varoqui's spec file.
Note: See TracBrowser for help on using the repository browser.