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