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