]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - build/rpm/xfsprogs.spec.in
use consistent terminology - file system -> filesystem.
[thirdparty/xfsprogs-dev.git] / build / rpm / xfsprogs.spec.in
1 Summary: Utilities for managing the XFS filesystem.
2 Name: @pkg_name@
3 Version: @pkg_version@
4 Release: @pkg_release@
5 Distribution: @pkg_distribution@
6 Packager: @pkg_builder@
7 BuildRoot: @build_root@
8 Conflicts: xfs-cmds
9 Obsoletes: xfs-cmds
10 Prereq: /sbin/ldconfig
11 Source: @pkg_name@-@pkg_version@.src.tar.gz
12 Copyright: Copyright (C) 2000 Silicon Graphics, Inc.
13 Vendor: Silicon Graphics, Inc.
14 URL: http://oss.sgi.com/projects/xfs/
15 Group: System Environment/Base
16
17 %description
18 A set of commands to use the XFS filesystem, including mkfs.xfs.
19
20 XFS is a high performance journaling filesystem which originated
21 on the SGI IRIX platform. It is completely multi-threaded, can
22 support large files and large filesystems, extended attributes,
23 variable block sizes, is extent based, and makes extensive use of
24 Btrees (directories, extents, free space) to aid both performance
25 and scalability.
26
27 Refer to the documentation at http://oss.sgi.com/projects/xfs/
28 for complete details. This implementation is on-disk compatible
29 with the IRIX version of XFS.
30
31 %package devel
32 Summary: XFS filesystem-specific static libraries and headers.
33 Group: Development/Libraries
34 Requires: @pkg_name@
35 Conflicts: xfs-cmds
36
37 %description devel
38 xfsprogs-devel contains the libraries and header files needed to
39 develop XFS filesystem-specific programs.
40
41 You should install xfsprogs-devel if you want to develop XFS
42 filesystem-specific programs, If you install xfsprogs-devel, you'll
43 also want to install xfsprogs.
44
45 # If .census exists, then no setup is necessary, just go and do the build,
46 # otherwise run setup
47 %prep
48 if [ -f .census ] ; then
49 if [ ! -d ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION} ] ; then
50 ln -s . ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}
51 fi
52 else
53 %setup
54 touch .census
55 ./configure
56 fi
57
58 %build
59 @make@
60
61 %install
62 DIST_ROOT="$RPM_BUILD_ROOT"
63 DIST_INSTALL=`pwd`/install.manifest
64 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
65 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV
66 @make@ install DIST_MANIFEST="$DIST_INSTALL"
67 @make@ install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
68 files()
69 {
70 sort | uniq | awk '
71 $1 == "d" { printf ("%%%%dir %%%%attr(%s,%s,%s) %s\n", $2, $3, $4, $5); }
72 $1 == "f" { if (match ($6, "@pkg_man_dir@") || match ($6, "@pkg_doc_dir@")) {
73 printf ("%%%%doc ");
74 }
75 printf ("%%%%attr(%s,%s,%s) %s\n", $2, $3, $4, $6); }
76 $1 == "l" { print "%attr(0777,root,root)", $3; }'
77 }
78 set +x
79 files < "$DIST_INSTALL" > files.rpm
80 files < "$DIST_INSTALL_DEV" > filesdevel.rpm
81 set -x
82
83 %clean
84 rm -rf $RPM_BUILD_ROOT
85
86 %post -p /sbin/ldconfig
87
88 %postun -p /sbin/ldconfig
89
90 %files -f files.rpm
91
92 %files devel -f filesdevel.rpm