]> git.pld-linux.org Git - packages/dmapi.git/blob - dmapi.spec
- release 2 for Th.
[packages/dmapi.git] / dmapi.spec
1 Summary:        DMAPI library
2 Summary(pl):    Biblioteka DMAPI
3 Name:           dmapi
4 Version:        2.2.1
5 Release:        2
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:  2f10f3846c2d2061b0692d96db655240
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)
17
18 %define         _libdir         /%{_lib}
19 %define         _libexecdir     /usr/%{_lib}
20
21 %description
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
25 the libdm library.
26
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.
30
31 %description -l pl
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ê
35 libdm.
36
37 Opis funkcji oferowanych przez bibliotekê libdm jest w podrêczniku:
38 http://www.opengroup.org/onlinepubs/9657099/toc.htm
39
40 %package devel
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
46
47 %description devel
48 Header files required to develop software which uses DMAPI.
49
50 %description devel -l pl
51 Pliki nag³ówkowe potrzebne do tworzenia oprogramowania u¿ywaj±cego
52 DMAPI.
53
54 %package static
55 Summary:        Static DMAPI library
56 Summary(pl):    Statyczna biblioteka DMAPI
57 Group:          Development/Libraries
58 Requires:       %{name}-devel = %{version}-%{release}
59
60 %description static
61 Static version of DMAPI library.
62
63 %description static -l pl
64 Statyczna wersja biblioteki DMAPI.
65
66 %prep
67 %setup -q
68 %patch0 -p1
69
70 %build
71 rm -f aclocal.m4
72 %{__aclocal} -I m4
73 %{__autoconf}
74 %configure \
75         DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
76         OPTIMIZER="%{rpmcflags}"
77
78 %{__make}
79
80 %install
81 rm -rf $RPM_BUILD_ROOT
82
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
87
88 %{__make} install \
89         DIST_MANIFEST=$DIST_INSTALL
90 %{__make} install-dev \
91         DIST_MANIFEST=$DIST_INSTALL_DEV
92
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
98
99 %clean
100 rm -rf $RPM_BUILD_ROOT
101
102 %post   -p /sbin/ldconfig
103 %postun -p /sbin/ldconfig
104
105 %files
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.*.*
110
111 %files devel
112 %defattr(644,root,root,755)
113 %attr(755,root,root) %{_libexecdir}/lib*.so
114 %{_libexecdir}/lib*.la
115 %{_includedir}/xfs/*
116 %{_mandir}/man3/*
117
118 %files static
119 %defattr(644,root,root,755)
120 %{_libexecdir}/lib*.a
This page took 0.082135 seconds and 3 git commands to generate.