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