2013-05-08 14:33:11 +04:00
### MAIN PACKAGE (lvm2)
% post
/ sbin / ldconfig
% daemon_reload
% enable - s monitor - t service
% enable - s lvmetad - t socket
% preun
if [ " $ 1 " = 0 ]; then
% disable - s monitor - t service
% disable - s lvmetad - t socket
fi
% postun
% daemon_reload
if [ $ 1 - ge 1 ]; then
% try_restart - s monitor - t service
% try_restart - s lvmetad - t service
fi
% triggerun -- % { name } < 2.02 . 86 - 2
% { _bindir } / systemd - sysv - convert -- save lvm2 - monitor >/ dev / null 2 >& 1 || :
/ bin / systemctl -- no - reload enable lvm2 - monitor . service > / dev / null 2 >& 1 || :
/ sbin / chkconfig -- del lvm2 - monitor > / dev / null 2 >& 1 || :
/ bin / systemctl try - restart lvm2 - monitor . service > / dev / null 2 >& 1 || :
# files in the main package
% files
% defattr ( - , root , root , - )
% doc COPYING COPYING . LIB INSTALL README VERSION WHATS_NEW
% doc doc / lvm_fault_handling . txt
% { _sbindir } / fsadm
% { _sbindir } / lvchange
% { _sbindir } / lvconvert
% { _sbindir } / lvcreate
% { _sbindir } / lvdisplay
% { _sbindir } / lvextend
% { _sbindir } / lvm
% { _sbindir } / lvmchange
% { _sbindir } / lvmdiskscan
% { _sbindir } / lvmdump
% { _sbindir } / lvmsadc
% { _sbindir } / lvmsar
% { _sbindir } / lvreduce
% { _sbindir } / lvremove
% { _sbindir } / lvrename
% { _sbindir } / lvresize
% { _sbindir } / lvs
% { _sbindir } / lvscan
% { _sbindir } / pvchange
% { _sbindir } / pvck
% { _sbindir } / pvcreate
% { _sbindir } / pvdisplay
% { _sbindir } / pvmove
% { _sbindir } / pvremove
% { _sbindir } / pvresize
% { _sbindir } / pvs
% { _sbindir } / pvscan
% { _sbindir } / vgcfgbackup
% { _sbindir } / vgcfgrestore
% { _sbindir } / vgchange
% { _sbindir } / vgck
% { _sbindir } / vgconvert
% { _sbindir } / vgcreate
% { _sbindir } / vgdisplay
% { _sbindir } / vgexport
% { _sbindir } / vgextend
% { _sbindir } / vgimport
% { _sbindir } / vgimportclone
% { _sbindir } / vgmerge
% { _sbindir } / vgmknodes
% { _sbindir } / vgreduce
% { _sbindir } / vgremove
% { _sbindir } / vgrename
% { _sbindir } / vgs
% { _sbindir } / vgscan
% { _sbindir } / vgsplit
% { _sbindir } / lvmconf
% { _sbindir } / blkdeactivate
% if % { have_service lvmetad }
% { _sbindir } / lvmetad
% endif
% { _mandir } / man5 / lvm . conf . 5. gz
% { _mandir } / man8 / fsadm . 8. gz
% { _mandir } / man8 / lvchange . 8. gz
% { _mandir } / man8 / lvconvert . 8. gz
% { _mandir } / man8 / lvcreate . 8. gz
% { _mandir } / man8 / lvdisplay . 8. gz
% { _mandir } / man8 / lvextend . 8. gz
% { _mandir } / man8 / lvm . 8. gz
% { _mandir } / man8 / lvmchange . 8. gz
% { _mandir } / man8 / lvmconf . 8. gz
% { _mandir } / man8 / lvmdiskscan . 8. gz
% { _mandir } / man8 / lvmdump . 8. gz
% { _mandir } / man8 / lvmsadc . 8. gz
% { _mandir } / man8 / lvmsar . 8. gz
% { _mandir } / man8 / lvreduce . 8. gz
% { _mandir } / man8 / lvremove . 8. gz
% { _mandir } / man8 / lvrename . 8. gz
% { _mandir } / man8 / lvresize . 8. gz
% { _mandir } / man8 / lvs . 8. gz
% { _mandir } / man8 / lvscan . 8. gz
% { _mandir } / man8 / pvchange . 8. gz
% { _mandir } / man8 / pvck . 8. gz
% { _mandir } / man8 / pvcreate . 8. gz
% { _mandir } / man8 / pvdisplay . 8. gz
% { _mandir } / man8 / pvmove . 8. gz
% { _mandir } / man8 / pvremove . 8. gz
% { _mandir } / man8 / pvresize . 8. gz
% { _mandir } / man8 / pvs . 8. gz
% { _mandir } / man8 / pvscan . 8. gz
% { _mandir } / man8 / vgcfgbackup . 8. gz
% { _mandir } / man8 / vgcfgrestore . 8. gz
% { _mandir } / man8 / vgchange . 8. gz
% { _mandir } / man8 / vgck . 8. gz
% { _mandir } / man8 / vgconvert . 8. gz
% { _mandir } / man8 / vgcreate . 8. gz
% { _mandir } / man8 / vgdisplay . 8. gz
% { _mandir } / man8 / vgexport . 8. gz
% { _mandir } / man8 / vgextend . 8. gz
% { _mandir } / man8 / vgimport . 8. gz
% { _mandir } / man8 / vgimportclone . 8. gz
% { _mandir } / man8 / vgmerge . 8. gz
% { _mandir } / man8 / vgmknodes . 8. gz
% { _mandir } / man8 / vgreduce . 8. gz
% { _mandir } / man8 / vgremove . 8. gz
% { _mandir } / man8 / vgrename . 8. gz
% { _mandir } / man8 / vgs . 8. gz
% { _mandir } / man8 / vgscan . 8. gz
% { _mandir } / man8 / vgsplit . 8. gz
% { _mandir } / man8 / blkdeactivate . 8. gz
2014-03-28 03:32:12 +04:00
% { _mandir } / man8 / lvm - dumpconfig . 8. gz
2013-05-08 14:33:11 +04:00
% if % { enable_udev }
% { _udevdir } / 11 - dm - lvm . rules
% if % { have_service lvmetad }
% { _mandir } / man8 / lvmetad . 8. gz
% { _udevdir } / 69 - dm - lvm - metad . rules
% endif
% endif
% dir % { _sysconfdir } / lvm
% ghost % { _sysconfdir } / lvm / cache /. cache
% config ( noreplace ) % verify ( not md5 mtime size ) % { _sysconfdir } / lvm / lvm . conf
2013-07-23 01:38:02 +04:00
% config ( noreplace ) % verify ( not md5 mtime size ) % { _sysconfdir } / lvm / profile / default . profile
2013-11-17 21:20:53 +04:00
% config ( noreplace ) % verify ( not md5 mtime size ) % { _sysconfdir } / lvm / profile / thin - performance . profile
2013-05-08 14:33:11 +04:00
% dir % { _sysconfdir } / lvm / backup
% dir % { _sysconfdir } / lvm / cache
% dir % { _sysconfdir } / lvm / archive
% dir % { _default_locking_dir }
% dir % { _default_run_dir }
% if % { enable_systemd }
% config ( noreplace ) % { _prefix } / lib / tmpfiles . d /% { name } . conf
% { _unitdir } / lvm2 - monitor . service
% if % { have_service lvmetad }
% { _unitdir } / lvm2 - lvmetad . socket
% { _unitdir } / lvm2 - lvmetad . service
2013-11-19 12:24:17 +04:00
% { _unitdir } / lvm2 - pvscan @. service
2013-05-08 14:33:11 +04:00
% { _unitdir } / blk - availability . service
% endif
% else
% { _sysconfdir } / rc . d / init . d / lvm2 - monitor
% { _sysconfdir } / rc . d / init . d / blk - availability
% if % { have_service lvmetad }
% { _sysconfdir } / rc . d / init . d / lvm2 - lvmetad
% endif
% endif
##############################################################################
# Library and Development subpackages
##############################################################################
% package devel
Summary : Development libraries and headers
Group : Development / Libraries
License : LGPLv2
Requires : % { name } = % { version } -% { release }
Requires : device - mapper - devel >= % { device_mapper_version } -% { release }
Requires : device - mapper - event - devel >= % { device_mapper_version } -% { release }
Requires : pkgconfig
% description devel
This package contains files needed to develop applications that use
the lvm2 libraries .
% files devel
% defattr ( - , root , root , - )
% { _libdir } / liblvm2app . so
% { _libdir } / liblvm2cmd . so
% { _includedir } / lvm2app . h
% { _includedir } / lvm2cmd . h
% { _libdir } / pkgconfig / lvm2app . pc
% { _libdir } / libdevmapper - event - lvm2 . so
% package libs
Summary : Shared libraries for lvm2
License : LGPLv2
Group : System Environment / Libraries
Requires : device - mapper - event >= % { device_mapper_version } -% { release }
% description libs
This package contains shared lvm2 libraries for applications .
% post libs - p / sbin / ldconfig
% postun libs - p / sbin / ldconfig
% files libs
% defattr ( - , root , root , - )
% attr ( 755 , root , root ) % { _libdir } / liblvm2app . so .*
% attr ( 755 , root , root ) % { _libdir } / liblvm2cmd . so .*
% attr ( 755 , root , root ) % { _libdir } / libdevmapper - event - lvm2 . so .*
% dir % { _libdir } / device - mapper
% { _libdir } / device - mapper / libdevmapper - event - lvm2mirror . so
% { _libdir } / device - mapper / libdevmapper - event - lvm2snapshot . so
% { _libdir } / device - mapper / libdevmapper - event - lvm2raid . so
% if % { have_with thin }
% { _libdir } / device - mapper / libdevmapper - event - lvm2thin . so
% { _libdir } / libdevmapper - event - lvm2thin . so
% endif
% { _libdir } / libdevmapper - event - lvm2mirror . so
% { _libdir } / libdevmapper - event - lvm2snapshot . so
% { _libdir } / libdevmapper - event - lvm2raid . so
##############################################################################
# Cluster subpackage
##############################################################################
% if % { have_with clvmd }
% package cluster
Summary : Cluster extensions for userland logical volume management tools
License : GPLv2
Group : System Environment / Base
Requires : lvm2 >= % { version } -% { release }
Requires ( post ) : chkconfig
Requires ( preun ) : chkconfig
Requires ( preun ) : device - mapper >= % { device_mapper_version }
Requires ( preun ) : lvm2 >= 2.02
% maybe Requires : % { req_cluster }
% description cluster
Extensions to LVM2 to support clusters .
% post cluster
/ sbin / chkconfig -- add clvmd
if [ " $ 1 " - gt " 1 " ] ; then
/ usr / sbin / clvmd - S >/ dev / null 2 >& 1 || :
fi
% preun cluster
if [ " $ 1 " = 0 ]; then
/ sbin / chkconfig -- del clvmd
# lvmconf may no longer exist if lvm2 is being removed in the same rpm run
if test - x / sbin / lvmconf ; then / sbin / lvmconf -- disable - cluster ; fi
fi
% files cluster
% defattr ( - , root , root , - )
% attr ( 755 , root , root ) / usr / sbin / clvmd
% { _mandir } / man8 / clvmd . 8. gz
% { _sysconfdir } / rc . d / init . d / clvmd
2014-02-20 12:49:45 +04:00
% if % { enable_systemd }
% { _unitdir } / lvm2 - clvmd . service
% { _unitdir } / lvm2 - cluster - activation . service
% { _unitdir } /../ lvm2 - cluster - activation
% endif
2013-05-08 14:33:11 +04:00
% endif
##############################################################################
# Cluster mirror subpackage
##############################################################################
% if % { enable_cmirror }
% package - n cmirror
Summary : Daemon for device - mapper - based clustered mirrors
Group : System Environment / Base
Requires ( post ) : chkconfig
Requires ( preun ) : chkconfig
Requires : corosync >= % { corosync_version }
Requires : device - mapper >= % { device_mapper_version } -% { release }
% description - n cmirror
Daemon providing device - mapper - based mirrors in a shared - storage cluster .
% post - n cmirror
/ sbin / chkconfig -- add cmirrord
% preun - n cmirror
if [ " $ 1 " = 0 ]; then
/ sbin / chkconfig -- del cmirrord
fi
% files - n cmirror
% defattr ( - , root , root , - )
% attr ( 755 , root , root ) / usr / sbin / cmirrord
% { _mandir } / man8 / cmirrord . 8. gz
% { _sysconfdir } / rc . d / init . d / cmirrord
2014-02-20 12:49:45 +04:00
% if % { enable_systemd }
% { _unitdir } / lvm2 - cmirrord . service
% endif
2013-05-08 14:33:11 +04:00
% endif
##############################################################################
# Legacy SysV init subpackage
##############################################################################
% if % { enable_systemd }
% package sysvinit
Summary : SysV style init script for LVM2 .
Group : System Environment / Base
Requires : % { name } = % { version } -% { release }
Requires : initscripts
% description sysvinit
SysV style init script for LVM2 . It needs to be installed only if systemd
is not used as the system init process .
% files sysvinit
% { _sysconfdir } / rc . d / init . d / lvm2 - monitor
% { _sysconfdir } / rc . d / init . d / blk - availability
% if % { have_service lvmetad }
% { _sysconfdir } / rc . d / init . d / lvm2 - lvmetad
% endif
% endif
##############################################################################
# Device-mapper subpackages
##############################################################################
% package - n device - mapper
Summary : Device mapper utility
Version : % { device_mapper_version }
Release : % { release }
License : GPLv2
Group : System Environment / Base
URL : http :// sources . redhat . com / dm
Requires : device - mapper - libs = % { device_mapper_version } -% { release }
Requires : util - linux >= 2.15
% maybe Requires : % { req_udev }
% if % { enable_udev }
# We need dracut to install required udev rules if udev_sync
# feature is turned on so we don't lose required notifications.
Conflicts : dracut < 002 - 18
% endif
% description - n device - mapper
This package contains the supporting userspace utility , dmsetup ,
for the kernel device - mapper .
% files - n device - mapper
% defattr ( - , root , root , - )
% doc COPYING COPYING . LIB WHATS_NEW_DM VERSION_DM README INSTALL
% attr ( 755 , root , root ) % { _sbindir } / dmsetup
% { _mandir } / man8 / dmsetup . 8. gz
% if % { enable_udev }
% doc udev / 12 - dm - permissions . rules
% dir % { _udevbasedir }
% dir % { _udevdir }
% { _udevdir } / 10 - dm . rules
% { _udevdir } / 13 - dm - disk . rules
% { _udevdir } / 95 - dm - notify . rules
% endif
% package - n device - mapper - devel
Summary : Development libraries and headers for device - mapper
Version : % { device_mapper_version }
Release : % { release }
License : LGPLv2
Group : Development / Libraries
Requires : device - mapper = % { device_mapper_version } -% { release }
Requires : pkgconfig
% description - n device - mapper - devel
This package contains files needed to develop applications that use
the device - mapper libraries .
% files - n device - mapper - devel
% defattr ( - , root , root , - )
% { _libdir } / libdevmapper . so
% { _includedir } / libdevmapper . h
% { _libdir } / pkgconfig / devmapper . pc
% package - n device - mapper - libs
Summary : Device - mapper shared library
Version : % { device_mapper_version }
Release : % { release }
License : LGPLv2
Group : System Environment / Libraries
Requires : device - mapper = % { device_mapper_version } -% { release }
% description - n device - mapper - libs
This package contains the device - mapper shared library , libdevmapper .
% post - n device - mapper - libs - p / sbin / ldconfig
% postun - n device - mapper - libs - p / sbin / ldconfig
% files - n device - mapper - libs
% attr ( 755 , root , root ) % { _libdir } / libdevmapper . so .*
% package - n device - mapper - event
Summary : Device - mapper event daemon
Group : System Environment / Base
Version : % { device_mapper_version }
Release : % { release }
Requires : device - mapper = % { device_mapper_version } -% { release }
Requires : device - mapper - event - libs = % { device_mapper_version } -% { release }
% if % { enable_systemd }
Requires ( post ) : systemd - units
Requires ( preun ) : systemd - units
Requires ( postun ) : systemd - units
% endif
% description - n device - mapper - event
This package contains the dmeventd daemon for monitoring the state
of device - mapper devices .
% post - n device - mapper - event
% if % { enable_systemd }
/ bin / systemctl daemon - reload > / dev / null 2 >& 1 || :
/ bin / systemctl enable dm - event . socket > / dev / null 2 >& 1 || :
% endif
% preun - n device - mapper - event
% if % { enable_systemd }
if [ " $ 1 " = 0 ]; then
/ bin / systemctl -- no - reload disable dm - event . service dm - event . socket > / dev / null 2 >& 1 || :
/ bin / systemctl stop dm - event . service dm - event . socket > / dev / null 2 >& 1 || :
fi
% endif
% postun - n device - mapper - event
% if % { enable_systemd }
/ bin / systemctl daemon - reload > / dev / null 2 >& 1 || :
if [ $ 1 - ge 1 ]; then
/ bin / systemctl reload dm - event . service > / dev / null 2 >& 1 || :
fi
% endif
% files - n device - mapper - event
% defattr ( - , root , root , - )
% { _sbindir } / dmeventd
% { _mandir } / man8 / dmeventd . 8. gz
% if % { enable_systemd }
% { _unitdir } / dm - event . socket
% { _unitdir } / dm - event . service
% endif
% package - n device - mapper - event - libs
Summary : Device - mapper event daemon shared library
Version : % { device_mapper_version }
Release : % { release }
License : LGPLv2
Group : System Environment / Libraries
% description - n device - mapper - event - libs
This package contains the device - mapper event daemon shared library ,
libdevmapper - event .
% post - n device - mapper - event - libs - p / sbin / ldconfig
% postun - n device - mapper - event - libs - p / sbin / ldconfig
% files - n device - mapper - event - libs
% attr ( 755 , root , root ) % { _libdir } / libdevmapper - event . so .*
% package - n device - mapper - event - devel
Summary : Development libraries and headers for the device - mapper event daemon
Version : % { device_mapper_version }
Release : % { release }
License : LGPLv2
Group : Development / Libraries
Requires : device - mapper - event = % { device_mapper_version } -% { release }
Requires : pkgconfig
% description - n device - mapper - event - devel
This package contains files needed to develop applications that use
the device - mapper event library .
% files - n device - mapper - event - devel
% defattr ( - , root , root , - )
% { _libdir } / libdevmapper - event . so
% { _includedir } / libdevmapper - event . h
% { _libdir } / pkgconfig / devmapper - event . pc