]> git.pld-linux.org Git - packages/e2fsprogs.git/blob - e2fsprogs.spec
- finished BOOT package
[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.19
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}-mountlabel.patch
17 # not used! who knows why??
18 #Patch2:                http://acl.bestbits.at/current/%{name}-1.19ea-0.7.8.patch.gz
19 Patch3:         %{name}-LDLIBS.patch
20 URL:            http://e2fsprogs.sourceforge.net/
21 PreReq:         /sbin/ldconfig
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23
24 %description
25 The e2fsprogs package contains a number of utilities for creating,
26 checking, modifying and correcting any inconsistencies in second
27 extended (ext2) filesystems. E2fsprogs contains e2fsck (used to repair
28 filesystem inconsistencies after an unclean shutdown), mke2fs (used to
29 initialize a partition to contain an empty ext2 filesystem), debugfs
30 (used to examine the internal structure of a filesystem, to manually
31 repair a corrupted filesystem or to create test cases for e2fsck),
32 tune2fs (used to modify filesystem parameters) and most of the other
33 core ext2fs filesystem utilities.
34
35 %description -l de
36 Dieses Paket enthält eine Auswahl an Utilities zum Erstellen, Prüfen
37 und zur Instandsetzung von ext2-Dateisystemen.
38
39 %description -l fr
40 Ce package contient de nombreux utilitaires pour créer, vérifier, et
41 réparer les systèmes de fichiers ext2.
42
43 %description -l pl
44 Pakiet ten zawiera narzêdzia do tworzenia, sprawdzania i naprawiania
45 wolumenów dyskowych z systemem plikowym ext2. E2fsprogs zawiera e2fsck
46 (u¿ywany do naprawiania niespójno¶ci w systemie plikowym po
47 nipoprawnym zamkniêciu ststemu), mke2fs (u¿ywany do inicjacji
48 wolumenów ext2), debugfs (¿ywany do sprawdzania wewnêtrznej struktóry
49 wolumenów ext2, a tak¿e do recznego naprawiania b³êdów), tune2fs
50 (u¿ywany do modyfikacji parametrów eolumenów ext2) i kilka innych
51 narzêdzi do ext2.
52
53 %description -l tr
54 Bu paket, ext2 dosya sistemlerini yaratmak, onarmak, kontrol etmek ve
55 bazý parametrelerini deðiþtirmek için gerekli yazýlýmlarý içerir.
56
57 %package devel
58 Summary:        e2fs header files
59 Summary(de):    Header-Dateien für eine e2fs
60 Summary(pl):    Pliki nag³ówkowe do bibliotek e2fs
61 Group:          Development/Libraries
62 Group(de):      Entwicklung/Libraries
63 Group(fr):      Development/Librairies
64 Group(pl):      Programowanie/Biblioteki
65 Requires:       %{name} = %{version}
66
67 %description devel
68 E2fsprogs-devel contand header files and documentation needed to
69 develop second extended (ext2) filesystem-specific programs.
70
71 %description -l de devel
72 Header-Dateien, die zur Entwicklung von ext2-Dateisystemspezifischen
73 Programmen erforderlich sind.
74
75 %description -l pl devel
76 Pliki nag³ówkowe i dokumentacja niezbêdne do tworzenia programów
77 obs³ugukj±cych e2fs.
78
79 %package static
80 Summary:        e2fs static libraries
81 Summary(de):    e2fs statische Libraries
82 Summary(pl):    Biblioteki statyczne do obs³ugi e2fs
83 Group:          Development/Libraries
84 Group(de):      Entwicklung/Libraries
85 Group(fr):      Development/Librairies
86 Group(pl):      Programowanie/Biblioteki
87 Requires:       %{name}-devel = %{version}
88
89 %description static
90 Static libraries files needed to develop ext2 filesystem-specific
91 programs statically linked with e2progs libs.
92
93 %description -l de static
94 Libraries zur Entwicklung von ext2-Dateisystemspezifischen Programmen
95 erforderlich sind.
96
97 %description -l pl static
98 Biblioteki statyczne do ob³ugi e2fs niezêbdne do kompilacji programów
99 statycznie skonsolidowanych (likowanych) z bibliotekami do e2fs.
100
101 %if %{?BOOT:1}%{!?BOOT:0}
102 %package BOOT
103 Summary:        parted for bootdisk
104 Group:          Applications/System
105 %description BOOT
106 %endif
107
108 %prep
109 %setup  -q
110 %patch0 -p1
111 %patch1 -p1
112 %patch3 -p1
113
114 gunzip < %{SOURCE1} > doc/e2compr.texinfo
115
116 %build
117 autoconf
118
119 %if %{?BOOT:1}%{!?BOOT:0}
120
121 %configure \
122         --with-root-prefix=/ \
123         --disable-nls \
124         --enable-compression \
125         --enable-all-static \
126         --disable-fsck \
127         --enable-elf-shlibs \
128         --enable-dynamic-e2fsck \
129         
130 #       --enable-static-fsck \
131 #       --enable-static-mk2fs \
132
133
134 # some problems compiling with uClibc
135 #%{__make} libs progs \
136 #       ALL_LDFLAGS="-nostdlib -s" \
137 #       CFLAGS="-I%{_libdir}/bootdisk%{_includedir}" \
138 #       LDLIBS="%{_libdir}/bootdisk%{_libdir}/crt0.o %{_libdir}/bootdisk%{_libdir}/libc.a -lgcc"
139
140 %{__make} libs
141 %{__make} progs ALL_LDFLAGS="--nostdlib -s" LDLIBS="%{_libdir}/libc.a"
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} clean
149 %endif
150
151 %configure \
152         --with-root-prefix=/ \
153         --enable-nls \
154         --enable-elf-shlibs \
155         --enable-compression \
156         %{?bcond_off_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/usr/lib/bootdisk/sbin
173 for i in *-BOOT; do 
174   install -s $i $RPM_BUILD_ROOT/usr/lib/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) /usr/lib/bootdisk/sbin/*
234 %endif
This page took 0.074286 seconds and 4 git commands to generate.