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