]> git.pld-linux.org Git - packages/xfsprogs.git/blob - xfsprogs.spec
- added --with static
[packages/xfsprogs.git] / xfsprogs.spec
1 # conditional build
2 #  --with static
3 Summary:        Tools for the XFS filesystem
4 Summary(pl):    Narzêdzia do systemu plików XFS
5 Name:           xfsprogs
6 Version:        1.3.17
7 Release:        1
8 License:        GPL
9 Group:          Applications/System
10 Source0:        ftp://linux-xfs.sgi.com/projects/xfs/download/cmd_tars/%{name}-%{version}.src.tar.gz
11 Patch0:         %{name}-miscfix-v2.patch
12 Patch1:         %{name}-install-sh.patch
13 BuildRequires:  e2fsprogs-devel
14 BuildRequires:  autoconf
15 BuildRequires:  bash
16 URL:            http://oss.sgi.com/projects/xfs/
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 A set of commands to use the XFS filesystem, including mkfs.xfs.
21
22 XFS is a high performance journaling filesystem which originated on
23 the SGI IRIX platform. It is completely multi-threaded, can support
24 large files and large filesystems, extended attributes, variable block
25 sizes, is extent based, and makes extensive use of Btrees
26 (directories, extents, free space) to aid both performance and
27 scalability.
28
29 This implementation is on-disk compatible with the IRIX version of
30 XFS.
31
32 %description -l pl
33 Zbiór komend do u¿ytku z systemem plików XFS, w³±czaj±c w to mkfs.xfs.
34
35 XFS jest wysoko wydajnym systemem plików z kronik±, który oryginalnie
36 by³ u¿ywany na platformie SGI IRIX. Jest to w pe³ni wielow±tkowy,
37 obs³uguj±cy wielkie pliki oraz wielkie systemy, o rozszerzonych
38 atrybutach, zmiennych wielko¶ciach bloków, mocno wykorzystuj±cy
39 B-drzewa by uzyskaæ wysok± wydajno¶æ oraz skalowalno¶æ.
40
41 %package devel
42 Summary:        Header files and libraries to develop XFS software
43 Summary(pl):    Pliki nag³ówkowe i biblioteki
44 Group:          Development/Libraries
45
46 %description devel
47 Header files and libraries to develop software which operates on XFS
48 filesystems.
49
50 %description devel -l pl
51 Pliki nag³ówkowe i biblioteki potrzebne do rozwoju oprogramowania
52 operuj±cego na systemie plików XFS.
53
54 %prep
55 %setup  -q
56 %patch0 -p1
57 %patch1 -p1
58
59 %build
60 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
61 autoconf
62
63 %if %{?BOOT:1}%{!?BOOT:0}
64 %configure2_13 \
65         --disable-shared \
66         --disable-shared-uuid
67 %{__make} -C libxfs
68 %{__make} -C libdisk
69 %{__make} -C mkfs LLDFLAGS=-alltatic
70 mv -f mkfs/mkfs.xfs mkfs.xfs-BOOT
71 %{__make} clean
72 %endif
73
74 %configure2_13 \
75         %{!?_with_static:--enable-shared-uuid=yes} \
76         %{?_with_static:--disable-shared --disable-shared-uuid}
77
78 %{__make} \
79         %{?_with_static:LTLINK='$(LIBTOOL) --mode=link $(CC) -all-static' LDFLAGS=-static}
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83
84 DIST_ROOT="$RPM_BUILD_ROOT"
85 DIST_INSTALL=`pwd`/install.manifest
86 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
87 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV
88 %{?_with_static:cp include/builddefs include/builddefs.tmp}
89 %{?_with_static:sed -e 's/\.lai/.la/' include/builddefs.tmp > include/builddefs}
90 %{__make} install DIST_MANIFEST="$DIST_INSTALL"
91 %{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
92
93 for man in attr_list_by_handle.3 attr_multi_by_handle.3 \
94            fd_to_handle.3 free_handle.3 fssetdm_by_handle.3 \
95            handle_to_fshandle.3 open_by_handle.3 path_to_fshandle.3 \
96            readlink_by_handle.3; do
97                 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/$man
98                 echo ".so man3/path_to_handle.3" \
99                         > $RPM_BUILD_ROOT%{_mandir}/man3/$man
100 done
101
102 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/xfs_info.8
103 echo ".so man8/xfs_growfs.8" > $RPM_BUILD_ROOT%{_mandir}/man8/xfs_info.8
104
105 gzip -9nf doc/{CHANGES,CREDITS,README.*}
106
107 %clean
108 rm -rf $RPM_BUILD_ROOT
109
110 %post -p /sbin/ldconfig
111 %postun -p /sbin/ldconfig
112
113 %files
114 %defattr(644,root,root,755)
115 %doc doc/*.gz
116 %attr(755,root,root) /sbin/*
117 %attr(755,root,root) %{_sbindir}/*
118 %{!?_with_static:%attr(755,root,root) /lib/lib*.so.*}
119 %{_mandir}/man[185]/*
120
121 %files devel
122 %defattr(644,root,root,755)
123 %{_mandir}/man3/*
124 %{_includedir}/xfs
125 %{_libdir}/*.a
This page took 0.052581 seconds and 4 git commands to generate.