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