]> git.pld-linux.org Git - packages/xfsprogs.git/blob - xfsprogs.spec
- adapterized, cosmetics, pl spelling(!)
[packages/xfsprogs.git] / xfsprogs.spec
1 Summary:        Tools for the XFS filesystem
2 Summary(pl):    Narzêdzia do systemu plików XFS
3 Name:           xfsprogs
4 Version:        1.3.13
5 Release:        3
6 License:        GPL
7 Group:          Applications/System
8 Group(de):      Applikationen/System
9 Group(pl):      Aplikacje/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:  lvm-devel
15 BuildRequires:  autoconf
16 BuildRequires:  bash
17 %if %{?BOOT:1}%{!?BOOT:0}
18 BuildRequires:  lvm-static
19 BuildRequires:  glibc-static
20 BuildRequires:  e2fsprogs-static
21 %endif
22 URL:            http://oss.sgi.com/projects/xfs/
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 A set of commands to use the XFS filesystem, including mkfs.xfs.
27
28 XFS is a high performance journaling filesystem which originated on
29 the SGI IRIX platform. It is completely multi-threaded, can support
30 large files and large filesystems, extended attributes, variable block
31 sizes, is extent based, and makes extensive use of Btrees
32 (directories, extents, free space) to aid both performance and
33 scalability.
34
35 This implementation is on-disk compatible with the IRIX version of
36 XFS.
37
38 %description -l pl
39 Zbiór komend do u¿ytku z systemem plików XFS, w³±czaj±c w to mkfs.xfs.
40
41 XFS jest wysoko wydajnym systemem plików z kronik±, który oryginalnie
42 by³ u¿ywany na platformie SGI IRIX. Jest to w pe³ni wielow±tkowy,
43 obs³uguj±cy wielkie pliki oraz wielkie systemy, o rozszerzonych
44 atrybutach, zmiennych wielko¶ciach bloków, mocno wykorzystuj±cy
45 B-drzewa by uzyskaæ wysok± wydajno¶æ oraz skalowalno¶æ.
46
47 %package devel
48 Summary:        Header files and libraries to develop XFS software
49 Summary(pl):    Pliki nag³ówkowe i biblioteki
50 Group:          Development/Libraries
51 Group(de):      Entwicklung/Libraries
52 Group(es):      Desarrollo/Bibliotecas
53 Group(fr):      Development/Librairies
54 Group(pl):      Programowanie/Biblioteki
55 Group(pt_BR):   Desenvolvimento/Bibliotecas
56 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
57 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
58
59 %description devel
60 Header files and libraries to develop software which operates on XFS
61 filesystems.
62
63 %description -l pl devel
64 Pliki nag³ówkowe i biblioteki potrzebne do rozwoju oprogramowania
65 operuj±cego na systemie plików XFS.
66
67 %package BOOT
68 Summary:        xfs for bootdisk
69 Summary(pl):    xfs dla bootkietki
70 Group:          Applications/System
71 Group(de):      Applikationen/System
72 Group(pl):      Aplikacje/System
73
74 %description BOOT
75 xfs for bootdisk.
76
77 %description BOOT -l pl
78 xfs dla bootkietki.
79
80 %prep
81 %setup  -q
82 %patch0 -p1
83 %patch1 -p1
84
85 %build
86 DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}"; export DEBUG
87 autoconf
88
89 %if %{?BOOT:1}%{!?BOOT:0}
90 %configure2_13 \
91         --disable-shared \
92         --disable-shared-uuid
93 %{__make} -C libxfs
94 %{__make} -C libdisk
95 %{__make} -C mkfs LLDFLAGS=-all-static
96 mv -f mkfs/mkfs.xfs mkfs.xfs-BOOT
97 %{__make} clean
98 %endif
99
100 %configure2_13 \
101         --enable-shared-uuid=yes
102
103 %{__make}
104
105 %install
106 rm -rf $RPM_BUILD_ROOT
107
108 DIST_ROOT="$RPM_BUILD_ROOT"
109 DIST_INSTALL=`pwd`/install.manifest
110 DIST_INSTALL_DEV=`pwd`/install-dev.manifest
111 export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV 
112 %{__make} install DIST_MANIFEST="$DIST_INSTALL"
113 %{__make} install-dev DIST_MANIFEST="$DIST_INSTALL_DEV"
114
115 for man in attr_list_by_handle.3 attr_multi_by_handle.3 \
116            fd_to_handle.3 free_handle.3 fssetdm_by_handle.3 \
117            handle_to_fshandle.3 open_by_handle.3 path_to_fshandle.3 \
118            readlink_by_handle.3; do
119                 rm -f $RPM_BUILD_ROOT%{_mandir}/man3/$man
120                 echo ".so man3/path_to_handle.3" \
121                         > $RPM_BUILD_ROOT%{_mandir}/man3/$man
122 done
123
124 %if %{?BOOT:1}%{!?BOOT:0}
125 install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin
126 install mkfs.xfs-BOOT $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin/mkfs.xfs
127 %endif
128
129 rm -f $RPM_BUILD_ROOT%{_mandir}/man8/xfs_info.8
130 echo ".so man8/xfs_growfs.8" > $RPM_BUILD_ROOT%{_mandir}/man8/xfs_info.8
131
132 gzip -9nf doc/{CHANGES,CREDITS,README.*}
133
134 %clean
135 rm -rf $RPM_BUILD_ROOT
136
137 %files
138 %defattr(644,root,root,755)
139 %doc doc/*.gz
140 %attr(755,root,root) /sbin/*
141 %attr(755,root,root) %{_sbindir}/*
142 %attr(755,root,root) /lib/lib*.so.*
143 %{_mandir}/man[185]/*
144
145 %files devel
146 %defattr(644,root,root,755)
147 %{_mandir}/man3/*
148 %{_includedir}/xfs
149 %{_libdir}/*.a
150
151 %if %{?BOOT:1}%{!?BOOT:0}
152 %files BOOT
153 %defattr(644,root,root,755)
154 %attr(755,root,root) %{_libdir}/bootdisk/sbin/*
155 %endif
This page took 0.071289 seconds and 4 git commands to generate.