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