]> git.pld-linux.org Git - packages/dmapi.git/blame - dmapi.spec
- added build fix from Gentoo to miscfix patch
[packages/dmapi.git] / dmapi.spec
CommitLineData
3dff3b3e 1Summary: DMAPI library
0b12662c 2Summary(pl.UTF-8): Biblioteka DMAPI
3dff3b3e 3Name: dmapi
57d388d9 4Version: 2.2.12
64743e3b 5Release: 3
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
57d388d9 10# Source0-md5: cd825d4e141c16011367e0a0dd98c9c5
31008c2a 11Patch0: %{name}-miscfix.patch
3dff3b3e 12URL: http://oss.sgi.com/projects/xfs/
57d388d9 13BuildRequires: autoconf >= 2.50
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}
63856c54 46Requires: xfsprogs-devel >= 2.6.13
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
63856c54 72%{__rm} aclocal.m4
31008c2a 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
63856c54
JB
94%{__rm} $RPM_BUILD_ROOT%{_libexecdir}/libdm.so
95ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libdm.so.*.*.*) \
31008c2a 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
63856c54
JB
100%{__rm} $RPM_BUILD_ROOT%{_libdir}/libdm.{so,la,a}
101
3dff3b3e
JR
102%clean
103rm -rf $RPM_BUILD_ROOT
104
064dfbb4 105%post -p /sbin/ldconfig
106%postun -p /sbin/ldconfig
465066b5 107
3dff3b3e
JR
108%files
109%defattr(644,root,root,755)
25ed3356 110# COPYING specifies which parts are on LGPL/GPL
63856c54
JB
111%doc README doc/{CHANGES,COPYING}
112%attr(755,root,root) %{_libdir}/libdm.so.*.*.*
113%attr(755,root,root) %ghost %{_libdir}/libdm.so.0
3dff3b3e
JR
114
115%files devel
116%defattr(644,root,root,755)
63856c54
JB
117%attr(755,root,root) %{_libexecdir}/libdm.so
118%{_libexecdir}/libdm.la
119%{_includedir}/xfs/dmapi.h
120%{_mandir}/man3/dmapi.3*
3dff3b3e
JR
121
122%files static
123%defattr(644,root,root,755)
63856c54 124%{_libexecdir}/libdm.a
This page took 0.080033 seconds and 4 git commands to generate.