]> git.pld-linux.org Git - packages/dmapi.git/blob - dmapi.spec
perl -pi -e "s/^automake -a -c -f --foreing/\%\{__automake\}/; \
[packages/dmapi.git] / dmapi.spec
1 Summary:        DMAPI library
2 Summary(pl):    Biblioteka DMAPI
3 Name:           dmapi
4 Version:        2.0.0
5 Release:        3
6 License:        GPL
7 Group:          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 Requires:       xfsprogs-devel
39
40 %description devel
41 Header files required to develop software which uses DMAPI.
42
43 %description devel -l pl
44 Pliki nag³ówkowe potrzebne do tworzenia oprogramowania u¿ywaj±cego
45 DMAPI.
46
47 %package static
48 Summary:        Static DMAPI library
49 Summary(pl):    Statyczna biblioteka DMAPI
50 Group:          Development/Libraries
51 Requires:       %{name}-devel = %{version}
52
53 %description static
54 Static version of DMAPI library.
55
56 %description static -l pl
57 Statyczna wersja biblioteki DMAPI.
58
59 %prep
60 %setup  -q
61
62 %build
63 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
64 %{__autoconf}
65 %configure \
66         OPTIMIZER="%{rpmcflags}"
67
68 %{__make}
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72
73 DIST_ROOT="$RPM_BUILD_ROOT"
74 DIST_INSTALL=`pwd`/install.manifest
75 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
76 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV
77
78 %{__make} install DIST_MANIFEST="$DIST_INSTALL"
79 %{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
80
81 rm -f $RPM_BUILD_ROOT%{_libdir}/libdm.so
82 ln -sf /lib/libdm.so.0.0.1 $RPM_BUILD_ROOT%{_libdir}/libdm.so
83
84 gzip -9nf doc/CHANGES
85
86 %clean
87 rm -rf $RPM_BUILD_ROOT
88
89 %post   -p /sbin/ldconfig
90 %postun -p /sbin/ldconfig
91
92 %files
93 %defattr(644,root,root,755)
94 %doc doc/*.gz
95 %attr(755,root,root) /lib/lib*.so.*.*
96
97 %files devel
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_libdir}/lib*.la
100 %attr(755,root,root) %{_libdir}/lib*.so
101 %{_includedir}/xfs/*
102 %{_mandir}/man3/*
103
104 %files static
105 %defattr(644,root,root,755)
106 %{_libdir}/lib*.a
This page took 0.031569 seconds and 4 git commands to generate.