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