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