]> git.pld-linux.org Git - packages/dlm.git/blob - dlm.spec
- there is no Epoch in this spec
[packages/dlm.git] / dlm.spec
1 Summary:        General-purpose distributed lock manager
2 Summary(pl):    Zarz±dca rozproszonych blokad ogólnego przeznaczenia
3 Name:           dlm
4 %define snap    20040625
5 Version:        0.0.0.%{snap}.1
6 Release:        1
7 License:        GPL
8 Group:          Libraries
9 Source0:        %{name}.tar.gz
10 # Source0-md5:  2aad29664265c6d2b4ab43276d4a45fd
11 # from dlm-kernel CVS
12 Source1:        dlm.h
13 # NoSource1-md5: 61dc32014f2dd75fc5472bf049d9bf3a (rev 1.2)
14 Source2:        dlm_device.h
15 # NoSource2-md5: 1848456a6fe6a45c351ca317e2b8a815 (rev 1.1)
16 Patch0:         %{name}-DESTDIR.patch
17 URL:            http://sources.redhat.com/cluster/dlm/
18 BuildRequires:  perl-base
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
22 The DLM lock manager is a kernel-based VMS-like distributed lock
23 manager. It is general purpose and not specific to only GFS or CLVM.
24 Kernel and userspace locking API's are available.
25
26 %description -l pl
27 Zarz±dca blokad DLM to oparty na j±drze zarz±dca rozproszonych blokad
28 w stylu VMS. Jest ogólnego przeznaczenia, przeznaczonym nie tylko dla
29 GFS-a czy CLVM-a. Dostêpne s± API blokowania w j±drze i przestrzeni
30 u¿ytkownika.
31
32 %package devel
33 Summary:        Header files and development documentation for DLM
34 Summary(pl):    Pliki nag³ówkowe i dokumentacja programisty dla DLM-a
35 Group:          Development/Libraries
36 Requires:       %{name} = %{version}-%{release}
37
38 %description devel
39 Header files and development documentation for DLM.
40
41 %description devel -l pl
42 Pliki nag³ówkowe i dokumentacja programisty dla DLM-a.
43
44 %package static
45 Summary:        Static DLM library
46 Summary(pl):    Statyczna biblioteka DLM
47 Group:          Development/Libraries
48 Requires:       %{name}-devel = %{version}-%{release}
49
50 %description static
51 Static DLM library.
52
53 %description static -l pl
54 Statyczna biblioteka DLM.
55
56 %prep
57 %setup -q -n %{name}
58 %patch0 -p1
59
60 install -d include/cluster
61 cp -f %{SOURCE1} %{SOURCE2} include/cluster
62
63 %{__perl} -pi -e 's/-g -O/%{rpmcflags}/' lib/Makefile
64
65 %build
66 ./configure \
67         --incdir=%{_includedir} \
68         --libdir=%{_libdir} \
69         --mandir=%{_mandir} \
70         --prefix=%{_prefix} \
71         --sbindir=%{_sbindir}
72
73 %{__make} \
74         CC="%{__cc}" \
75         incdir=`pwd`/include
76
77 %install
78 rm -rf $RPM_BUILD_ROOT
79
80 %{__make} install \
81         DESTDIR=$RPM_BUILD_ROOT
82
83 install -d $RPM_BUILD_ROOT%{_includedir}/cluster
84 install include/cluster/*.h $RPM_BUILD_ROOT%{_includedir}/cluster
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post   -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
91
92 %files
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_libdir}/*.so.*.*
95
96 %files devel
97 %defattr(644,root,root,755)
98 %doc doc/*.txt
99 %attr(755,root,root) %{_libdir}/*.so
100 %{_includedir}/*.h
101 %{_includedir}/cluster
102
103 %files static
104 %defattr(644,root,root,755)
105 %{_libdir}/*.a
This page took 0.07294 seconds and 4 git commands to generate.