]> git.pld-linux.org Git - packages/dlm.git/blame - dlm.spec
- include docs
[packages/dlm.git] / dlm.spec
CommitLineData
8dffa6df
AM
1#
2# Conditional build:
3Summary: general-purpose distributed lock manager
4Name: dlm
5%define snap 20040625
6Version: 0.0.0.%{snap}.1
7Release: 1
8License: GPL
9Group: Libraries
10Source0: %{name}.tar.gz
11# Source0-md5: 2aad29664265c6d2b4ab43276d4a45fd
12Patch0: %{name}-DESTDIR.patch
13URL: http://sources.redhat.com/cluster/
14BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16%description
17The DLM lock manager is a kernel-based VMS-like distributed lock
18manager. It is general purpose and not specific to only GFS or CLVM.
19Kernel and userspace locking API's are available.
20
21%package devel
22Summary: Header files and development documentation for %{name}
23Group: Development/Libraries
24Requires: %{name} = %{epoch}:%{version}-%{release}
25
26%description devel
27Header files and development documentation for %{name}.
28
29%package static
30Summary: Static %{name} library
31Group: Development/Libraries
32Requires: %{name}-devel = %{epoch}:%{version}-%{release}
33
34%description static
35Static %{name} library.
36
37%prep
38%setup -q -n %{name}
39%patch0 -p1
40
41%build
42./configure \
43 --incdir=%{_includedir} \
44 --kernel_src=%{_kernelsrcdir} \
45 --libdir=%{_libdir} \
46 --mandir=%{_mandir} \
47 --prefix=%{_prefix} \
48 --sbindir=%{_sbindir}
49%{__make} \
50 CC="%{__cc}"
51
52%install
53rm -rf $RPM_BUILD_ROOT
54
55%{__make} install \
56 DESTDIR=$RPM_BUILD_ROOT
57
58%clean
59rm -rf $RPM_BUILD_ROOT
60
61%post -p /sbin/ldconfig
62%postun -p /sbin/ldconfig
63
64%files
65%defattr(644,root,root,755)
66%attr(755,root,root) %{_libdir}/*.so.*
67
68%files devel
69%defattr(644,root,root,755)
a1e5b0df 70%doc doc/*.txt
8dffa6df
AM
71%{_includedir}/*.h
72%attr(755,root,root) %{_libdir}/*.so
73
74%files static
75%defattr(644,root,root,755)
76%{_libdir}/*.a
This page took 0.264089 seconds and 4 git commands to generate.