]>
Commit | Line | Data |
---|---|---|
00d1530a JR |
1 | # |
2 | # Conditional build: | |
4a867e5e | 3 | %bcond_without tcmalloc # don't use tcmalloc |
00d1530a | 4 | # |
80ded214 | 5 | Summary: Tools for the XFS filesystem |
809af116 | 6 | Summary(pl.UTF-8): Narzędzia do systemu plików XFS |
80ded214 | 7 | Name: xfsprogs |
b6d794ef | 8 | Version: 3.2.2 |
a7a3a492 | 9 | Release: 1 |
636af8bd | 10 | License: LGPL v2.1 (libhandle), GPL v2 (the rest) |
80ded214 | 11 | Group: Applications/System |
4ede93fd | 12 | Source0: ftp://linux-xfs.sgi.com/projects/xfs/cmd_tars/%{name}-%{version}.tar.gz |
b6d794ef | 13 | # Source0-md5: b6b0db5e3ee71ceba26d0a5accbd0666 |
a32e9a39 | 14 | Source1: xfs_lsprojid |
bc92c0b0 | 15 | Patch0: %{name}-miscfix-v2.patch |
8e06f9de AM |
16 | Patch1: %{name}-pl.po-update.patch |
17 | Patch2: %{name}-repair-tcmalloc.patch | |
18 | Patch3: %{name}-noquotasync.patch | |
51a52578 | 19 | URL: http://www.xfs.org/ |
80ded214 | 20 | BuildRequires: autoconf |
1c0f6863 | 21 | BuildRequires: automake |
cb58e4a3 | 22 | BuildRequires: bash |
7fb2d2e7 | 23 | BuildRequires: gettext-tools |
51a52578 | 24 | BuildRequires: libblkid-devel |
4a867e5e | 25 | %{?with_tcmalloc:BuildRequires: libtcmalloc-devel} |
92a53cbb | 26 | BuildRequires: libtool |
a5769371 | 27 | BuildRequires: libuuid-devel |
99229502 | 28 | BuildRequires: readline-devel |
dec839eb | 29 | BuildRequires: rpm >= 4.4.9-56 |
9656c3b9 | 30 | BuildRequires: rpmbuild(macros) >= 1.402 |
727e5a6d | 31 | %{?with_tcmalloc:Requires: libtcmalloc >= 1.8.3-3} |
7c029ef7 | 32 | Obsoletes: xfsprogs-initrd |
c826f244 | 33 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
80ded214 | 34 | |
dec839eb ER |
35 | %if "%{pld_release}" == "ac" |
36 | # libtool in ac doesn't do the reordering of args properly | |
37 | %define filterout_ld -Wl,--as-needed | |
38 | %endif | |
39 | ||
b087bbdd JR |
40 | %define _sbindir /sbin |
41 | %define _bindir /usr/sbin | |
a19d7677 JK |
42 | %define _libdir /%{_lib} |
43 | %define _libexecdir /usr/%{_lib} | |
b087bbdd | 44 | |
80ded214 AM |
45 | %description |
46 | A set of commands to use the XFS filesystem, including mkfs.xfs. | |
47 | ||
48 | XFS is a high performance journaling filesystem which originated on | |
49 | the SGI IRIX platform. It is completely multi-threaded, can support | |
50 | large files and large filesystems, extended attributes, variable block | |
51 | sizes, is extent based, and makes extensive use of Btrees | |
52 | (directories, extents, free space) to aid both performance and | |
53 | scalability. | |
54 | ||
55 | This implementation is on-disk compatible with the IRIX version of | |
56 | XFS. | |
57 | ||
ddc220a9 JR |
58 | %description -l pl.UTF-8 |
59 | Zbiór komend do użytku z systemem plików XFS, włączając w to mkfs.xfs. | |
80ded214 | 60 | |
ddc220a9 JR |
61 | XFS jest wysoko wydajnym systemem plików z kroniką, który oryginalnie |
62 | był używany na platformie SGI IRIX. Jest to w pełni wielowątkowy, | |
63 | obsługujący wielkie pliki oraz wielkie systemy, o rozszerzonych | |
64 | atrybutach, zmiennych wielkościach bloków, mocno wykorzystujący | |
65 | B-drzewa by uzyskać wysoką wydajność oraz skalowalność. | |
80ded214 AM |
66 | |
67 | %package devel | |
68 | Summary: Header files and libraries to develop XFS software | |
809af116 | 69 | Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki |
80ded214 | 70 | Group: Development/Libraries |
8b4647b2 | 71 | Requires: %{name} = %{version}-%{release} |
2528905a | 72 | Requires: libuuid-devel |
80ded214 AM |
73 | |
74 | %description devel | |
75 | Header files and libraries to develop software which operates on XFS | |
76 | filesystems. | |
77 | ||
ddc220a9 JR |
78 | %description devel -l pl.UTF-8 |
79 | Pliki nagłówkowe i biblioteki potrzebne do rozwoju oprogramowania | |
80 | operującego na systemie plików XFS. | |
80ded214 | 81 | |
1c0f6863 | 82 | %package static |
83 | Summary: Static XFS software libraries | |
809af116 | 84 | Summary(pl.UTF-8): Biblioteki statyczne do XFS |
1c0f6863 | 85 | Group: Development/Libraries |
8b4647b2 | 86 | Requires: %{name}-devel = %{version}-%{release} |
1c0f6863 | 87 | |
88 | %description static | |
89 | Static XFS software libraries. | |
90 | ||
ddc220a9 | 91 | %description static -l pl.UTF-8 |
1c0f6863 | 92 | Biblioteki statyczne do XFS. |
93 | ||
80ded214 | 94 | %prep |
600886d5 | 95 | %setup -q |
80ded214 | 96 | %patch0 -p1 |
3d585810 | 97 | #%patch1 -p1 |
0787bd81 | 98 | |
8e06f9de AM |
99 | %{?with_tcmalloc:%patch2 -p1} |
100 | %patch3 -p1 | |
4ede93fd | 101 | |
80ded214 | 102 | %build |
ff9c0a4e | 103 | %{__aclocal} -I m4 |
551b0d1f | 104 | %{__autoconf} |
1c0f6863 | 105 | %configure \ |
a084b099 | 106 | --sbindir=%{_bindir}\ |
4ede93fd AM |
107 | --enable-gettext \ |
108 | --enable-readline \ | |
528ce8b7 | 109 | --enable-blkid \ |
0c1d4bf9 | 110 | DEBUG="%{?debug:-DDEBUG}%{!?debug:-DNDEBUG}" \ |
4ede93fd | 111 | OPTIMIZER="%{rpmcflags}" |
00d1530a | 112 | |
03dcab3f JB |
113 | %{__make} -j1 \ |
114 | V=1 | |
80ded214 AM |
115 | |
116 | %install | |
117 | rm -rf $RPM_BUILD_ROOT | |
0efa133e | 118 | install -d $RPM_BUILD_ROOT{%{_libexecdir},/etc} |
df004a70 | 119 | |
9656c3b9 ER |
120 | DIST_ROOT=$RPM_BUILD_ROOT |
121 | DIST_INSTALL=$(pwd)/install.manifest | |
122 | DIST_INSTALL_DEV=$(pwd)/install-dev.manifest | |
59aa30e8 | 123 | export DIST_ROOT DIST_INSTALL DIST_INSTALL_DEV |
ff9c0a4e JB |
124 | |
125 | %{__make} install \ | |
126 | DIST_MANIFEST="$DIST_INSTALL" | |
127 | %{__make} install-dev \ | |
128 | DIST_MANIFEST="$DIST_INSTALL_DEV" | |
80ded214 | 129 | |
a32e9a39 AM |
130 | install %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/xfs_lsprojid |
131 | ||
9656c3b9 | 132 | ln -sf %{_libdir}/$(basename $RPM_BUILD_ROOT%{_libdir}/libhandle.so.*.*.*) \ |
ff9c0a4e | 133 | $RPM_BUILD_ROOT%{_libexecdir}/libhandle.so |
cb190f67 | 134 | |
51a52578 AM |
135 | mv $RPM_BUILD_ROOT%{_libdir}/lib*.la $RPM_BUILD_ROOT%{_libexecdir} |
136 | mv $RPM_BUILD_ROOT%{_libdir}/lib*.a $RPM_BUILD_ROOT%{_libexecdir} | |
137 | ||
4ede93fd | 138 | %{__sed} -i -e "s|libdir='%{_libdir}'|libdir='%{_libexecdir}'|" \ |
8e06f9de | 139 | $RPM_BUILD_ROOT%{_libexecdir}/libhandle.la |
b756248b | 140 | |
6e781c10 PG |
141 | echo "#10:/mnt/ftp/roman" >> $RPM_BUILD_ROOT/etc/projects |
142 | echo "#ftproman:10" >> $RPM_BUILD_ROOT/etc/projid | |
143 | ||
01483858 JB |
144 | %find_lang %{name} |
145 | ||
03dcab3f | 146 | %{__rm} -r $RPM_BUILD_ROOT%{_docdir}/%{name} |
5e040522 | 147 | |
9656c3b9 | 148 | # already in /usr |
8e06f9de | 149 | %{__rm} $RPM_BUILD_ROOT%{_libdir}/libhandle.so |
9656c3b9 | 150 | |
80ded214 AM |
151 | %clean |
152 | rm -rf $RPM_BUILD_ROOT | |
153 | ||
c5b3782d | 154 | %post -p /sbin/ldconfig |
c7083593 JR |
155 | %postun -p /sbin/ldconfig |
156 | ||
01483858 | 157 | %files -f %{name}.lang |
80ded214 | 158 | %defattr(644,root,root,755) |
636af8bd | 159 | %doc README doc/{CHANGES,CREDITS} |
6e781c10 PG |
160 | %config(noreplace) %verify(not md5 mtime size) /etc/projects |
161 | %config(noreplace) %verify(not md5 mtime size) /etc/projid | |
0c1d4bf9 JB |
162 | %attr(755,root,root) %{_sbindir}/fsck.xfs |
163 | %attr(755,root,root) %{_sbindir}/mkfs.xfs | |
164 | %attr(755,root,root) %{_sbindir}/xfs_repair | |
165 | %attr(755,root,root) %{_bindir}/xfs_* | |
9656c3b9 | 166 | %attr(755,root,root) %{_libdir}/libhandle.so.*.* |
9656c3b9 | 167 | %attr(755,root,root) %ghost %{_libdir}/libhandle.so.1 |
275db5b4 AM |
168 | %{_mandir}/man5/projects.5* |
169 | %{_mandir}/man5/projid.5* | |
0c1d4bf9 JB |
170 | %{_mandir}/man5/xfs.5* |
171 | %{_mandir}/man8/fsck.xfs.8* | |
172 | %{_mandir}/man8/mkfs.xfs.8* | |
173 | %{_mandir}/man8/xfs_*.8* | |
80ded214 AM |
174 | |
175 | %files devel | |
176 | %defattr(644,root,root,755) | |
0c1d4bf9 | 177 | %attr(755,root,root) %{_libexecdir}/libhandle.so |
0c1d4bf9 | 178 | %{_libexecdir}/libhandle.la |
353bc53d | 179 | %{_includedir}/xfs |
0c1d4bf9 JB |
180 | %{_mandir}/man3/*handle.3* |
181 | %{_mandir}/man3/xfsctl.3* | |
1c0f6863 | 182 | |
183 | %files static | |
184 | %defattr(644,root,root,755) | |
0c1d4bf9 | 185 | %{_libexecdir}/libhandle.a |