]> git.pld-linux.org Git - packages/dlm.git/blob - dlm.spec
- initial pld release
[packages/dlm.git] / dlm.spec
1 #
2 # Conditional build:
3 Summary:        general-purpose distributed lock manager
4 Name:           dlm
5 %define snap    20040625
6 Version:        0.0.0.%{snap}.1
7 Release:        1
8 License:        GPL
9 Group:          Libraries
10 Source0:        %{name}.tar.gz
11 # Source0-md5:  2aad29664265c6d2b4ab43276d4a45fd
12 Patch0:         %{name}-DESTDIR.patch
13 URL:            http://sources.redhat.com/cluster/
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 The DLM lock manager is a kernel-based VMS-like distributed lock
18 manager. It is general purpose and not specific to only GFS or CLVM.
19 Kernel and userspace locking API's are available.
20
21 %package devel
22 Summary:        Header files and development documentation for %{name}
23 Group:          Development/Libraries
24 Requires:       %{name} = %{epoch}:%{version}-%{release}
25
26 %description devel
27 Header files and development documentation for %{name}.
28
29 %package static
30 Summary:        Static %{name} library
31 Group:          Development/Libraries
32 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
33
34 %description static
35 Static %{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
53 rm -rf $RPM_BUILD_ROOT
54
55 %{__make} install \
56         DESTDIR=$RPM_BUILD_ROOT
57
58 %clean
59 rm -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)
70 %{_includedir}/*.h
71 %attr(755,root,root) %{_libdir}/*.so
72
73 %files static
74 %defattr(644,root,root,755)
75 %{_libdir}/*.a
This page took 0.052497 seconds and 4 git commands to generate.