%undefine with_lvmdbusd
%endif
+%define ver 2.03.07
+%define tgz_ver %(echo %{version} | tr . _)
+
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.03.00
-Release: 1.1
+Version: %{ver}
+Release: 1
License: GPL v2 and LGPL v2.1
Group: Applications/System
-Source0: ftp://sources.redhat.com/pub/lvm2/LVM2.%{version}.tgz
-# Source0-md5: f63cc5feaadd3000138e73f7143ed370
+Source0: https://github.com/lvmteam/lvm2/archive/v%{tgz_ver}.tar.gz
+# Source0-md5: 044cb75adf19abd6723fed1ee8bf5776
Patch0: %{name}-selinux.patch
Patch1: device-mapper-dmsetup-export.patch
Patch2: %{name}-tld_init.patch
-Patch3: dl-dlsym.patch
-Patch4: %{name}-run-dir.patch
-Patch5: device-mapper-dmsetup-deps-export.patch
-Patch6: %{name}-thin.patch
-Patch7: %{name}-no-systemd.patch
+Patch3: %{name}-run-dir.patch
+Patch4: device-mapper-dmsetup-deps-export.patch
+Patch5: %{name}-thin.patch
+Patch6: %{name}-no-systemd.patch
+Patch7: bashizm.patch
+Patch8: link.patch
URL: http://www.sourceware.org/lvm2/
BuildRequires: autoconf >= 2.69
BuildRequires: automake
Statyczna biblioteka devmapper zbudowana z dietlibc.
%prep
-%setup -q -n LVM2.%{version}
+%setup -q -n lvm2-%{tgz_ver}
%{?with_selinux:%patch0 -p1}
%patch1 -p1
%patch2 -p1
%patch3 -p1
+%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
+%patch8 -p1
# do not force --export-symbol linker option for e.g. statically linked executables
# -rdynamic compiler option drives linker in the right way.
%{_mandir}/man7/lvmreport.7*
%{_mandir}/man7/lvmsystemid.7*
%{_mandir}/man7/lvmthin.7*
+%{_mandir}/man7/lvmvdo.7*
%{_mandir}/man8/blkdeactivate.8*
%{_mandir}/man8/fsadm.8*
%{_mandir}/man8/lvchange.8*
%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 /var/run/lvm
%attr(700,root,root) %dir /var/lock/lvm
%if %{with lvmlockd}
%attr(755,root,root) %{_sbindir}/lvmlockctl
/lib/udev/rules.d/10-dm.rules
/lib/udev/rules.d/11-dm-lvm.rules
/lib/udev/rules.d/13-dm-disk.rules
+/lib/udev/rules.d/69-dm-lvm-metad.rules
/lib/udev/rules.d/95-dm-notify.rules
%attr(755,root,root) %{_sbindir}/dmeventd
%attr(755,root,root) %{_sbindir}/dmsetup