File: [Development] / xfs-cmds / dmapi / build / rpm / dmapi.spec.in (download)
Revision 1.12, Fri Jul 5 04:16:49 2002 UTC (15 years, 3 months ago) by nathans
Branch: MAIN
Changes since 1.11: +1 -4
lines
Build infrastructure updates so that configure options can be used to
specify paths rather than semi-hard-coded path names controlled by the
PREFIX/ROOT_PREFIX environment variables; eg. now allows /lib64 and
/lib32 as alternate library install paths, which some folks need.
|
Summary: Data Management API runtime environment.
Name: @pkg_name@
Version: @pkg_version@
Release: @pkg_release@
Distribution: @pkg_distribution@
Packager: @pkg_builder@
BuildRoot: @build_root@
Prereq: /sbin/ldconfig
Conflicts: xfsdump < 2.0.0
Source: @pkg_name@-@pkg_version@.src.tar.gz
Copyright: Copyright (C) 2000-2002 Silicon Graphics, Inc.
Vendor: Silicon Graphics, Inc.
URL: http://oss.sgi.com/projects/xfs/
Group: System Environment/Base
%description
Files required by system software using the Data Management API
(DMAPI). This is used to implement the interface defined in the
X/Open document: Systems Management: Data Storage Managment
(XDSM) API dated February 1997. This interface is implemented
by the libdm library.
%package devel
Summary: Data Management API static libraries and headers.
Group: Development/Libraries
Requires: @pkg_name@ >= 2.0.4
%description devel
dmapi-devel contains the libraries and header files needed to
develop programs which make use of the Data Management API
(DMAPI). If you install dmapi-devel, you'll also want to install
the dmapi (runtime) package and the xfsprogs-devel package.
%prep
if [ -f .census ] ; then
if [ ! -d ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION} ] ; then
ln -s . ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}
fi
else
%setup
@make@ configure
fi
%build
@make@
%install
DIST_ROOT="$RPM_BUILD_ROOT"
DIST_INSTALL=`pwd`/install.manifest
DIST_INSTALL_DEV=`pwd`/install-dev.manifest
export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV
@make@ install DIST_MANIFEST="$DIST_INSTALL"
@make@ install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
files()
{
sort | uniq | awk '
$1 == "d" { printf ("%%%%dir %%%%attr(%s,%s,%s) %s\n", $2, $3, $4, $5); }
$1 == "f" { if (match ($6, "@pkg_man_dir@") || match ($6, "@pkg_doc_dir@"))
printf ("%%%%doc ");
if (match ($6, "@pkg_man_dir@"))
printf ("%%%%attr(%s,%s,%s) %s*\n", $2, $3, $4, $6);
else
printf ("%%%%attr(%s,%s,%s) %s\n", $2, $3, $4, $6); }
$1 == "l" { if (match ($3, "@pkg_man_dir@") || match ($3, "@pkg_doc_dir@"))
printf ("%%%%doc ");
if (match ($3, "@pkg_man_dir@"))
printf ("%attr(0777,root,root) %s*\n", $3);
else
printf ("%attr(0777,root,root) %s\n", $3); }'
}
set +x
files < "$DIST_INSTALL" > files.rpm
files < "$DIST_INSTALL_DEV" > filesdevel.rpm
set -x
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files -f files.rpm
%files devel -f filesdevel.rpm