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