lvm2-vl.spec 28 KB

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