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