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