]>
Commit | Line | Data |
---|---|---|
3dff3b3e JR |
1 | Summary: DMAPI library |
2 | Name: dmapi | |
15ac7652 | 3 | Version: 0.2.2 |
3dff3b3e JR |
4 | Release: 1 |
5 | License: GPL | |
6 | Group: Development/Libraries | |
7 | Group(de): Entwicklung/Libraries | |
8 | Group(fr): Development/Librairies | |
9 | Group(pl): Programowanie/Biblioteki | |
10 | Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz | |
11 | URL: http://oss.sgi.com/projects/xfs/ | |
12 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
13 | ||
14 | %description | |
15 | DMAPI, or XDSM, is an implementation of the X/Open document: Systems | |
16 | Management: Data Storage Management (XDSM) API dated February 1997. | |
17 | This interface is made available for the XFS filesystem by means | |
18 | of the libdm library. | |
19 | ||
20 | See the XDSM manual at http://www.opengroup.org/onlinepubs/9657099/toc.htm | |
21 | for a description of the functions offered by libdm library. | |
22 | ||
23 | %package devel | |
24 | Summary: Header files for DMAPI library | |
25 | Group: Development/Libraries | |
26 | Group(de): Entwicklung/Libraries | |
27 | Group(fr): Development/Librairies | |
28 | Group(pl): Programowanie/Biblioteki | |
29 | Requires: %{name} = %{version} | |
30 | ||
31 | %description devel | |
32 | Header files required to develop software which uses DMAPI. | |
33 | ||
34 | %package static | |
35 | Summary: Static DMAPI library | |
36 | Group: Development/Libraries | |
37 | Group(de): Entwicklung/Libraries | |
38 | Group(fr): Development/Librairies | |
39 | Group(pl): Programowanie/Biblioteki | |
40 | Requires: %{name}-devel = %{version} | |
41 | ||
42 | %description static | |
43 | Static version of DMAPI library. | |
44 | ||
45 | %prep | |
46 | %setup -q | |
47 | ||
48 | %build | |
49 | DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG | |
50 | autoconf | |
51 | %configure | |
52 | ||
53 | %{__make} | |
54 | ||
55 | %install | |
56 | rm -rf $RPM_BUILD_ROOT | |
57 | ||
58 | DIST_ROOT="$RPM_BUILD_ROOT" | |
59 | DIST_INSTALL=`pwd`/install.manifest | |
60 | DIST_INSTALL_DEV=`pwd`/install-dev.manifest | |
61 | export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV | |
62 | %{__make} install DIST_MANIFEST="$DIST_INSTALL" | |
63 | %{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV" | |
64 | ||
53824c16 JR |
65 | rm -f $RPM_BUILD_ROOT%{_libdir}/libdm.so |
66 | ln -sf /lib/libdm.so.*.*.* $RPM_BUILD_ROOT%{_libdir}/libdm.so | |
67 | ||
3dff3b3e JR |
68 | gzip -9nf doc/CHANGES |
69 | ||
70 | %clean | |
71 | rm -rf $RPM_BUILD_ROOT | |
72 | ||
73 | %files | |
74 | %defattr(644,root,root,755) | |
75 | %doc doc/*.gz | |
15ac7652 | 76 | %attr(755,root,root) /lib/lib*.so.* |
3dff3b3e JR |
77 | |
78 | %files devel | |
79 | %defattr(644,root,root,755) | |
15ac7652 JR |
80 | %attr(755,root,root) %{_libdir}/lib*.la |
81 | %attr(755,root,root) %{_libdir}/lib*.so | |
3dff3b3e JR |
82 | %{_includedir}/xfs |
83 | %{_mandir}/man3/* | |
84 | ||
85 | %files static | |
86 | %defattr(644,root,root,755) | |
87 | %{_libdir}/lib*.a |