2 Summary(pl): Biblioteka DMAPI
8 Source0: ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
9 # Source0-md5: e3bb24818f07139e7c5f024dc4e7bb89
10 Patch0: %{name}-miscfix.patch
11 URL: http://oss.sgi.com/projects/xfs/
12 BuildRequires: autoconf
13 BuildRequires: automake
14 BuildRequires: sed >= 4.0
15 BuildRequires: xfsprogs-devel >= 2.6.13
16 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18 %define _libdir /%{_lib}
19 %define _libexecdir /usr/%{_lib}
22 DMAPI, or XDSM, is an implementation of the X/Open document: Systems
23 Management: Data Storage Management (XDSM) API dated February 1997.
24 This interface is made available for the XFS filesystem by means of
27 See the XDSM manual at
28 http://www.opengroup.org/onlinepubs/9657099/toc.htm for a description
29 of the functions offered by libdm library.
32 DMAPI (albo XDSM) to implementacja dokumentu X/Open "Systems
33 Management: Data Storage Management (XDSM) API) z lutego 1997. Ten
34 interfejs jest dostêpny dla systemu plików XFS poprzez bibliotekê
37 Opis funkcji oferowanych przez bibliotekê libdm jest w podrêczniku:
38 http://www.opengroup.org/onlinepubs/9657099/toc.htm
41 Summary: Header files for DMAPI library
42 Summary(pl): Pliki nag³ówkowe biblioteki DMAPI
43 Group: Development/Libraries
44 Requires: %{name} = %{version}-%{release}
45 Requires: xfsprogs-devel
48 Header files required to develop software which uses DMAPI.
50 %description devel -l pl
51 Pliki nag³ówkowe potrzebne do tworzenia oprogramowania u¿ywaj±cego
55 Summary: Static DMAPI library
56 Summary(pl): Statyczna biblioteka DMAPI
57 Group: Development/Libraries
58 Requires: %{name}-devel = %{version}-%{release}
61 Static version of DMAPI library.
63 %description static -l pl
64 Statyczna wersja biblioteki DMAPI.
75 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
76 OPTIMIZER="%{rpmcflags}"
81 rm -rf $RPM_BUILD_ROOT
83 DIST_ROOT=$RPM_BUILD_ROOT
84 DIST_INSTALL=`pwd`/install.manifest
85 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
86 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV
89 DIST_MANIFEST=$DIST_INSTALL
90 %{__make} install-dev \
91 DIST_MANIFEST=$DIST_INSTALL_DEV
93 rm -f $RPM_BUILD_ROOT%{_libexecdir}/libdm.so
94 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libdm.so.*.*.*) \
95 $RPM_BUILD_ROOT%{_libexecdir}/libdm.so
96 %{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
97 $RPM_BUILD_ROOT%{_libexecdir}/libdm.la
100 rm -rf $RPM_BUILD_ROOT
102 %post -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
106 %defattr(644,root,root,755)
107 # COPYING specifies which parts are on LGPL/GPL
108 %doc doc/{CHANGES,COPYING}
109 %attr(755,root,root) %{_libdir}/lib*.so.*.*
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libexecdir}/lib*.so
114 %{_libexecdir}/lib*.la
119 %defattr(644,root,root,755)
120 %{_libexecdir}/lib*.a