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