# # Conditional build: Summary: general-purpose distributed lock manager Name: dlm %define snap 20040625 Version: 0.0.0.%{snap}.1 Release: 1 License: GPL Group: Libraries Source0: %{name}.tar.gz # Source0-md5: 2aad29664265c6d2b4ab43276d4a45fd Patch0: %{name}-DESTDIR.patch URL: http://sources.redhat.com/cluster/ BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) %description The DLM lock manager is a kernel-based VMS-like distributed lock manager. It is general purpose and not specific to only GFS or CLVM. Kernel and userspace locking API's are available. %package devel Summary: Header files and development documentation for %{name} Group: Development/Libraries Requires: %{name} = %{epoch}:%{version}-%{release} %description devel Header files and development documentation for %{name}. %package static Summary: Static %{name} library Group: Development/Libraries Requires: %{name}-devel = %{epoch}:%{version}-%{release} %description static Static %{name} library. %prep %setup -q -n %{name} %patch0 -p1 %build ./configure \ --incdir=%{_includedir} \ --kernel_src=%{_kernelsrcdir} \ --libdir=%{_libdir} \ --mandir=%{_mandir} \ --prefix=%{_prefix} \ --sbindir=%{_sbindir} %{__make} \ CC="%{__cc}" %install rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT %clean rm -rf $RPM_BUILD_ROOT %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %defattr(644,root,root,755) %attr(755,root,root) %{_libdir}/*.so.* %files devel %defattr(644,root,root,755) %{_includedir}/*.h %attr(755,root,root) %{_libdir}/*.so %files static %defattr(644,root,root,755) %{_libdir}/*.a