]> git.pld-linux.org Git - packages/xfsprogs.git/blame - xfsprogs.spec
- rel 2; don't enable scrub for now: [36960.754044] XFS (dm-0): EXPERIMENTAL online...
[packages/xfsprogs.git] / xfsprogs.spec
CommitLineData
80ded214 1Summary: Tools for the XFS filesystem
809af116 2Summary(pl.UTF-8): Narzędzia do systemu plików XFS
80ded214 3Name: xfsprogs
28e86fdc 4Version: 4.15.0
164fa06a 5Release: 2
636af8bd 6License: LGPL v2.1 (libhandle), GPL v2 (the rest)
80ded214 7Group: Applications/System
5102c5bb 8Source0: https://kernel.org/pub/linux/utils/fs/xfs/xfsprogs/%{name}-%{version}.tar.gz
28e86fdc 9# Source0-md5: 62096a4a7487bf3b24a6b67be99402f8
a32e9a39 10Source1: xfs_lsprojid
bc92c0b0 11Patch0: %{name}-miscfix-v2.patch
8e06f9de 12Patch1: %{name}-pl.po-update.patch
51a52578 13URL: http://www.xfs.org/
1faeb583 14BuildRequires: autoconf >= 2.50
1c0f6863 15BuildRequires: automake
cb58e4a3 16BuildRequires: bash
7fb2d2e7 17BuildRequires: gettext-tools
7f3b3fd0 18BuildRequires: glibc-static
51a52578 19BuildRequires: libblkid-devel
92a53cbb 20BuildRequires: libtool
a5769371 21BuildRequires: libuuid-devel
7f3b3fd0 22BuildRequires: libuuid-static
99229502 23BuildRequires: readline-devel
dec839eb 24BuildRequires: rpm >= 4.4.9-56
9656c3b9 25BuildRequires: rpmbuild(macros) >= 1.402
28e86fdc 26Requires: systemd-units >= 38
7c029ef7 27Obsoletes: xfsprogs-initrd
c826f244 28BuildRoot: %{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
41A set of commands to use the XFS filesystem, including mkfs.xfs.
42
43XFS is a high performance journaling filesystem which originated on
44the SGI IRIX platform. It is completely multi-threaded, can support
45large files and large filesystems, extended attributes, variable block
46sizes, is extent based, and makes extensive use of Btrees
47(directories, extents, free space) to aid both performance and
48scalability.
49
50This implementation is on-disk compatible with the IRIX version of
51XFS.
52
ddc220a9
JR
53%description -l pl.UTF-8
54Zbiór komend do użytku z systemem plików XFS, włączając w to mkfs.xfs.
80ded214 55
ddc220a9
JR
56XFS jest wysoko wydajnym systemem plików z kroniką, który oryginalnie
57był używany na platformie SGI IRIX. Jest to w pełni wielowątkowy,
58obsługujący wielkie pliki oraz wielkie systemy, o rozszerzonych
59atrybutach, zmiennych wielkościach bloków, mocno wykorzystujący
60B-drzewa by uzyskać wysoką wydajność oraz skalowalność.
80ded214
AM
61
62%package devel
63Summary: Header files and libraries to develop XFS software
809af116 64Summary(pl.UTF-8): Pliki nagłówkowe i biblioteki
80ded214 65Group: Development/Libraries
8b4647b2 66Requires: %{name} = %{version}-%{release}
2528905a 67Requires: libuuid-devel
80ded214
AM
68
69%description devel
70Header files and libraries to develop software which operates on XFS
71filesystems.
72
ddc220a9
JR
73%description devel -l pl.UTF-8
74Pliki nagłówkowe i biblioteki potrzebne do rozwoju oprogramowania
75operującego na systemie plików XFS.
80ded214 76
1c0f6863 77%package static
78Summary: Static XFS software libraries
809af116 79Summary(pl.UTF-8): Biblioteki statyczne do XFS
1c0f6863 80Group: Development/Libraries
8b4647b2 81Requires: %{name}-devel = %{version}-%{release}
1c0f6863 82
83%description static
84Static XFS software libraries.
85
ddc220a9 86%description static -l pl.UTF-8
1c0f6863 87Biblioteki 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
109rm -rf $RPM_BUILD_ROOT
28e86fdc 110install -d $RPM_BUILD_ROOT{%{_libexecdir},/etc/cron.d}
df004a70 111
9656c3b9
ER
112DIST_ROOT=$RPM_BUILD_ROOT
113DIST_INSTALL=$(pwd)/install.manifest
114DIST_INSTALL_DEV=$(pwd)/install-dev.manifest
59aa30e8 115export 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 122cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/xfs_lsprojid
a32e9a39 123
9656c3b9 124ln -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
133echo "#10:/mnt/ftp/roman" >> $RPM_BUILD_ROOT/etc/projects
134echo "#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
143mv $RPM_BUILD_ROOT{%{_libdir}/%{name}/xfs_scrub_all.cron,/etc/cron.d/xfs_scrub_all}
144
80ded214
AM
145%clean
146rm -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
164fa06a
AM
169# [36960.754044] XFS (dm-0): EXPERIMENTAL online scrub feature in use. Use at your own risk!
170# so don't enable these by default
171#%{systemdunitdir}/xfs_scrub@.service
172#%{systemdunitdir}/xfs_scrub_all.service
173#%{systemdunitdir}/xfs_scrub_all.timer
174#%{systemdunitdir}/xfs_scrub_fail@.service
175#%config(noreplace) %verify(not md5 mtime size) /etc/cron.d/xfs_scrub_all
275db5b4
AM
176%{_mandir}/man5/projects.5*
177%{_mandir}/man5/projid.5*
0c1d4bf9
JB
178%{_mandir}/man5/xfs.5*
179%{_mandir}/man8/fsck.xfs.8*
180%{_mandir}/man8/mkfs.xfs.8*
181%{_mandir}/man8/xfs_*.8*
80ded214
AM
182
183%files devel
184%defattr(644,root,root,755)
0c1d4bf9 185%attr(755,root,root) %{_libexecdir}/libhandle.so
0c1d4bf9 186%{_libexecdir}/libhandle.la
353bc53d 187%{_includedir}/xfs
28e86fdc 188%{_mandir}/man2/ioctl_xfs_scrub_metadata.2*
0c1d4bf9
JB
189%{_mandir}/man3/*handle.3*
190%{_mandir}/man3/xfsctl.3*
1c0f6863 191
192%files static
193%defattr(644,root,root,755)
0c1d4bf9 194%{_libexecdir}/libhandle.a
This page took 0.168429 seconds and 4 git commands to generate.