lvm2-vl.spec 28 KB

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