X-Git-Url: https://git.tld-linux.org/?p=packages%2Flvm2.git;a=blobdiff_plain;f=lvm2.spec;h=53443f6c083e1b102f2fe1f9ca45d8a668fcfca0;hp=ff787b375cdd9c875d3eebed652e44c353b0cf18;hb=1785ea5471da12614d5ab191ba40d63db784cd73;hpb=8780299f67c78624188b5a2a8d85e69e6724be4a diff --git a/lvm2.spec b/lvm2.spec index ff787b3..53443f6 100644 --- a/lvm2.spec +++ b/lvm2.spec @@ -30,10 +30,6 @@ %undefine with_lvmpolld %endif -# only glibc possible on SPARC -%ifarch sparc sparcv9 sparc64 -%define with_glibc 1 -%endif # if one of the *libc is enabled disable default dietlibc %if %{with dietlibc} && %{with uClibc} %undefine with_dietlibc @@ -58,21 +54,22 @@ Summary: The new version of Logical Volume Manager for Linux Summary(pl.UTF-8): Nowa wersja Logical Volume Managera dla Linuksa Name: lvm2 -Version: 2.02.177 +Version: 2.02.181 Release: 1 License: GPL v2 and LGPL v2.1 Group: Applications/System Source0: ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz -# Source0-md5: ee6cfbc5a0c5696ffae79dac04ee7a2b +# Source0-md5: 7d6380d9a34981fd7b605eaa371295b3 Source3: clvmd.sysconfig Patch0: %{name}-selinux.patch Patch1: %{name}-diet.patch Patch2: device-mapper-dmsetup-export.patch Patch3: %{name}-tld_init.patch Patch4: dl-dlsym.patch -Patch8: %{name}-clvmd_cmd_timeout.patch -Patch9: device-mapper-dmsetup-deps-export.patch -Patch11: %{name}-thin.patch +Patch5: %{name}-run-dir.patch +Patch6: %{name}-clvmd_cmd_timeout.patch +Patch7: device-mapper-dmsetup-deps-export.patch +Patch8: %{name}-thin.patch URL: http://www.sourceware.org/lvm2/ BuildRequires: autoconf >= 2.69 BuildRequires: automake @@ -384,14 +381,14 @@ potrzeby initrd. %patch1 -p1 %patch2 -p1 %patch3 -p1 -%patch4 -p1 +%patch5 -p1 +%patch6 -p1 +%patch7 -p1 %patch8 -p1 -%patch9 -p1 -%patch11 -p1 # do not force --export-symbol linker option for e.g. statically linked executables # -rdynamic compiler option drives linker in the right way. -%{__sed} -i -e 's#-Wl,--export-dynamic#-rdynamic#g' configure.in +%{__sed} -i -e 's#-Wl,--export-dynamic#-rdynamic#g' configure.ac %build %if %{with initrd} @@ -539,13 +536,22 @@ cp -a libdm/libdevmapper.a $RPM_BUILD_ROOT%{_libdir} rm -rf $RPM_BUILD_ROOT %post +/sbin/chkconfig --add lvm2-lvmetad +%service lvm2-lvmetad restart /sbin/chkconfig --add lvm2-monitor %service lvm2-monitor restart +/sbin/chkconfig --add lvm2-lvmpolld +%service lvm2-lvmpolld restart +# no service restart available /sbin/chkconfig --add blk-availability # no service blk-availability restart -%postun +%preun if [ "$1" = "0" ]; then + %service lvm2-lvmetad stop + /sbin/chkconfig --del lvm2-lvmetad + %service lvm2-lvmpolld stop + /sbin/chkconfig --del lvm2-lvmpolld %service lvm2-monitor stop /sbin/chkconfig --del lvm2-monitor #no service blk-availability stop @@ -691,7 +697,7 @@ fi %ghost %{_sysconfdir}/lvm/cache/.cache %attr(754,root,root) /etc/rc.d/init.d/blk-availability %attr(754,root,root) /etc/rc.d/init.d/lvm2-monitor -%attr(700,root,root) %dir /run/lvm +%attr(700,root,root) %dir /var/run/lvm %attr(700,root,root) %dir /var/lock/lvm %if %{with lvmetad} %attr(755,root,root) %{_sbindir}/lvmetad @@ -770,11 +776,13 @@ fi %attr(755,root,root) %{_libdir}/libdevmapper-event-lvm2raid.so %attr(755,root,root) %{_libdir}/libdevmapper-event-lvm2snapshot.so %attr(755,root,root) %{_libdir}/libdevmapper-event-lvm2thin.so +%attr(755,root,root) %{_libdir}/libdevmapper-event-lvm2vdo.so %dir %{_libdir}/device-mapper %attr(755,root,root) %{_libdir}/device-mapper/libdevmapper-event-lvm2mirror.so %attr(755,root,root) %{_libdir}/device-mapper/libdevmapper-event-lvm2raid.so %attr(755,root,root) %{_libdir}/device-mapper/libdevmapper-event-lvm2snapshot.so %attr(755,root,root) %{_libdir}/device-mapper/libdevmapper-event-lvm2thin.so +%attr(755,root,root) %{_libdir}/device-mapper/libdevmapper-event-lvm2vdo.so %{_mandir}/man8/dmsetup.8* %{_mandir}/man8/dmstats.8* %{_mandir}/man8/dmeventd.8*