lvm2-vl.spec 28 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922
  1. %bcond_with systemd
  2. %define _unpackaged_files_terminate_build 1
  3. Summary: Userland logical volume management tools
  4. Summary(ja): 論理ボリューム管理ツール
  5. Name: lvm2
  6. Version: 2.03.16
  7. %global lvm_version %{version}
  8. %define device_mapper_version 1.02.185
  9. # Do not reset Release to 1 unless both lvm2 and device-mapper
  10. # versions are increased together.
  11. Release: 1%{?_dist_release}%{?with_systemd:.systemd}
  12. Group: admin-tools
  13. Distribution: Vine Linux
  14. Vendor: Project Vine
  15. Packager: daisuke
  16. License: GPLv2
  17. URL: http://sourceware.org/lvm2/
  18. Source0: LVM2.%{version}.tgz
  19. Patch1: 0001-devices-file-move-clean-up-after-command-is-run.patch
  20. Patch2: 0002-devices-file-fail-if-devicesfile-filename-doesn-t-ex.patch
  21. Patch3: 0003-filter-mpath-handle-other-wwid-types-in-blacklist.patch
  22. Patch4: 0004-filter-mpath-get-wwids-from-sysfs-vpd_pg83.patch
  23. Patch5: 0005-pvdisplay-restore-reportformat-option.patch
  24. Patch6: 0006-exit-with-error-when-devicesfile-name-doesn-t-exist.patch
  25. Patch7: 0007-make-generate.patch
  26. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
  27. BuildRequires: libaio-devel
  28. BuildRequires: libtermcap-devel
  29. BuildRequires: ncurses-devel
  30. BuildRequires: readline-devel
  31. Requires: device-mapper >= %{device_mapper_version}-%{release}
  32. Requires: device-mapper-event >= %{device_mapper_version}-%{release}
  33. Requires: %{name}-libs = %{version}-%{release}
  34. %if %{with systemd}
  35. BuildRequires: python3
  36. BuildRequires: python3-pyudev
  37. BuildRequires: dbus-python3
  38. BuildRequires: systemd-devel
  39. BuildRequires: systemd-units
  40. %{?systemd_requires}
  41. %else
  42. BuildRequires: libudev-devel
  43. %endif
  44. Conflicts: lvm
  45. Obsoletes: lvm
  46. %define _exec_prefix /usr
  47. %description
  48. LVM2 includes all of the support for handling read/write operations on
  49. physical volumes (hard disks, RAID-Systems, magneto optical, etc.,
  50. multiple devices (MD), see mdadd(8) or even loop devices, see
  51. losetup(8)), creating volume groups (kind of virtual disks) from one
  52. or more physical volumes and creating one or more logical volumes
  53. (kind of logical partitions) in volume groups.
  54. %package devel
  55. Summary: Development libraries and headers for lvm2
  56. Summary(ja): LVM2 の開発用ライブラリ及びヘッダファイル
  57. Group: programming
  58. License: LGPLv2
  59. Requires: %{name} = %{version}-%{release}
  60. Requires: %{name}-libs = %{version}-%{release}
  61. Requires: device-mapper-devel >= %{device_mapper_version}-%{release}
  62. Requires: device-mapper-event-devel >= %{device_mapper_version}-%{release}
  63. Requires: pkgconfig
  64. %description devel
  65. This package contains files needed to develop applications that use
  66. the lvm2 libraries.
  67. %package libs
  68. Summary: lvm2 shared libraries
  69. Summary(ja): LVM2 の共有ライブラリ
  70. License: LGPLv2
  71. Group: system
  72. %description libs
  73. This package contains shared lvm2 libraries for applications.
  74. %if %{with systemd}
  75. %package dbusd
  76. Summary: LVM2 D-Bus daemon
  77. Summary(ja): LVM2 D-Bus デーモン
  78. Group: system
  79. License: GPLv2
  80. BuildArch: noarch
  81. Requires: lvm2 >= %{version}-%{release}
  82. Requires: dbus
  83. Requires: dbus-python3
  84. Requires: python3-pyudev
  85. Requires: python3-pygobject
  86. Requires(post): systemd-units
  87. Requires(preun): systemd-units
  88. Requires(postun): systemd-units
  89. %description dbusd
  90. Daemon for access to LVM2 functionality through a D-Bus interface.
  91. %endif
  92. # device-mapper
  93. %package -n device-mapper
  94. Summary: Device mapper utility
  95. Summary(ja): Device-mapper ユーティリティ集
  96. Version: %{device_mapper_version}
  97. Release: %{release}
  98. License: GPLv2
  99. Group: system
  100. URL: http://sources.redhat.com/dm
  101. Requires: device-mapper-libs = %{device_mapper_version}-%{release}
  102. Requires: eudev-libudev
  103. Requires: util-linux-ng >= 2.15
  104. %description -n device-mapper
  105. This package contains the supporting userspace utility, dmsetup,
  106. for the kernel device-mapper.
  107. # device-mapper-devel
  108. %package -n device-mapper-devel
  109. Summary: Development libraries and headers for device-mapper
  110. Summary(ja): Device-mapper の開発用ライブラリ及びヘッダファイル
  111. Version: %{device_mapper_version}
  112. Release: %{release}
  113. License: LGPLv2
  114. Group: programming
  115. Requires: device-mapper = %{device_mapper_version}-%{release}
  116. Requires: device-mapper-libs = %{device_mapper_version}-%{release}
  117. %description -n device-mapper-devel
  118. This package contains files needed to develop applications that use
  119. the device-mapper libraries.
  120. %package -n device-mapper-libs
  121. Summary: Device-mapper shared library
  122. Summary(ja): Device-mapper の共有ライブラリ
  123. Version: %{device_mapper_version}
  124. Release: %{release}
  125. License: LGPLv2
  126. Group: system
  127. Obsoletes: device-mapper < 1.02.30-1
  128. %description -n device-mapper-libs
  129. This package contains the device-mapper shared library, libdevmapper.
  130. %package -n device-mapper-event
  131. Summary: Device-mapper event daemon
  132. Summary(ja): Device-mapper イベントデーモン
  133. Version: %{device_mapper_version}
  134. Release: %{release}
  135. Group: system
  136. Requires: device-mapper = %{device_mapper_version}-%{release}
  137. Requires: device-mapper-event-libs = %{device_mapper_version}-%{release}
  138. %description -n device-mapper-event
  139. This package contains the dmeventd daemon for monitoring the state
  140. of device-mapper devices.
  141. %package -n device-mapper-event-libs
  142. Summary: Device-mapper event daemon shared library
  143. Summary(ja): Device-mapper イベントデーモン共有ライブラリ
  144. Version: %{device_mapper_version}
  145. Release: %{release}
  146. Group: system
  147. License: LGPLv2
  148. %description -n device-mapper-event-libs
  149. This package contains the device-mapper event daemon shared library,
  150. libdevmapper-event.
  151. %package -n device-mapper-event-devel
  152. Summary: Development libraries and headers for the device-mapper event daemon
  153. Summary(ja): Device-mapper イベントデーモンの開発用ライブラリ及びヘッダファイル
  154. Version: %{device_mapper_version}
  155. Release: %{release}
  156. Group: programming
  157. License: LGPLv2
  158. Requires: device-mapper-event = %{device_mapper_version}-%{release}
  159. Requires: pkgconfig
  160. %description -n device-mapper-event-devel
  161. This package contains files needed to develop applications that use
  162. the device-mapper event library.
  163. %debug_package
  164. %prep
  165. %setup -q -n LVM2.%{lvm_version}
  166. %patch1 -p1 -b .backup1
  167. %patch2 -p1 -b .backup2
  168. %patch3 -p1 -b .backup3
  169. %patch4 -p1 -b .backup4
  170. %patch5 -p1 -b .backup5
  171. %patch6 -p1 -b .backup6
  172. %patch7 -p1 -b .backup7
  173. %build
  174. %define _exec_prefix /
  175. %define _bindir /bin
  176. %define _sbindir /sbin
  177. %define _libdir /%{_lib}
  178. %define _udevbasedir /lib/udev
  179. %define _udevdir %{_udevbasedir}/rules.d
  180. %if %{with systemd}
  181. %global _default_pid_dir /run
  182. %global _default_dm_run_dir /run
  183. %global _default_run_dir /run/lvm
  184. %global _default_locking_dir /run/lock/lvm
  185. %endif
  186. %configure \
  187. --enable-readline \
  188. --enable-lvm1_fallback \
  189. --enable-fsadm \
  190. --with-pool=internal \
  191. --with-staticdir=/sbin \
  192. --with-user= --with-group= \
  193. --with-usrlibdir=/usr/%{_lib} \
  194. --with-usrsbindir=/usr/sbin \
  195. --with-dmdir=device-mapper.%{device_mapper_version} \
  196. --with-udevdir=%{_udevdir} \
  197. --with-device-uid=0 --with-device-gid=6 \
  198. --with-device-mode=0660 \
  199. --enable-pkgconfig \
  200. --enable-applib \
  201. --enable-cmdlib \
  202. --enable-dmeventd \
  203. --enable-udev_sync \
  204. %if %{with systemd}
  205. --with-default-dm-run-dir=%{_default_dm_run_dir} \
  206. --with-default-run-dir=%{_default_run_dir} \
  207. --with-default-pid-dir=%{_default_pid_dir} \
  208. --with-default-locking-dir=%{_default_locking_dir} \
  209. --enable-dmfilemapd \
  210. --enable-lvmpolld \
  211. --enable-dbus-service --enable-notify-dbus \
  212. --with-cache=internal \
  213. --with-writecache=internal \
  214. --with-vdo=internal --with-vdo-format=%{_bindir}/vdoformat \
  215. %endif
  216. --disable-silent-rules
  217. make %{?_smp_mflags}
  218. %install
  219. rm -rf $RPM_BUILD_ROOT
  220. make install DESTDIR=$RPM_BUILD_ROOT
  221. %if %{with systemd}
  222. make install_system_dirs DESTDIR=$RPM_BUILD_ROOT
  223. make install_systemd_units DESTDIR=$RPM_BUILD_ROOT
  224. make install_systemd_generators DESTDIR=$RPM_BUILD_ROOT
  225. make install_tmpfiles_configuration DESTDIR=$RPM_BUILD_ROOT
  226. %else
  227. mkdir -p -m755 $RPM_BUILD_ROOT/etc/rc.d/init.d
  228. install -m 0755 scripts/lvm2_monitoring_init_red_hat $RPM_BUILD_ROOT/etc/rc.d/init.d/lvm2-monitor
  229. %endif
  230. install -m 0700 -d $RPM_BUILD_ROOT/etc/lvm/archive
  231. install -m 0700 -d $RPM_BUILD_ROOT/etc/lvm/backup
  232. install -m 0700 -d $RPM_BUILD_ROOT/etc/lvm/cache
  233. install -m 0700 -d $RPM_BUILD_ROOT/var/lock/lvm
  234. install -m 0600 /dev/null $RPM_BUILD_ROOT/etc/lvm/cache/.cache
  235. %clean
  236. rm -rf $RPM_BUILD_ROOT
  237. %post
  238. %if %{with systemd}
  239. %systemd_post blk-availability.service lvm2-monitor.service
  240. if [ "$1" = "1" ] ; then
  241. # FIXME: what to do with this? We do not want to start it in a container/chroot
  242. # enable and start lvm2-monitor.service on completely new installation only, not on upgrades
  243. /sbin/ldconfig
  244. systemctl enable lvm2-monitor.service
  245. systemctl start lvm2-monitor.service >/dev/null 2>&1 || :
  246. fi
  247. %systemd_post lvm2-lvmpolld.socket
  248. # lvm2-lvmpolld socket is always enabled and started and ready to serve if lvmpolld is used
  249. # replace direct systemctl calls with systemd rpm macro once this is provided in the macro:
  250. # http://cgit.freedesktop.org/systemd/systemd/commit/?id=57ab2eabb8f92fad5239c7d4492e9c6e23ee0678
  251. systemctl enable lvm2-lvmpolld.socket
  252. systemctl start lvm2-lvmpolld.socket >/dev/null 2>&1 || :
  253. %else
  254. /sbin/chkconfig --add lvm2-monitor
  255. %endif
  256. %preun
  257. %if %{with systemd}
  258. %systemd_preun blk-availability.service lvm2-monitor.service
  259. %systemd_preun lvm2-lvmpolld.service lvm2-lvmpolld.socket
  260. %else
  261. if [ "$1" = 0 -o -x /bin/systemctl ]; then
  262. /sbin/chkconfig --del lvm2-monitor
  263. fi
  264. %endif
  265. %if %{with systemd}
  266. %postun
  267. %systemd_postun lvm2-monitor.service
  268. %systemd_postun_with_restart lvm2-lvmpolld.service
  269. %endif
  270. %if %{with systemd}
  271. %post dbusd
  272. %systemd_post lvm2-lvmdbusd.service
  273. %preun dbusd
  274. %systemd_preun lvm2-lvmdbusd.service
  275. %postun dbusd
  276. %systemd_postun lvm2-lvmdbusd.service
  277. %post -n device-mapper-event
  278. %systemd_post dm-event.socket
  279. # dm-event.socket is always enabled and started and ready to serve if dmeventd is used
  280. # replace direct systemctl calls with systemd rpm macro once this is provided in the macro:
  281. # http://cgit.freedesktop.org/systemd/systemd/commit/?id=57ab2eabb8f92fad5239c7d4492e9c6e23ee0678
  282. systemctl enable dm-event.socket
  283. systemctl start dm-event.socket >/dev/null 2>&1 || :
  284. if [ -e %{_default_pid_dir}/dmeventd.pid ]; then
  285. %{_sbindir}/dmeventd -R || echo "Failed to restart dmeventd daemon. Please, try manual restart."
  286. fi
  287. %preun -n device-mapper-event
  288. %systemd_preun dm-event.service dm-event.socket
  289. %endif
  290. %files
  291. %defattr(-,root,root,-)
  292. %license COPYING COPYING.LIB
  293. %doc INSTALL README VERSION WHATS_NEW
  294. %attr(555,root,root) %{_sbindir}/fsadm
  295. %{_sbindir}/lvchange
  296. %{_sbindir}/lvconvert
  297. %{_sbindir}/lvcreate
  298. %{_sbindir}/lvdisplay
  299. %{_sbindir}/lvextend
  300. %{_sbindir}/lvm
  301. %{_sbindir}/lvmconfig
  302. %{_sbindir}/lvmdevices
  303. %{_sbindir}/lvmdiskscan
  304. %{_sbindir}/lvmdump
  305. %{_sbindir}/lvmsadc
  306. %{_sbindir}/lvmsar
  307. %{_sbindir}/lvreduce
  308. %{_sbindir}/lvremove
  309. %{_sbindir}/lvrename
  310. %{_sbindir}/lvresize
  311. %{_sbindir}/lvm_import_vdo
  312. %{_sbindir}/lvs
  313. %{_sbindir}/lvscan
  314. %{_sbindir}/pvchange
  315. %{_sbindir}/pvck
  316. %{_sbindir}/pvcreate
  317. %{_sbindir}/pvdisplay
  318. %{_sbindir}/pvmove
  319. %{_sbindir}/pvremove
  320. %{_sbindir}/pvresize
  321. %{_sbindir}/pvs
  322. %{_sbindir}/pvscan
  323. %{_sbindir}/vgcfgbackup
  324. %{_sbindir}/vgcfgrestore
  325. %{_sbindir}/vgchange
  326. %{_sbindir}/vgck
  327. %{_sbindir}/vgconvert
  328. %{_sbindir}/vgcreate
  329. %{_sbindir}/vgdisplay
  330. %{_sbindir}/vgexport
  331. %{_sbindir}/vgextend
  332. %{_sbindir}/vgimport
  333. %{_sbindir}/vgimportclone
  334. %{_sbindir}/vgimportdevices
  335. %{_sbindir}/vgmerge
  336. %{_sbindir}/vgmknodes
  337. %{_sbindir}/vgreduce
  338. %{_sbindir}/vgremove
  339. %{_sbindir}/vgrename
  340. %{_sbindir}/vgs
  341. %{_sbindir}/vgscan
  342. %{_sbindir}/vgsplit
  343. %{_mandir}/man5/lvm.conf.5.gz
  344. %{_mandir}/man7/lvmautoactivation.7.gz
  345. %{_mandir}/man7/lvmcache.7.gz
  346. %{_mandir}/man7/lvmraid.7.gz
  347. %{_mandir}/man7/lvmreport.7.gz
  348. %{_mandir}/man7/lvmsystemid.7.gz
  349. %{_mandir}/man7/lvmthin.7.gz
  350. %{_mandir}/man7/lvmvdo.7.gz
  351. %{_mandir}/man8/fsadm.8.gz
  352. %{_mandir}/man8/lvchange.8.gz
  353. %{_mandir}/man8/lvconvert.8.gz
  354. %{_mandir}/man8/lvcreate.8.gz
  355. %{_mandir}/man8/lvdisplay.8.gz
  356. %{_mandir}/man8/lvextend.8.gz
  357. %{_mandir}/man8/lvm.8.gz
  358. %{_mandir}/man8/lvm-config.8.gz
  359. %{_mandir}/man8/lvm-dumpconfig.8.gz
  360. %{_mandir}/man8/lvm-fullreport.8.gz
  361. %{_mandir}/man8/lvm-lvpoll.8.gz
  362. %{_mandir}/man8/lvm_import_vdo.8.gz
  363. %{_mandir}/man8/lvmconfig.8.gz
  364. %{_mandir}/man8/lvmdevices.8.gz
  365. %{_mandir}/man8/lvmdiskscan.8.gz
  366. %{_mandir}/man8/lvmdump.8.gz
  367. %{_mandir}/man8/lvmsadc.8.gz
  368. %{_mandir}/man8/lvmsar.8.gz
  369. %{_mandir}/man8/lvreduce.8.gz
  370. %{_mandir}/man8/lvremove.8.gz
  371. %{_mandir}/man8/lvrename.8.gz
  372. %{_mandir}/man8/lvresize.8.gz
  373. %{_mandir}/man8/lvs.8.gz
  374. %{_mandir}/man8/lvscan.8.gz
  375. %{_mandir}/man8/pvchange.8.gz
  376. %{_mandir}/man8/pvck.8.gz
  377. %{_mandir}/man8/pvcreate.8.gz
  378. %{_mandir}/man8/pvdisplay.8.gz
  379. %{_mandir}/man8/pvmove.8.gz
  380. %{_mandir}/man8/pvremove.8.gz
  381. %{_mandir}/man8/pvresize.8.gz
  382. %{_mandir}/man8/pvs.8.gz
  383. %{_mandir}/man8/pvscan.8.gz
  384. %{_mandir}/man8/vgcfgbackup.8.gz
  385. %{_mandir}/man8/vgcfgrestore.8.gz
  386. %{_mandir}/man8/vgchange.8.gz
  387. %{_mandir}/man8/vgck.8.gz
  388. %{_mandir}/man8/vgconvert.8.gz
  389. %{_mandir}/man8/vgcreate.8.gz
  390. %{_mandir}/man8/vgdisplay.8.gz
  391. %{_mandir}/man8/vgexport.8.gz
  392. %{_mandir}/man8/vgextend.8.gz
  393. %{_mandir}/man8/vgimport.8.gz
  394. %{_mandir}/man8/vgimportclone.8.gz
  395. %{_mandir}/man8/vgimportdevices.8.gz
  396. %{_mandir}/man8/vgmerge.8.gz
  397. %{_mandir}/man8/vgmknodes.8.gz
  398. %{_mandir}/man8/vgreduce.8.gz
  399. %{_mandir}/man8/vgremove.8.gz
  400. %{_mandir}/man8/vgrename.8.gz
  401. %{_mandir}/man8/vgs.8.gz
  402. %{_mandir}/man8/vgscan.8.gz
  403. %{_mandir}/man8/vgsplit.8.gz
  404. %{_udevdir}/11-dm-lvm.rules
  405. %{_udevdir}/69-dm-lvm.rules
  406. %dir /etc/lvm
  407. %ghost /etc/lvm/cache/.cache
  408. %config(noreplace) /etc/lvm/lvm.conf
  409. %config(noreplace) /etc/lvm/lvmlocal.conf
  410. %dir /etc/lvm/backup
  411. %dir /etc/lvm/cache
  412. %dir /etc/lvm/archive
  413. %dir /var/lock/lvm
  414. %dir /etc/lvm/profile
  415. /etc/lvm/profile/*.profile
  416. %if %{with systemd}
  417. %{_sbindir}/lvmpolld
  418. %{_mandir}/man8/lvmpolld.8*
  419. %{_tmpfilesdir}/lvm2.conf
  420. %{_unitdir}/blk-availability.service
  421. %{_unitdir}/lvm2-lvmpolld.service
  422. %{_unitdir}/lvm2-lvmpolld.socket
  423. %{_unitdir}/lvm2-monitor.service
  424. %else
  425. /etc/rc.d/init.d/lvm2-monitor
  426. %endif
  427. %files devel
  428. %defattr(-,root,root,-)
  429. /usr%{_libdir}/liblvm2cmd.so
  430. %{_includedir}/lvm2cmd.h
  431. /usr%{_libdir}/libdevmapper-event-lvm2.so
  432. %files libs
  433. %attr(755,root,root) %{_libdir}/liblvm2cmd.so.*
  434. %attr(755,root,root) %{_libdir}/libdevmapper-event-lvm2.so.*
  435. %dir %{_libdir}/device-mapper
  436. %{_libdir}/device-mapper/libdevmapper-event-lvm2mirror.so
  437. %{_libdir}/device-mapper/libdevmapper-event-lvm2snapshot.so
  438. %{_libdir}/device-mapper/libdevmapper-event-lvm2raid.so
  439. %{_libdir}/device-mapper/libdevmapper-event-lvm2thin.so
  440. %{_libdir}/device-mapper/libdevmapper-event-lvm2vdo.so
  441. %{_libdir}/libdevmapper-event-lvm2mirror.so
  442. %{_libdir}/libdevmapper-event-lvm2snapshot.so
  443. %{_libdir}/libdevmapper-event-lvm2raid.so
  444. %{_libdir}/libdevmapper-event-lvm2thin.so
  445. %{_libdir}/libdevmapper-event-lvm2vdo.so
  446. %if %{with systemd}
  447. %files dbusd
  448. %defattr(555,root,root,-)
  449. %{_sbindir}/lvmdbusd
  450. %defattr(444,root,root,-)
  451. %{_sysconfdir}/dbus-1/system.d/com.redhat.lvmdbus1.conf
  452. %{_datadir}/dbus-1/system-services/com.redhat.lvmdbus1.service
  453. %{_mandir}/man8/lvmdbusd.8*
  454. %{_unitdir}/lvm2-lvmdbusd.service
  455. %dir %{python3_sitelib}/lvmdbusd
  456. %{python3_sitelib}/lvmdbusd/*
  457. %endif
  458. %files -n device-mapper
  459. %defattr(-,root,root,-)
  460. %license COPYING COPYING.LIB
  461. %doc WHATS_NEW_DM VERSION_DM README INSTALL udev/12-dm-permissions.rules
  462. %attr(755,root,root) /sbin/blkdeactivate
  463. %attr(755,root,root) /sbin/dmsetup
  464. /sbin/dmstats
  465. %{_mandir}/man8/blkdeactivate.8.gz
  466. %{_mandir}/man8/dmsetup.8.gz
  467. %{_mandir}/man8/dmstats.8.gz
  468. %dir %{_udevbasedir}
  469. %dir %{_udevdir}
  470. %{_udevdir}/10-dm.rules
  471. %{_udevdir}/13-dm-disk.rules
  472. %{_udevdir}/95-dm-notify.rules
  473. %if %{with systemd}
  474. /sbin/dmfilemapd
  475. %{_mandir}/man8/dmfilemapd.8*
  476. %endif
  477. %files -n device-mapper-devel
  478. %defattr(-,root,root,-)
  479. /usr%{_libdir}/libdevmapper.so
  480. %{_includedir}/libdevmapper.h
  481. /usr%{_libdir}/pkgconfig/devmapper.pc
  482. %files -n device-mapper-libs
  483. %attr(755,root,root) %{_libdir}/libdevmapper.so.*
  484. %files -n device-mapper-event
  485. %defattr(-,root,root,-)
  486. %{_sbindir}/dmeventd
  487. %{_mandir}/man8/dmeventd.8.gz
  488. %if %{with systemd}
  489. %{_unitdir}/dm-event.service
  490. %{_unitdir}/dm-event.socket
  491. %endif
  492. %files -n device-mapper-event-libs
  493. %{_libdir}/libdevmapper-event.so.*
  494. %files -n device-mapper-event-devel
  495. %defattr(-,root,root,-)
  496. /usr%{_libdir}/libdevmapper-event.so
  497. %{_includedir}/libdevmapper-event.h
  498. /usr%{_libdir}/pkgconfig/devmapper-event.pc
  499. %changelog
  500. * Sat Nov 05 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.03.16-1
  501. - new upstream release.
  502. * Thu Apr 08 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.03.11-1
  503. - new upstream release.
  504. * Wed May 20 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.03.09-2
  505. - added systemd support (disabled as default).
  506. * Sun Mar 29 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.03.09-1
  507. - new upstream release.
  508. - dropped Patch1, 2 and 10.
  509. * Sat Feb 24 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.02.177-1
  510. - updated to 2.02.177
  511. - dropped Patch2: fixed in upstream.
  512. - imported Patch1 and 2 from rawhide.
  513. * Mon Jul 14 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2.02.107-1
  514. - add patch20 to fix duplicate 'const' in libdevmapper.h
  515. * Mon Jul 07 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2.02.107-1
  516. - update to 2.02.107
  517. * Tue Jun 17 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.02.98-3
  518. - change BuildRequires: eudev-libudev-devel instead of libudev-devel
  519. * Tue Dec 11 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.98-2
  520. - add missing files to %%files
  521. * Thu Nov 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.98-1
  522. - new upstream release
  523. * Mon Mar 21 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.84-1
  524. - new upstream release
  525. - enable static libs, add device-mapper-static subpackage
  526. * Sat Feb 05 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.83-1
  527. - new upstream release
  528. * Sat Dec 25 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.02.79-1
  529. - new upstream release
  530. * Thu Dec 09 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.02.78-1
  531. - new upstream release
  532. - fix %%files
  533. * Fri Oct 01 2010 Shu KONNO <owa@bg.wakwak.com> 2.02.62-3
  534. - rebuilt with rpm-4.8.1 for pkg-config
  535. * Sun Apr 11 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.62-2
  536. - add missing file
  537. - %{_udevdir}/11-dm-lvm.rules
  538. * Mon Mar 29 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.62-1
  539. - new upstream release
  540. - add libs,devel subpackage
  541. - liblvm2{app,cmd},libdevmapper-event-lvm2
  542. - enable dmeventd
  543. - add device-mapper-event{,-libs,-devel}
  544. - enable udev sync code
  545. - add BR: libudev-devel, R: libudev
  546. - disable static libs and binaries
  547. * Sun Feb 14 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.02.60-1
  548. - new upstream release
  549. * Thu Jul 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.48-1
  550. - new upstream release
  551. * Tue Jun 02 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.47-1
  552. - new upstream release
  553. * Wed Feb 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.44-2
  554. - add libdevmapper.a
  555. * Thu Jan 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.44-1
  556. - new upstream release
  557. - upstream merge of device-mapper and lvm2 source.
  558. - move all binaries to /sbin
  559. - move libraries to /%%{_lib}
  560. * Wed Oct 29 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.42-1
  561. - new upstream release
  562. * Sun Oct 19 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.41-1
  563. - new upstream release
  564. * Sat Sep 20 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.40-1
  565. - new upstream release
  566. * Sun Jul 06 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.39-1
  567. - new upstream release
  568. * Thu Jun 12 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.38-1
  569. - new upstream release
  570. * Thu Apr 17 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.35-1
  571. - new upstream release
  572. * Sat Dec 01 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.28-0vl1
  573. - new upstream release
  574. * Wed Nov 01 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.13-0vl1
  575. - new upstream release
  576. * Sat Aug 19 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.02.06-0vl1
  577. - initial build for Vine Linux
  578. * Tue Aug 1 2006 Jeremy Katz <katzj@redhat.com> - 2.02.06-3
  579. - require new libselinux to avoid segfaults on xen (#200783)
  580. * Thu Jul 27 2006 Jeremy Katz <katzj@redhat.com> - 2.02.06-2
  581. - free trip through the buildsystem
  582. * Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 2.02.06-1.2.1
  583. - rebuild
  584. * Tue Jun 6 2006 Stephen C. Tweedie <sct@redhat.com> - 2.02.06-1.2
  585. - Rebuild to pick up new nosegneg libc.a for lvm.static
  586. * Mon May 22 2006 Alasdair Kergon <agk@redhat.com> - 2.02.06-1.1
  587. - Reinstate archs now build system is back.
  588. - BuildRequires libsepol-devel.
  589. * Fri May 12 2006 Alasdair Kergon <agk@redhat.com> - 2.02.06-1.0
  590. - New upstream release.
  591. * Sat Apr 22 2006 Alasdair Kergon <agk@redhat.com> - 2.02.05-1.1
  592. - Exclude archs that aren't building.
  593. * Fri Apr 21 2006 Alasdair Kergon <agk@redhat.com> - 2.02.05-1.0
  594. - Fix VG uuid comparisons.
  595. * Wed Apr 19 2006 Alasdair Kergon <agk@redhat.com> - 2.02.04-1.0
  596. - New release upstream, including better handling of duplicated VG names.
  597. * Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 2.02.01-1.2.1
  598. - bump again for double-long bug on ppc(64)
  599. * Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 2.02.01-1.2
  600. - rebuilt for new gcc4.1 snapshot and glibc changes
  601. * Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
  602. - rebuilt
  603. * Fri Dec 2 2005 Peter Jones <pjones@redhat.com> - 2.02.01-1
  604. - update to 2.02.01
  605. * Tue Nov 8 2005 Jeremy Katz <katzj@redhat.com> - 2.01.14-4
  606. - add patch for xen block devices
  607. * Sat Oct 15 2005 Florian La Roche <laroche@redhat.com>
  608. - add -lselinux -lsepol to the static linking -ldevice-mapper requires it
  609. * Wed Sep 14 2005 Jeremy Katz <katzj@redhat.com> - 2.01.14-2
  610. - the distro doesn't really work without a 2.6 kernel, so no need to require it
  611. * Thu Aug 4 2005 Alasdair Kergon <agk@redhat.com> - 2.01.14-1.0
  612. - And a few more bugs fixes.
  613. * Wed Jul 13 2005 Alasdair Kergon <agk@redhat.com> - 2.01.13-1.0
  614. - Fix several bugs discovered in the last release.
  615. * Tue Jun 14 2005 Alasdair Kergon <agk@redhat.com> - 2.01.12-1.0
  616. - New version upstream with a lot of fixes and enhancements.
  617. * Wed Apr 27 2005 Alasdair Kergon <agk@redhat.com> - 2.01.08-2.1
  618. - Add /etc/lvm
  619. * Wed Apr 27 2005 Alasdair Kergon <agk@redhat.com> - 2.01.08-2.0
  620. - No longer abort read operations if archive/backup directories aren't there.
  621. - Add runtime directories and file to the package.
  622. * Tue Mar 22 2005 Alasdair Kergon <agk@redhat.com> - 2.01.08-1.0
  623. - Improve detection of external changes affecting internal cache.
  624. - Add clustered VG attribute.
  625. - Suppress rmdir opendir error message.
  626. * Tue Mar 08 2005 Alasdair Kergon <agk@redhat.com> - 2.01.07-1.3
  627. * Tue Mar 08 2005 Alasdair Kergon <agk@redhat.com> - 2.01.07-1.2
  628. * Tue Mar 08 2005 Alasdair Kergon <agk@redhat.com> - 2.01.07-1.1
  629. - Suppress some new compiler messages.
  630. * Tue Mar 08 2005 Alasdair Kergon <agk@redhat.com> - 2.01.07-1.0
  631. - Remove build directory from built-in path.
  632. - Extra /dev scanning required for clustered operation.
  633. * Thu Mar 03 2005 Alasdair Kergon <agk@redhat.com> - 2.01.06-1.0
  634. - Allow anaconda to suppress warning messages.
  635. * Fri Feb 18 2005 Alasdair Kergon <agk@redhat.com> - 2.01.05-1.0
  636. - Upstream changes not affecting Fedora.
  637. * Wed Feb 09 2005 Alasdair Kergon <agk@redhat.com> - 2.01.04-1.0
  638. - Offset pool minors; lvm2cmd.so skips open fd check; pvmove -f gone.
  639. * Tue Feb 01 2005 Alasdair Kergon <agk@redhat.com> - 2.01.03-1.0
  640. - Fix snapshot device size & 64-bit display output.
  641. * Fri Jan 21 2005 Alasdair Kergon <agk@redhat.com> - 2.01.02-1.0
  642. - Minor fixes.
  643. * Mon Jan 17 2005 Alasdair Kergon <agk@redhat.com> - 2.01.01-1.0
  644. - Update vgcreate man page. Preparation for snapshot origin extension fix.
  645. * Mon Jan 17 2005 Alasdair Kergon <agk@redhat.com> - 2.01.00-1.0
  646. - Fix metadata auto-correction. Only request open_count when needed.
  647. * Wed Jan 12 2005 Tim Waugh <twaugh@redhat.com> - 2.00.33-2.0
  648. - Rebuilt for new readline.
  649. * Fri Jan 7 2005 Alasdair Kergon <agk@redhat.com> - 2.00.33-1.0
  650. - pvcreate wipes ext label
  651. - several clvm fixes
  652. * Thu Jan 6 2005 Alasdair Kergon <agk@redhat.com> - 2.00.32-2.0
  653. - Remove temporary /sbin symlinks no longer needed.
  654. - Include read-only pool support in the build.
  655. * Wed Dec 22 2004 Alasdair Kergon <agk@redhat.com> - 2.00.32-1.0
  656. - More fixes (143501).
  657. * Sun Dec 12 2004 Alasdair Kergon <agk@redhat.com> - 2.00.31-1.0
  658. - Fix pvcreate install issues.
  659. * Fri Dec 10 2004 Alasdair Kergon <agk@redhat.com> - 2.00.30-1.0
  660. - Additional debugging code.
  661. - Some trivial man page corrections.
  662. * Tue Nov 30 2004 Alasdair Kergon <agk@redhat.com> - 2.00.29-1.3
  663. - Reinstate all archs.
  664. * Sun Nov 28 2004 Alasdair Kergon <agk@redhat.com> - 2.00.29-1.2
  665. - Try excluding more archs.
  666. * Sat Nov 27 2004 Alasdair Kergon <agk@redhat.com> - 2.00.29-1.1
  667. - Exclude s390x which fails.
  668. * Sat Nov 27 2004 Alasdair Kergon <agk@redhat.com> - 2.00.29-1
  669. - Fix last fix.
  670. * Sat Nov 27 2004 Alasdair Kergon <agk@redhat.com> - 2.00.28-1
  671. - Endian fix to partition/md signature detection.
  672. * Wed Nov 24 2004 Alasdair Kergon <agk@redhat.com> - 2.00.27-1
  673. - Fix partition table detection & an out of memory segfault.
  674. * Tue Nov 23 2004 Alasdair Kergon <agk@redhat.com> - 2.00.26-1
  675. - Several installation-related fixes & man page updates.
  676. * Mon Oct 25 2004 Elliot Lee <sopwith@redhat.com> - 2.00.25-1.01
  677. - Fix 2.6 kernel requirement
  678. * Wed Sep 29 2004 Alasdair Kergon <agk@redhat.com> - 2.00.25-1
  679. - Fix vgmknodes return code & vgremove locking.
  680. * Fri Sep 17 2004 Alasdair Kergon <agk@redhat.com> - 2.00.24-2
  681. - Obsolete old lvm1 packages; refuse install if running kernel 2.4. [bz 128185]
  682. * Thu Sep 16 2004 Alasdair Kergon <agk@redhat.com> - 2.00.24-1
  683. - More upstream fixes. (Always check WHATS_NEW file for details.)
  684. - Add requested BuildRequires. [bz 124916, 132408]
  685. * Wed Sep 15 2004 Alasdair Kergon <agk@redhat.com> - 2.00.23-1
  686. - Various minor upstream fixes.
  687. * Fri Sep 3 2004 Alasdair Kergon <agk@redhat.com> - 2.00.22-1
  688. - Permission fix included upstream; use different endian conversion macros.
  689. * Thu Sep 2 2004 Jeremy Katz <katzj@redhat.com> - 2.00.21-2
  690. - fix permissions on vg dirs
  691. * Thu Aug 19 2004 Alasdair Kergon <agk@redhat.com> - 2.00.21-1
  692. - New upstream release incorporating fixes plus minor enhancements.
  693. * Tue Aug 17 2004 Jeremy Katz <katzj@redhat.com> - 2.00.20-2
  694. - add patch for iSeries viodasd support
  695. - add patch to check file type using stat(2) if d_type == DT_UNKNOWN (#129674)
  696. * Sat Jul 3 2004 Alasdair Kergon <agk@redhat.com> - 2.00.20-1
  697. - New upstream release fixes 2.6 kernel device numbers.
  698. * Tue Jun 29 2004 Alasdair Kergon <agk@redhat.com> - 2.00.19-1
  699. - Latest upstream release. Lots of changes (see WHATS_NEW).
  700. * Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com> - 2.00.15-5
  701. - rebuilt
  702. * Wed May 26 2004 Alasdair Kergon <agk@redhat.com> - 2.00.15-4
  703. - clone %description from LVM rpm
  704. * Wed May 26 2004 Alasdair Kergon <agk@redhat.com> - 2.00.15-3
  705. - vgscan shouldn't return error status when no VGs present
  706. * Thu May 06 2004 Warren Togami <wtogami@redhat.com> - 2.00.15-2
  707. - i2o patch from Markus Lidel
  708. * Tue Apr 20 2004 Bill Nottingham <notting@redhat.com> - 2.00.15-1.1
  709. - handle disabled SELinux correctly, so that LVMs can be detected in a
  710. non-SELinux context
  711. * Mon Apr 19 2004 Alasdair Kergon <agk@redhat.com> - 2.00.15-1
  712. - Fix non-root build with current version of 'install'.
  713. * Fri Apr 16 2004 Alasdair Kergon <agk@redhat.com> - 2.00.14-1
  714. - Use 64-bit file offsets.
  715. * Fri Apr 16 2004 Alasdair Kergon <agk@redhat.com> - 2.00.13-1
  716. - Avoid scanning devices containing md superblocks.
  717. - Integrate ENOTSUP patch.
  718. * Thu Apr 15 2004 Jeremy Katz <katzj@redhat.com> - 2.00.12-4
  719. - don't die if we get ENOTSUP setting selinux contexts
  720. * Thu Apr 15 2004 Alasdair Kergon <agk@redhat.com> 2.00.12-3
  721. - Add temporary pvscan symlink for LVM1 until mkinitrd gets updated.
  722. * Wed Apr 14 2004 Alasdair Kergon <agk@redhat.com> 2.00.12-2
  723. - Mark config file noreplace.
  724. * Wed Apr 14 2004 Alasdair Kergon <agk@redhat.com> 2.00.12-1
  725. - Install default /etc/lvm/lvm.conf.
  726. - Move non-static binaries to /usr/sbin.
  727. - Add temporary links in /sbin to lvm.static until rc.sysinit gets updated.
  728. * Thu Apr 08 2004 Alasdair Kergon <agk@redhat.com> 2.00.11-1
  729. - Fallback to using LVM1 tools when using a 2.4 kernel without device-mapper.
  730. * Wed Apr 07 2004 Alasdair Kergon <agk@redhat.com> 2.00.10-2
  731. - Install the full toolset, not just 'lvm'.
  732. * Wed Apr 07 2004 Alasdair Kergon <agk@redhat.com> 2.00.10-1
  733. - Update to version 2.00.10, which incorporates the RH-specific patches
  734. and includes various fixes and enhancements detailed in WHATS_NEW.
  735. * Wed Mar 17 2004 Jeremy Katz <katzj@redhat.com> 2.00.08-5
  736. - Fix sysfs patch to find sysfs
  737. - Take patch from dwalsh and tweak a little for setting SELinux contexts on
  738. device node creation and also do it on the symlink creation.
  739. Part of this should probably be pushed down to device-mapper instead
  740. * Thu Feb 19 2004 Stephen C. Tweedie <sct@redhat.com> 2.00.08-4
  741. - Add sysfs filter patch
  742. - Allow non-root users to build RPM
  743. * Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
  744. - rebuilt
  745. * Fri Dec 5 2003 Jeremy Katz <katzj@redhat.com> 2.00.08-2
  746. - add static lvm binary
  747. * Tue Dec 2 2003 Jeremy Katz <katzj@redhat.com>
  748. - Initial build.