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: c6e4ace10c446bbb92576e5dd19aec24
11 Patch0: %{name}-miscfix.patch
12 URL: http://oss.sgi.com/projects/xfs/
13 BuildRequires: autoconf
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
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 -f $RPM_BUILD_ROOT%{_libexecdir}/libdm.so
95 ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libdm.so.*.*.*) \
96 $RPM_BUILD_ROOT%{_libexecdir}/libdm.so
97 %{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
98 $RPM_BUILD_ROOT%{_libexecdir}/libdm.la
101 rm -rf $RPM_BUILD_ROOT
103 %post -p /sbin/ldconfig
104 %postun -p /sbin/ldconfig
107 %defattr(644,root,root,755)
108 # COPYING specifies which parts are on LGPL/GPL
109 %doc doc/{CHANGES,COPYING}
110 %attr(755,root,root) %{_libdir}/lib*.so.*.*
113 %defattr(644,root,root,755)
114 %attr(755,root,root) %{_libexecdir}/lib*.so
115 %{_libexecdir}/lib*.la
120 %defattr(644,root,root,755)
121 %{_libexecdir}/lib*.a