]> git.pld-linux.org Git - packages/e2fsprogs.git/blob - e2fsprogs.spec
- e2compr-info patch
[packages/e2fsprogs.git] / e2fsprogs.spec
1 Summary:        Tools for the second extended (ext2) filesystem
2 Summary(de):    Tools für das zweite erweiterte (ext2) Dateisystem
3 Summary(fr):    Outils pour le système de fichiers ext2
4 Summary(pl):    Narzêdzia do systemu plikowego ext2
5 Summary(tr):    ext2 dosya sistemi için araçlar
6 Name:           e2fsprogs
7 Version:        1.22
8 Release:        2
9 License:        GPL
10 Group:          Applications/System
11 Group(de):      Applikationen/System
12 Group(pl):      Aplikacje/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 Patch0:         %{name}-info.patch
16 Patch1:         %{name}-ac250.patch
17 Patch2:         e2compr-info.patch
18 URL:            http://e2fsprogs.sourceforge.net/
19 PreReq:         /sbin/ldconfig
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 BuildRequires:  automake
22 BuildRequires:  autoconf
23 BuildRequires:  gettext-devel
24 %if %{?BOOT:1}%{!?BOOT:0}
25 BuildRequires:  glibc-static
26 %endif
27
28 %description
29 The e2fsprogs package contains a number of utilities for creating,
30 checking, modifying and correcting any inconsistencies in second
31 extended (ext2) filesystems. E2fsprogs contains e2fsck (used to repair
32 filesystem inconsistencies after an unclean shutdown), mke2fs (used to
33 initialize a partition to contain an empty ext2 filesystem), debugfs
34 (used to examine the internal structure of a filesystem, to manually
35 repair a corrupted filesystem or to create test cases for e2fsck),
36 tune2fs (used to modify filesystem parameters) and most of the other
37 core ext2fs filesystem utilities.
38
39 %description -l de
40 Dieses Paket enthält eine Auswahl an Utilities zum Erstellen, Prüfen
41 und zur Instandsetzung von ext2-Dateisystemen.
42
43 %description -l fr
44 Ce package contient de nombreux utilitaires pour créer, vérifier, et
45 réparer les systèmes de fichiers ext2.
46
47 %description -l pl
48 Pakiet ten zawiera narzêdzia do tworzenia, sprawdzania i naprawiania
49 wolumenów dyskowych z systemem plikowym ext2. E2fsprogs zawiera e2fsck
50 (u¿ywany do naprawiania niespójno¶ci w systemie plikowym po
51 nipoprawnym zamkniêciu ststemu), mke2fs (u¿ywany do inicjacji
52 wolumenów ext2), debugfs (¿ywany do sprawdzania wewnêtrznej struktóry
53 wolumenów ext2, a tak¿e do recznego naprawiania b³êdów), tune2fs
54 (u¿ywany do modyfikacji parametrów eolumenów ext2) i kilka innych
55 narzêdzi do ext2.
56
57 %description -l tr
58 Bu paket, ext2 dosya sistemlerini yaratmak, onarmak, kontrol etmek ve
59 bazý parametrelerini deðiþtirmek için gerekli yazýlýmlarý içerir.
60
61 %package devel
62 Summary:        e2fs header files
63 Summary(de):    Header-Dateien für eine e2fs
64 Summary(pl):    Pliki nag³ówkowe do bibliotek e2fs
65 Group:          Development/Libraries
66 Group(de):      Entwicklung/Libraries
67 Group(fr):      Development/Librairies
68 Group(pl):      Programowanie/Biblioteki
69 Requires:       %{name} = %{version}
70
71 %description devel
72 E2fsprogs-devel contand header files and documentation needed to
73 develop second extended (ext2) filesystem-specific programs.
74
75 %description -l de devel
76 Header-Dateien, die zur Entwicklung von ext2-Dateisystemspezifischen
77 Programmen erforderlich sind.
78
79 %description -l pl devel
80 Pliki nag³ówkowe i dokumentacja niezbêdne do tworzenia programów
81 obs³ugukj±cych e2fs.
82
83 %package static
84 Summary:        e2fs static libraries
85 Summary(de):    e2fs statische Libraries
86 Summary(pl):    Biblioteki statyczne do obs³ugi e2fs
87 Group:          Development/Libraries
88 Group(de):      Entwicklung/Libraries
89 Group(fr):      Development/Librairies
90 Group(pl):      Programowanie/Biblioteki
91 Requires:       %{name}-devel = %{version}
92
93 %description static
94 Static libraries files needed to develop ext2 filesystem-specific
95 programs statically linked with e2progs libs.
96
97 %description -l de static
98 Libraries zur Entwicklung von ext2-Dateisystemspezifischen Programmen
99 erforderlich sind.
100
101 %description -l pl static
102 Biblioteki statyczne do ob³ugi e2fs niezêbdne do kompilacji programów
103 statycznie skonsolidowanych (likowanych) z bibliotekami do e2fs.
104
105 %package BOOT
106 Summary:        e2fs for bootdisk
107 Group:          Applications/System
108 Group(de):      Applikationen/System
109 Group(pl):      Aplikacje/System
110
111 %description BOOT
112 E2fsprogs-devel contand header files and documentation needed to
113 develop second extended (ext2) filesystem-specific programs. Thios
114 package is for bootdisk.
115
116 %prep
117 %setup  -q
118 %patch0 -p1
119 %patch1 -p1
120 gunzip < %{SOURCE1} > doc/e2compr.texinfo
121 patch -s -p1 < %{PATCH2}
122
123 %build
124 chmod u+w configure aclocal.m4
125 gettextize --copy --force
126 aclocal
127 autoconf
128
129 %if %{?BOOT:1}%{!?BOOT:0}
130
131 %configure \
132         --with-root-prefix=/ \
133         --disable-nls \
134         --enable-compression \
135         --enable-all-static \
136         --disable-fsck \
137         --enable-static-e2fsck \
138
139 # some problems compiling with uClibc
140 #%{__make} libs progs \
141 #       ALL_LDFLAGS="-nostdlib -s" \
142 #       CFLAGS="-I%{_libdir}/bootdisk%{_includedir}" \
143 #       LDLIBS="%{_libdir}/bootdisk%{_libdir}/crt0.o %{_libdir}/bootdisk%{_libdir}/libc.a -lgcc"
144
145 %{__make} libs
146 #%{__make} progs ALL_LDFLAGS="-nostdlib -s" LDLIBS="%{_libdir}/libc.a"
147 %{__make} progs ALL_LDFLAGS="-static -s" \
148 %ifarch %{ix86}
149 XTRA_CFLAGS="-m386"
150 %else
151 XTRA_CFLAGS=""
152 %endif
153
154 mv e2fsck/e2fsck e2fsck-BOOT
155 for i in badblocks mke2fs; do 
156         mv misc/$i $i-BOOT
157 done
158
159 %{__make} distclean
160 %endif
161
162 %configure \
163         --with-root-prefix=/ \
164         --enable-nls \
165         --enable-elf-shlibs \
166         --enable-compression \
167         %{?_without_static:--enable-dynamic-e2fsck} \
168         --enable-fsck
169
170 %{__make} libs progs docs
171 cd doc
172 makeinfo --no-split e2compr.texinfo 
173 cd ..
174
175 %install
176 rm -rf $RPM_BUILD_ROOT
177 export PATH=/sbin:$PATH
178
179 %if %{?BOOT:1}%{!?BOOT:0}
180 install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin
181 for i in *-BOOT; do 
182   install -s $i $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin/`basename $i -BOOT`
183 done
184 %endif
185
186 %{__make} install       DESTDIR=$RPM_BUILD_ROOT
187 %{__make} install-libs  DESTDIR=$RPM_BUILD_ROOT
188 %{__make} -C po install DESTDIR=$RPM_BUILD_ROOT
189
190 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext2
191 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext3
192 ln -sf mke2fs $RPM_BUILD_ROOT/sbin/mkfs.ext2
193
194 install doc/e2compr.info $RPM_BUILD_ROOT%{_infodir}
195
196 %find_lang %{name}
197
198 %post   
199 /sbin/ldconfig
200 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
201
202 %postun 
203 /sbin/ldconfig
204 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
205
206 %post  devel
207 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
208
209 %postun devel
210 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
211
212 %clean
213 rm -rf $RPM_BUILD_ROOT
214
215 %files -f %{name}.lang
216 %defattr(644,root,root,755)
217 %attr(755,root,root) /sbin/*
218 %attr(755,root,root) %{_sbindir}/*
219 %attr(755,root,root) %{_bindir}/*
220 %attr(755,root,root) /lib/lib*.so.*
221 %{_mandir}/man[18]/*
222 %{_datadir}/et
223 %{_datadir}/ss
224 %{_infodir}/e2compr.info*
225
226 %files devel
227 %defattr(644,root,root,755)
228 %doc README RELEASE-NOTES
229
230 %{_infodir}/libext2fs.info*
231 %{_mandir}/man3/*
232 %{_includedir}/*
233
234 %attr(755,root,root) %{_libdir}/lib*.so
235
236 %files static
237 %defattr(644,root,root,755)
238 %{_libdir}/lib*.a
239
240 %if %{?BOOT:1}%{!?BOOT:0}
241 %files BOOT
242 %defattr(644,root,root,755)
243 %attr(755,root,root) %{_libdir}/bootdisk/sbin/*
244 %endif
This page took 0.044579 seconds and 4 git commands to generate.