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