1 |
%define lib_name_orig libdm |
2 |
%define lib_major 0 |
3 |
%define lib_name %mklibname dm %{lib_major} |
4 |
%define devel_name %mklibname -d dm |
5 |
|
6 |
Summary: Data Management API runtime environment |
7 |
Name: dmapi |
8 |
Version: 2.2.10 |
9 |
Release: %mkrel 4 |
10 |
Source0: ftp://oss.sgi.com/projects/xfs/cmd_tars/%{name}-%{version}.tar.gz |
11 |
License: LGPLv2 and GPLv2 |
12 |
Group: System/Kernel and hardware |
13 |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot |
14 |
URL: http://oss.sgi.com/projects/xfs/ |
15 |
BuildRequires: xfs-devel |
16 |
BuildRequires: libext2fs-devel |
17 |
BuildRequires: libtool |
18 |
|
19 |
%description |
20 |
Files required by system software using the Data Management API |
21 |
(DMAPI). This is used to implement the interface defined in the |
22 |
X/Open document: Systems Management: Data Storage Managment |
23 |
(XDSM) API dated February 1997. This interface is implemented |
24 |
by the libdm library. |
25 |
|
26 |
%package -n %{lib_name} |
27 |
Summary: Main library for %{lib_name_orig} |
28 |
Group: System/Libraries |
29 |
Requires(pre): filesystem >= 2.1.9-18 |
30 |
Provides: %{lib_name_orig} = %{version}-%{release} |
31 |
|
32 |
%description -n %{lib_name} |
33 |
This package contains the library needed to run programs dynamically |
34 |
linked with %{lib_name_orig}. |
35 |
|
36 |
%package -n %{devel_name} |
37 |
Summary: Data Management API static libraries and headers |
38 |
Group: Development/C |
39 |
Requires(pre): filesystem >= 2.1.9-18 |
40 |
Requires: %{lib_name} = %{version} |
41 |
Provides: %{lib_name_orig}-devel = %{version}-%{release} |
42 |
Provides: dm-devel = %{version}-%{release} |
43 |
Obsoletes: dm-devel |
44 |
Provides: libdm0-devel = %{version}-%{release} |
45 |
Obsoletes: libdm0-devel < 2.2.9-2 |
46 |
|
47 |
%description -n %{devel_name} |
48 |
dmapi-devel contains the libraries and header files needed to |
49 |
develop programs which make use of the Data Management API |
50 |
(DMAPI). If you install dmapi-devel, you'll also want to install |
51 |
the dmapi (runtime) package and the xfsprogs-devel package. |
52 |
|
53 |
%prep |
54 |
%setup -q |
55 |
|
56 |
%build |
57 |
%configure2_5x |
58 |
%make |
59 |
|
60 |
%install |
61 |
rm -rf %{buildroot} |
62 |
make install DIST_ROOT=%{buildroot}/ |
63 |
make install-dev DIST_ROOT=%{buildroot}/ |
64 |
|
65 |
# (sb) installed but unpackaged files |
66 |
rm -rf %{buildroot}%{_datadir}/doc/dmapi |
67 |
|
68 |
%clean |
69 |
rm -rf %{buildroot} |
70 |
|
71 |
%files -n %{lib_name} |
72 |
%defattr(-,root,root) |
73 |
%{_libdir}/*.so.* |
74 |
|
75 |
%files -n %{devel_name} |
76 |
%defattr(-,root,root) |
77 |
%doc doc/PORTING doc/CHANGES.gz doc/COPYING README |
78 |
%{_libdir}/*.so |
79 |
%{_libdir}/*a |
80 |
%{_mandir}/man3/* |
81 |
%{_includedir}/*/* |
82 |
|
83 |
|
84 |
|
85 |
|