]>
Commit | Line | Data |
---|---|---|
1 | Summary: DMAPI library | |
2 | Summary(pl.UTF-8): Biblioteka DMAPI | |
3 | Name: dmapi | |
4 | Version: 2.2.12 | |
5 | Release: 3 | |
6 | # doc/COPYING mentions LGPL for files in "dmapi", but all sources are explicitly marked GPL | |
7 | License: GPL v2 | |
8 | Group: Libraries | |
9 | Source0: ftp://linux-xfs.sgi.com/projects/xfs/cmd_tars/%{name}-%{version}.tar.gz | |
10 | # Source0-md5: cd825d4e141c16011367e0a0dd98c9c5 | |
11 | Patch0: %{name}-miscfix.patch | |
12 | URL: http://oss.sgi.com/projects/xfs/ | |
13 | BuildRequires: autoconf >= 2.50 | |
14 | BuildRequires: automake | |
15 | BuildRequires: sed >= 4.0 | |
16 | BuildRequires: xfsprogs-devel >= 2.6.13 | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %define _libdir /%{_lib} | |
20 | %define _libexecdir /usr/%{_lib} | |
21 | ||
22 | %description | |
23 | DMAPI, or XDSM, is an implementation of the X/Open document: Systems | |
24 | Management: Data Storage Management (XDSM) API dated February 1997. | |
25 | This interface is made available for the XFS filesystem by means of | |
26 | the libdm library. | |
27 | ||
28 | See the XDSM manual at | |
29 | http://www.opengroup.org/onlinepubs/9657099/toc.htm for a description | |
30 | of the functions offered by libdm library. | |
31 | ||
32 | %description -l pl.UTF-8 | |
33 | DMAPI (albo XDSM) to implementacja dokumentu X/Open "Systems | |
34 | Management: Data Storage Management (XDSM) API) z lutego 1997. Ten | |
35 | interfejs jest dostępny dla systemu plików XFS poprzez bibliotekę | |
36 | libdm. | |
37 | ||
38 | Opis funkcji oferowanych przez bibliotekę libdm jest w podręczniku: | |
39 | http://www.opengroup.org/onlinepubs/9657099/toc.htm | |
40 | ||
41 | %package devel | |
42 | Summary: Header files for DMAPI library | |
43 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki DMAPI | |
44 | Group: Development/Libraries | |
45 | Requires: %{name} = %{version}-%{release} | |
46 | Requires: xfsprogs-devel >= 2.6.13 | |
47 | ||
48 | %description devel | |
49 | Header files required to develop software which uses DMAPI. | |
50 | ||
51 | %description devel -l pl.UTF-8 | |
52 | Pliki nagłówkowe potrzebne do tworzenia oprogramowania używającego | |
53 | DMAPI. | |
54 | ||
55 | %package static | |
56 | Summary: Static DMAPI library | |
57 | Summary(pl.UTF-8): Statyczna biblioteka DMAPI | |
58 | Group: Development/Libraries | |
59 | Requires: %{name}-devel = %{version}-%{release} | |
60 | ||
61 | %description static | |
62 | Static version of DMAPI library. | |
63 | ||
64 | %description static -l pl.UTF-8 | |
65 | Statyczna wersja biblioteki DMAPI. | |
66 | ||
67 | %prep | |
68 | %setup -q | |
69 | %patch0 -p1 | |
70 | ||
71 | %build | |
72 | %{__rm} aclocal.m4 | |
73 | %{__aclocal} -I m4 | |
74 | %{__autoconf} | |
75 | %configure \ | |
76 | DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \ | |
77 | OPTIMIZER="%{rpmcflags}" | |
78 | ||
79 | %{__make} | |
80 | ||
81 | %install | |
82 | rm -rf $RPM_BUILD_ROOT | |
83 | ||
84 | DIST_ROOT=$RPM_BUILD_ROOT | |
85 | DIST_INSTALL=`pwd`/install.manifest | |
86 | DIST_INSTALL_DEV=`pwd`/install-dev.manifest | |
87 | export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV | |
88 | ||
89 | %{__make} install \ | |
90 | DIST_MANIFEST=$DIST_INSTALL | |
91 | %{__make} install-dev \ | |
92 | DIST_MANIFEST=$DIST_INSTALL_DEV | |
93 | ||
94 | %{__rm} $RPM_BUILD_ROOT%{_libexecdir}/libdm.so | |
95 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libdm.so.*.*.*) \ | |
96 | $RPM_BUILD_ROOT%{_libexecdir}/libdm.so | |
97 | %{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \ | |
98 | $RPM_BUILD_ROOT%{_libexecdir}/libdm.la | |
99 | ||
100 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdm.{so,la,a} | |
101 | ||
102 | %clean | |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %post -p /sbin/ldconfig | |
106 | %postun -p /sbin/ldconfig | |
107 | ||
108 | %files | |
109 | %defattr(644,root,root,755) | |
110 | # COPYING specifies which parts are on LGPL/GPL | |
111 | %doc README doc/{CHANGES,COPYING} | |
112 | %attr(755,root,root) %{_libdir}/libdm.so.*.*.* | |
113 | %attr(755,root,root) %ghost %{_libdir}/libdm.so.0 | |
114 | ||
115 | %files devel | |
116 | %defattr(644,root,root,755) | |
117 | %attr(755,root,root) %{_libexecdir}/libdm.so | |
118 | %{_libexecdir}/libdm.la | |
119 | %{_includedir}/xfs/dmapi.h | |
120 | %{_mandir}/man3/dmapi.3* | |
121 | ||
122 | %files static | |
123 | %defattr(644,root,root,755) | |
124 | %{_libexecdir}/libdm.a |