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 Group(de): Applikationen/System
14 Group(pl): Aplikacje/System
15 Source0: ftp://download.sourceforge.net/pub/sourceforge/e2fsprogs/%{name}-%{version}.tar.gz
16 Source1: http://opensource.captech.com/e2compr/ftp/e2compr-0.4.texinfo.gz
17 Source2: http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
18 Patch0: %{name}-info.patch
19 Patch1: e2compr-info.patch
20 Patch2: %{name}-mountlabel3.patch
21 URL: http://e2fsprogs.sourceforge.net/
22 PreReq: /sbin/ldconfig
23 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 BuildRequires: automake
25 BuildRequires: autoconf
26 BuildRequires: gettext-devel
27 %if %{!?_without_embed:1}%{?_without_embed:0}
28 BuildRequires: uClibc-devel
29 BuildRequires: uClibc-static
32 %define embed_path /usr/lib/embed
33 %define embed_cc %{_arch}-uclibc-cc
34 %define embed_cflags %{rpmcflags} -Os
35 %define uclibc_prefix /usr/%{_arch}-linux-uclibc
38 The e2fsprogs package contains a number of utilities for creating,
39 checking, modifying and correcting any inconsistencies in second
40 extended (ext2) filesystems. E2fsprogs contains e2fsck (used to repair
41 filesystem inconsistencies after an unclean shutdown), mke2fs (used to
42 initialize a partition to contain an empty ext2 filesystem), debugfs
43 (used to examine the internal structure of a filesystem, to manually
44 repair a corrupted filesystem or to create test cases for e2fsck),
45 tune2fs (used to modify filesystem parameters) and most of the other
46 core ext2fs filesystem utilities.
49 Dieses Paket enthält eine Auswahl an Utilities zum Erstellen, Prüfen
50 und zur Instandsetzung von ext2-Dateisystemen.
53 Ce package contient de nombreux utilitaires pour créer, vérifier, et
54 réparer les systèmes de fichiers ext2.
57 Pakiet ten zawiera narzêdzia do tworzenia, sprawdzania i naprawiania
58 wolumenów dyskowych z systemem plikowym ext2. E2fsprogs zawiera e2fsck
59 (u¿ywany do naprawiania niespójno¶ci w systemie plikowym po
60 niepoprawnym zamkniêciu systemu), mke2fs (u¿ywany do inicjacji
61 wolumenów ext2), debugfs (¿ywany do sprawdzania wewnêtrznej struktury
62 wolumenów ext2, a tak¿e do rêcznego naprawiania b³êdów), tune2fs
63 (u¿ywany do modyfikacji parametrów wolumenów ext2) i kilka innych
67 Bu paket, ext2 dosya sistemlerini yaratmak, onarmak, kontrol etmek ve
68 bazý parametrelerini deðiþtirmek için gerekli yazýlýmlarý içerir.
71 Summary: e2fs header files
72 Summary(de): Header-Dateien für eine e2fs
73 Summary(pl): Pliki nag³ówkowe do bibliotek e2fs
74 Group: Development/Libraries
75 Group(de): Entwicklung/Libraries
76 Group(es): Desarrollo/Bibliotecas
77 Group(fr): Development/Librairies
78 Group(pl): Programowanie/Biblioteki
79 Group(pt_BR): Desenvolvimento/Bibliotecas
80 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
81 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
82 Requires: %{name} = %{version}
85 E2fsprogs-devel contand header files and documentation needed to
86 develop second extended (ext2) filesystem-specific programs.
88 %description -l de devel
89 Header-Dateien, die zur Entwicklung von ext2-Dateisystemspezifischen
90 Programmen erforderlich sind.
92 %description -l pl devel
93 Pliki nag³ówkowe i dokumentacja niezbêdne do tworzenia programów
97 Summary: e2fs static libraries
98 Summary(de): e2fs statische Libraries
99 Summary(pl): Biblioteki statyczne do obs³ugi e2fs
100 Group: Development/Libraries
101 Group(de): Entwicklung/Libraries
102 Group(es): Desarrollo/Bibliotecas
103 Group(fr): Development/Librairies
104 Group(pl): Programowanie/Biblioteki
105 Group(pt_BR): Desenvolvimento/Bibliotecas
106 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
107 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
108 Requires: %{name}-devel = %{version}
111 Static libraries files needed to develop ext2 filesystem-specific
112 programs statically linked with e2progs libs.
114 %description -l de static
115 Libraries zur Entwicklung von ext2-Dateisystemspezifischen Programmen
118 %description -l pl static
119 Biblioteki statyczne do ob³ugi e2fs niezbêdne do kompilacji programów
120 statycznie skonsolidowanych (linkowanych) z bibliotekami do e2fs.
123 Summary: e2fs for bootdisk
124 Group: Applications/System
125 Group(de): Applikationen/System
126 Group(pl): Aplikacje/System
129 E2fsprogs-devel contains header files and documentation needed to
130 develop second extended (ext2) filesystem-specific programs. This
131 package is for bootdisk.
134 Summary: e2fs header files for bootdisk
135 Summary(de): Header-Dateien für eine e2fs
136 Summary(pl): Pliki nag³ówkowe do bibliotek e2fs
137 Group: Development/Libraries
138 Group(de): Entwicklung/Libraries
139 Group(es): Desarrollo/Bibliotecas
140 Group(fr): Development/Librairies
141 Group(pl): Programowanie/Biblioteki
142 Group(pt_BR): Desenvolvimento/Bibliotecas
143 Group(ru): òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
144 Group(uk): òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
146 %description devel-embed
147 E2fsprogs-devel contand header files and documentation needed to
148 develop second extended (ext2) filesystem-specific programs.
154 gunzip < %{SOURCE1} > doc/e2compr.texinfo
155 patch -s -p1 < %{PATCH1}
159 chmod u+w configure aclocal.m4
160 gettextize --copy --force
164 %if %{!?_without_embed:1}%{?_without_embed:0}
166 --with-root-prefix=/ \
168 --enable-compression \
169 --enable-all-static \
171 --with-cc=%{embed_cc} \
172 --with-ccopts="%{embed_cflags}"
175 mv e2fsck/e2fsck e2fsck-embed-shared
176 for i in badblocks mke2fs; do
177 mv misc/$i $i-embed-shared
179 %{__make} progs ALL_LDFLAGS="-static"
180 mv e2fsck/e2fsck e2fsck-embed-static
181 for i in badblocks mke2fs; do
182 mv misc/$i $i-embed-static
185 cp lib/*.a embed-libs
190 --with-root-prefix=/ \
192 --enable-elf-shlibs \
193 --enable-compression \
194 %{?_without_static:--enable-dynamic-e2fsck} \
197 %{__make} libs progs docs
199 makeinfo --no-split e2compr.texinfo
203 rm -rf $RPM_BUILD_ROOT
204 export PATH=/sbin:$PATH
206 %{__make} install DESTDIR=$RPM_BUILD_ROOT
207 %{__make} install-libs DESTDIR=$RPM_BUILD_ROOT
208 %{__make} -C po install DESTDIR=$RPM_BUILD_ROOT
210 %if %{!?_without_embed:1}%{?_without_embed:0}
211 install -d $RPM_BUILD_ROOT%{embed_path}/{shared,static}
212 install -d $RPM_BUILD_ROOT%{uclibc_prefix}/{include,lib}
213 for i in badblocks mke2fs e2fsck; do
214 install $i-embed-shared $RPM_BUILD_ROOT%{embed_path}/shared/$i
215 install $i-embed-static $RPM_BUILD_ROOT%{embed_path}/static/$i
217 cp -a $RPM_BUILD_ROOT%{_includedir}/* $RPM_BUILD_ROOT%{uclibc_prefix}/include
218 cp embed-libs/* $RPM_BUILD_ROOT%{uclibc_prefix}/lib
221 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext2
222 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext3
223 ln -sf mke2fs $RPM_BUILD_ROOT/sbin/mkfs.ext2
225 install doc/e2compr.info $RPM_BUILD_ROOT%{_infodir}
227 bzip2 -dc %{SOURCE2} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
233 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
237 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
240 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
243 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
246 rm -rf $RPM_BUILD_ROOT
248 %files -f %{name}.lang
249 %defattr(644,root,root,755)
250 %attr(755,root,root) /sbin/*
251 %attr(755,root,root) %{_sbindir}/*
252 %attr(755,root,root) %{_bindir}/*
253 %attr(755,root,root) /lib/lib*.so.*
255 %lang(fi) %{_mandir}/fi/man[18]/*
256 %lang(fr) %{_mandir}/fr/man[18]/*
257 %lang(hu) %{_mandir}/hu/man[18]/*
258 %lang(it) %{_mandir}/it/man[18]/*
259 %lang(ja) %{_mandir}/ja/man[18]/*
260 %lang(ko) %{_mandir}/ko/man[18]/*
261 %lang(pl) %{_mandir}/pl/man[18]/*
264 %{_infodir}/e2compr.info*
267 %defattr(644,root,root,755)
268 %doc README RELEASE-NOTES
270 %{_infodir}/libext2fs.info*
272 %lang(ja) %{_mandir}/ja/man3/*
275 %attr(755,root,root) %{_libdir}/lib*.so
278 %defattr(644,root,root,755)
281 %if %{!?_without_embed:1}%{?_without_embed:0}
283 %defattr(644,root,root,755)
284 %attr(755,root,root) %{embed_path}/*/*
287 %{uclibc_prefix}/include/*
288 %{uclibc_prefix}/lib/*