]> git.pld-linux.org Git - packages/dmapi.git/blame - dmapi.spec
- up to 2.2.10
[packages/dmapi.git] / dmapi.spec
CommitLineData
3dff3b3e 1Summary: DMAPI library
0b12662c 2Summary(pl.UTF-8): Biblioteka DMAPI
3dff3b3e 3Name: dmapi
a78dd613
AM
4Version: 2.2.10
5Release: 1
3e4ba95d
JB
6# doc/COPYING mentions LGPL for files in "dmapi", but all sources are explicitly marked GPL
7License: GPL v2
bb8875a2 8Group: Libraries
1f67cb7a 9Source0: ftp://linux-xfs.sgi.com/projects/xfs/cmd_tars/%{name}-%{version}.tar.gz
a78dd613 10# Source0-md5: c6e4ace10c446bbb92576e5dd19aec24
31008c2a 11Patch0: %{name}-miscfix.patch
3dff3b3e 12URL: http://oss.sgi.com/projects/xfs/
39f8c7a4 13BuildRequires: autoconf
31008c2a 14BuildRequires: automake
ce485bb7 15BuildRequires: sed >= 4.0
65a42fed 16BuildRequires: xfsprogs-devel >= 2.6.13
3dff3b3e
JR
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
90f49fcd
JB
19%define _libdir /%{_lib}
20%define _libexecdir /usr/%{_lib}
9aa4ad48 21
3dff3b3e
JR
22%description
23DMAPI, or XDSM, is an implementation of the X/Open document: Systems
24Management: Data Storage Management (XDSM) API dated February 1997.
39f8c7a4
JB
25This interface is made available for the XFS filesystem by means of
26the libdm library.
27
28See the XDSM manual at
29http://www.opengroup.org/onlinepubs/9657099/toc.htm for a description
30of the functions offered by libdm library.
31
23abe6f0 32%description -l pl.UTF-8
39f8c7a4
JB
33DMAPI (albo XDSM) to implementacja dokumentu X/Open "Systems
34Management: Data Storage Management (XDSM) API) z lutego 1997. Ten
23abe6f0 35interfejs jest dostępny dla systemu plików XFS poprzez bibliotekę
39f8c7a4
JB
36libdm.
37
23abe6f0 38Opis funkcji oferowanych przez bibliotekę libdm jest w podręczniku:
39f8c7a4 39http://www.opengroup.org/onlinepubs/9657099/toc.htm
3dff3b3e
JR
40
41%package devel
42Summary: Header files for DMAPI library
0b12662c 43Summary(pl.UTF-8): Pliki nagłówkowe biblioteki DMAPI
3dff3b3e 44Group: Development/Libraries
90f49fcd 45Requires: %{name} = %{version}-%{release}
bb8875a2 46Requires: xfsprogs-devel
3dff3b3e
JR
47
48%description devel
49Header files required to develop software which uses DMAPI.
50
23abe6f0
JR
51%description devel -l pl.UTF-8
52Pliki nagłówkowe potrzebne do tworzenia oprogramowania używającego
39f8c7a4
JB
53DMAPI.
54
3dff3b3e
JR
55%package static
56Summary: Static DMAPI library
0b12662c 57Summary(pl.UTF-8): Statyczna biblioteka DMAPI
3dff3b3e 58Group: Development/Libraries
90f49fcd 59Requires: %{name}-devel = %{version}-%{release}
3dff3b3e
JR
60
61%description static
62Static version of DMAPI library.
63
23abe6f0 64%description static -l pl.UTF-8
39f8c7a4
JB
65Statyczna wersja biblioteki DMAPI.
66
3dff3b3e 67%prep
31008c2a 68%setup -q
90f49fcd 69%patch0 -p1
3dff3b3e
JR
70
71%build
31008c2a
JB
72rm -f aclocal.m4
73%{__aclocal} -I m4
56f82e65 74%{__autoconf}
7378eb39 75%configure \
31008c2a 76 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \
7378eb39 77 OPTIMIZER="%{rpmcflags}"
3dff3b3e
JR
78
79%{__make}
80
81%install
82rm -rf $RPM_BUILD_ROOT
83
8c155827 84DIST_ROOT=$RPM_BUILD_ROOT
3dff3b3e
JR
85DIST_INSTALL=`pwd`/install.manifest
86DIST_INSTALL_DEV=`pwd`/install-dev.manifest
5bb625fc 87export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV
20d60737 88
8c155827
PG
89%{__make} install \
90 DIST_MANIFEST=$DIST_INSTALL
91%{__make} install-dev \
92 DIST_MANIFEST=$DIST_INSTALL_DEV
3dff3b3e 93
9aa4ad48 94rm -f $RPM_BUILD_ROOT%{_libexecdir}/libdm.so
31008c2a
JB
95ln -sf %{_libdir}/$(cd $RPM_BUILD_ROOT%{_libdir} ; echo libdm.so.*.*.*) \
96 $RPM_BUILD_ROOT%{_libexecdir}/libdm.so
ce485bb7
JB
97%{__sed} -i "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \
98 $RPM_BUILD_ROOT%{_libexecdir}/libdm.la
53824c16 99
3dff3b3e
JR
100%clean
101rm -rf $RPM_BUILD_ROOT
102
064dfbb4 103%post -p /sbin/ldconfig
104%postun -p /sbin/ldconfig
465066b5 105
3dff3b3e
JR
106%files
107%defattr(644,root,root,755)
25ed3356
JB
108# COPYING specifies which parts are on LGPL/GPL
109%doc doc/{CHANGES,COPYING}
9aa4ad48 110%attr(755,root,root) %{_libdir}/lib*.so.*.*
3dff3b3e
JR
111
112%files devel
113%defattr(644,root,root,755)
9aa4ad48 114%attr(755,root,root) %{_libexecdir}/lib*.so
31008c2a 115%{_libexecdir}/lib*.la
bb8875a2 116%{_includedir}/xfs/*
3dff3b3e
JR
117%{_mandir}/man3/*
118
119%files static
120%defattr(644,root,root,755)
9aa4ad48 121%{_libexecdir}/lib*.a
This page took 0.757278 seconds and 4 git commands to generate.