]> git.pld-linux.org Git - packages/dmapi.git/blob - dmapi.spec
- massive attack: adding Source-md5
[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 DIST_MANIFEST="$DIST_INSTALL"
83 %{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
84
85 rm -f $RPM_BUILD_ROOT%{_libexecdir}/libdm.so
86 ln -sf %{_libdir}/libdm.so.0.0.4 $RPM_BUILD_ROOT%{_libexecdir}/libdm.so
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %post   -p /sbin/ldconfig
92 %postun -p /sbin/ldconfig
93
94 %files
95 %defattr(644,root,root,755)
96 # COPYING specifies which parts are on LGPL/GPL
97 %doc doc/{CHANGES,COPYING}
98 %attr(755,root,root) %{_libdir}/lib*.so.*.*
99
100 %files devel
101 %defattr(644,root,root,755)
102 %{_libexecdir}/lib*.la
103 %attr(755,root,root) %{_libexecdir}/lib*.so
104 %{_includedir}/xfs/*
105 %{_mandir}/man3/*
106
107 %files static
108 %defattr(644,root,root,755)
109 %{_libexecdir}/lib*.a
This page took 0.042347 seconds and 4 git commands to generate.