[BACK]Return to dmapi.spec.in CVS log [TXT][DIR] Up to [Development] / xfs-cmds / dmapi / build / rpm

File: [Development] / xfs-cmds / dmapi / build / rpm / dmapi.spec.in (download)

Revision 1.15, Wed Mar 26 23:18:13 2003 UTC (14 years, 6 months ago) by nathans
Branch: MAIN
CVS Tags: XFS-1_3_0pre1
Changes since 1.14: +5 -23 lines

Merge back some spec file cleanups after investigating a mysterious
build problem for the internal SGI builds.
Merge of xfs-cmds-lbs:slinx:142673a by nathans.

  Redistribute the shell code which does the manifest to specfile file list
  conversion due to strange behavior being observed from rpm (we think).     
  Its cleaner this way anyway.    

Summary: Data Management API runtime environment.
Name: @pkg_name@
Version: @pkg_version@
Release: @pkg_release@
Distribution: @pkg_distribution@
Packager: Silicon Graphics, Inc. <http://www.sgi.com/>
BuildRoot: @build_root@ 
Prereq: /sbin/ldconfig
Conflicts: xfsdump < 2.0.0
Source: @pkg_name@-@pkg_version@.src.tar.gz
License: GPL
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@ -C build/rpm rpmfiles DIST_MANIFEST="$DIST_INSTALL"
@make@ install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
@make@ -C build/rpm rpmfiles-dev DIST_MANIFEST="$DIST_INSTALL_DEV"

%clean
rm -rf $RPM_BUILD_ROOT

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files -f build/rpm/rpmfiles

%files devel -f build/rpm/rpmfiles-dev