2 # _without_embed - don't build uClibc version
3 Summary: Tools for the second extended (ext2) filesystem
4 Summary(de): Tools für das zweite erweiterte (ext2) Dateisystem
5 Summary(fr): Outils pour le système de fichiers ext2
6 Summary(pl): Narzêdzia do systemu plikowego ext2
7 Summary(tr): ext2 dosya sistemi için araçlar
12 Group: Applications/System
13 Source0: ftp://download.sourceforge.net/pub/sourceforge/e2fsprogs/%{name}-%{version}.tar.gz
14 Source1: http://opensource.captech.com/e2compr/ftp/e2compr-0.4.texinfo.gz
15 Source2: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
16 Patch0: %{name}-info.patch
17 Patch1: e2compr-info.patch
18 Patch2: %{name}-mountlabel3.patch
19 URL: http://e2fsprogs.sourceforge.net/
20 PreReq: /sbin/ldconfig
21 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 BuildRequires: automake
23 BuildRequires: autoconf
24 BuildRequires: gettext-devel
25 %if %{!?_without_embed:1}%{?_without_embed:0}
26 BuildRequires: uClibc-devel
27 BuildRequires: uClibc-static
30 %define embed_path /usr/lib/embed
31 %define embed_cc %{_arch}-uclibc-cc
32 %define embed_cflags %{rpmcflags} -Os
33 %define uclibc_prefix /usr/%{_arch}-linux-uclibc
36 The e2fsprogs package contains a number of utilities for creating,
37 checking, modifying and correcting any inconsistencies in second
38 extended (ext2) filesystems. E2fsprogs contains e2fsck (used to repair
39 filesystem inconsistencies after an unclean shutdown), mke2fs (used to
40 initialize a partition to contain an empty ext2 filesystem), debugfs
41 (used to examine the internal structure of a filesystem, to manually
42 repair a corrupted filesystem or to create test cases for e2fsck),
43 tune2fs (used to modify filesystem parameters) and most of the other
44 core ext2fs filesystem utilities.
47 Dieses Paket enthält eine Auswahl an Utilities zum Erstellen, Prüfen
48 und zur Instandsetzung von ext2-Dateisystemen.
51 Ce package contient de nombreux utilitaires pour créer, vérifier, et
52 réparer les systèmes de fichiers ext2.
55 Pakiet ten zawiera narzêdzia do tworzenia, sprawdzania i naprawiania
56 wolumenów dyskowych z systemem plikowym ext2. E2fsprogs zawiera e2fsck
57 (u¿ywany do naprawiania niespójno¶ci w systemie plikowym po
58 niepoprawnym zamkniêciu systemu), mke2fs (u¿ywany do inicjacji
59 wolumenów ext2), debugfs (¿ywany do sprawdzania wewnêtrznej struktury
60 wolumenów ext2, a tak¿e do rêcznego naprawiania b³êdów), tune2fs
61 (u¿ywany do modyfikacji parametrów wolumenów ext2) i kilka innych
65 Bu paket, ext2 dosya sistemlerini yaratmak, onarmak, kontrol etmek ve
66 bazý parametrelerini deðiþtirmek için gerekli yazýlýmlarý içerir.
69 Summary: e2fs header files
70 Summary(de): Header-Dateien für eine e2fs
71 Summary(pl): Pliki nag³ówkowe do bibliotek e2fs
72 Group: Development/Libraries
73 Requires: %{name} = %{version}
76 E2fsprogs-devel contains header files and documentation needed to
77 develop second extended (ext2) filesystem-specific programs.
79 %description devel -l de
80 Header-Dateien, die zur Entwicklung von ext2-Dateisystemspezifischen
81 Programmen erforderlich sind.
83 %description devel -l pl
84 Pliki nag³ówkowe i dokumentacja niezbêdne do tworzenia programów
88 Summary: e2fs static libraries
89 Summary(de): e2fs statische Libraries
90 Summary(pl): Biblioteki statyczne do obs³ugi e2fs
91 Group: Development/Libraries
92 Requires: %{name}-devel = %{version}
95 Static libraries files needed to develop ext2 filesystem-specific
96 programs statically linked with e2progs libs.
98 %description static -l de
99 Libraries zur Entwicklung von ext2-Dateisystemspezifischen Programmen
102 %description static -l pl
103 Biblioteki statyczne do ob³ugi e2fs niezbêdne do kompilacji programów
104 statycznie skonsolidowanych (linkowanych) z bibliotekami do e2fs.
107 Summary: e2fs for bootdisk
108 Summary(pl): e2fs na bootkietkê
109 Group: Applications/System
112 The e2fsprogs package contains a number of utilities for creating,
113 checking, modifying and correcting any inconsistencies in second
114 extended (ext2) filesystems. Bootdisk version.
116 %description embed -l pl
117 Pakiet ten zawiera narzêdzia do tworzenia, sprawdzania i naprawiania
118 wolumenów dyskowych z systemem plikowym ext2. Wersja przeznaczona na
122 Summary: e2fs header files for bootdisk
123 Summary(de): Header-Dateien für eine e2fs
124 Summary(pl): Pliki nag³ówkowe do bibliotek e2fs
125 Group: Development/Libraries
127 %description devel-embed
128 e2fsprogs-devel-embed contand header files and documentation needed to
129 develop second extended (ext2) filesystem-specific programs. Bootdisk
132 %description devel-embed -l pl
133 Pakiet e2fsprogs-devel-embed zawiera pliki nag³ówkowe oraz
134 dokumentacjê niezbêdne do tworzenia oprogramowania zwi±zanego z
135 systemem plików ext2. Wersja przeznaczona na bootkietkê.
140 gunzip < %{SOURCE1} > doc/e2compr.texinfo
141 patch -s -p1 < %{PATCH1}
145 chmod u+w configure aclocal.m4
146 gettextize --copy --force
150 %if %{!?_without_embed:1}%{?_without_embed:0}
152 --with-root-prefix=/ \
154 --enable-compression \
155 --enable-all-static \
157 --with-cc=%{embed_cc} \
158 --with-ccopts="%{embed_cflags}"
161 mv e2fsck/e2fsck e2fsck-embed-shared
162 for i in badblocks mke2fs; do
163 mv misc/$i $i-embed-shared
165 %{__make} progs ALL_LDFLAGS="-static"
166 mv e2fsck/e2fsck e2fsck-embed-static
167 for i in badblocks mke2fs; do
168 mv misc/$i $i-embed-static
171 cp lib/*.a embed-libs
176 --with-root-prefix=/ \
178 --enable-elf-shlibs \
179 --enable-compression \
180 %{?_without_static:--enable-dynamic-e2fsck} \
183 %{__make} libs progs docs
185 makeinfo --no-split e2compr.texinfo
189 rm -rf $RPM_BUILD_ROOT
190 export PATH=/sbin:$PATH
192 %{__make} install DESTDIR=$RPM_BUILD_ROOT
193 %{__make} install-libs DESTDIR=$RPM_BUILD_ROOT
194 %{__make} -C po install DESTDIR=$RPM_BUILD_ROOT
196 %if %{!?_without_embed:1}%{?_without_embed:0}
197 install -d $RPM_BUILD_ROOT%{embed_path}/{shared,static}
198 install -d $RPM_BUILD_ROOT%{uclibc_prefix}/{include,lib}
199 for i in badblocks mke2fs e2fsck; do
200 install $i-embed-shared $RPM_BUILD_ROOT%{embed_path}/shared/$i
201 install $i-embed-static $RPM_BUILD_ROOT%{embed_path}/static/$i
203 cp -a $RPM_BUILD_ROOT%{_includedir}/* $RPM_BUILD_ROOT%{uclibc_prefix}/include
204 cp embed-libs/* $RPM_BUILD_ROOT%{uclibc_prefix}/lib
207 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext2
208 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext3
209 ln -sf mke2fs $RPM_BUILD_ROOT/sbin/mkfs.ext2
211 install doc/e2compr.info $RPM_BUILD_ROOT%{_infodir}
213 bzip2 -dc %{SOURCE2} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
219 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
223 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
226 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
229 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
232 rm -rf $RPM_BUILD_ROOT
234 %files -f %{name}.lang
235 %defattr(644,root,root,755)
236 %attr(755,root,root) /sbin/*
237 %attr(755,root,root) %{_sbindir}/*
238 %attr(755,root,root) %{_bindir}/*
239 %attr(755,root,root) /lib/lib*.so.*
241 %lang(fi) %{_mandir}/fi/man[18]/*
242 %lang(fr) %{_mandir}/fr/man[18]/*
243 %lang(hu) %{_mandir}/hu/man[18]/*
244 %lang(it) %{_mandir}/it/man[18]/*
245 %lang(ja) %{_mandir}/ja/man[18]/*
246 %lang(ko) %{_mandir}/ko/man[18]/*
247 %lang(pl) %{_mandir}/pl/man[18]/*
250 %{_infodir}/e2compr.info*
253 %defattr(644,root,root,755)
254 %doc README RELEASE-NOTES
256 %{_infodir}/libext2fs.info*
258 %lang(ja) %{_mandir}/ja/man3/*
261 %attr(755,root,root) %{_libdir}/lib*.so
264 %defattr(644,root,root,755)
267 %if %{!?_without_embed:1}%{?_without_embed:0}
269 %defattr(644,root,root,755)
270 %attr(755,root,root) %{embed_path}/*/*
273 %{uclibc_prefix}/include/*
274 %{uclibc_prefix}/lib/*