2 Summary(pl.UTF-8): Biblioteka DMAPI
6 # doc/COPYING mentions LGPL for files in "dmapi", but all sources are explicitly marked GPL
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)
19 %define _libdir /%{_lib}
20 %define _libexecdir /usr/%{_lib}
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
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.
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ę
38 Opis funkcji oferowanych przez bibliotekę libdm jest w podręczniku:
39 http://www.opengroup.org/onlinepubs/9657099/toc.htm
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
49 Header files required to develop software which uses DMAPI.
51 %description devel -l pl.UTF-8
52 Pliki nagłówkowe potrzebne do tworzenia oprogramowania używającego
56 Summary: Static DMAPI library
57 Summary(pl.UTF-8): Statyczna biblioteka DMAPI
58 Group: Development/Libraries
59 Requires: %{name}-devel = %{version}-%{release}
62 Static version of DMAPI library.
64 %description static -l pl.UTF-8
65 Statyczna wersja biblioteki DMAPI.
76 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
77 OPTIMIZER="%{rpmcflags}"
82 rm -rf $RPM_BUILD_ROOT
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
90 DIST_MANIFEST=$DIST_INSTALL
91 %{__make} install-dev \
92 DIST_MANIFEST=$DIST_INSTALL_DEV
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
100 %{__rm} $RPM_BUILD_ROOT%{_libdir}/libdm.{so,la,a}
103 rm -rf $RPM_BUILD_ROOT
105 %post -p /sbin/ldconfig
106 %postun -p /sbin/ldconfig
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
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*
123 %defattr(644,root,root,755)
124 %{_libexecdir}/libdm.a