%define libname libdevmapper Name: device-mapper Version: 1.02.28 Release: 1mamba Summary: Device mapper utility Group: System/Kernel and Hardware Vendor: openmamba Distribution: openmamba Packager: Stefano Cotta Ramusino URL: http://sources.redhat.com/dm Source: ftp://sources.redhat.com/pub/dm/device-mapper.%{version}.tgz License: GPL Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel BuildRequires: libselinux-devel BuildRequires: libsepol-devel ## AUTOBUILDREQ-END BuildRoot: %{_tmppath}/%{name}-%{version}-root %description The Device-mapper is a new component of the linux kernel that supports logical volume management. It is required by LVM2 and EVMS. The original LVM (included in stock 2.4 kernels) does not use it. If you intend to use Device-mapper you should install the userspace configuration tool (dmsetup) and library (libdevmapper). %package -n %{libname} Summary: Device mapper libraries Group: System/Libraries %description -n %{libname} Libraries for Device mapper. %package -n %{libname}-devel Summary: Devel package for %{libname} Group: Development/Libraries Requires: %{libname} = %{?epoch:%epoch:}%{version}-%{release} %description -n %{libname}-devel Libraries for Device mapper. This package contains static libraries and header files need for development. %prep %setup -q -n %{name}.%{version} %build %configure \ --enable-static_link \ --with-user= \ --with-group= \ --with-device-uid=0 \ --with-device-gid=6 \ --with-device-mode=0660 \ --enable-dmeventd \ --enable-nls \ --enable-pkgconfig %make %install [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %makeinstall \ usrlibdir=%{buildroot}%{_libdir} chmod -R u+w %{buildroot} %find_lang %{name} %clean [ "%{buildroot}" != / ] && rm -rf "%{buildroot}" %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -f %{name}.lang %defattr(-,root,root) %{_sbindir}/* %{_mandir}/man8/* %doc COPYING COPYING.LIB INTRO README VERSION WHATS_NEW scripts/* contrib/* %files -n %{libname} %defattr(-,root,root) %{_libdir}/*.so.* %files -n %{libname}-devel %defattr(-,root,root) %{_includedir}/*.h %{_libdir}/*.a* %{_libdir}/*.so %{_libdir}/pkgconfig/*.pc %changelog * Tue Mar 03 2009 Silvan Calarco 1.02.28-1mamba - update to 1.02.28 * Fri May 04 2007 Stefano Cotta Ramusino 1.02.19-1mamba - package created by autospec