lvm2-vl.spec 28 KB

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