]> git.pld-linux.org Git - packages/e2fsprogs.git/blob - e2fsprogs.spec
- BOOT mostly finished
[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-static-fsck \
126         --enable-static-mk2fs \
127         --enable-all-static \
128         --enable-fsck
129
130
131 # some problems compiling with uClibc
132 #%{__make} libs progs \
133 #       ALL_LDFLAGS="-nostdlib -s" \
134 #       CFLAGS="-I%{_libdir}/bootdisk%{_includedir}" \
135 #       LDLIBS="%{_libdir}/bootdisk%{_libdir}/crt0.o %{_libdir}/bootdisk%{_libdir}/libc.a -lgcc"
136
137 %{__make} libs progs ALL_LDFLAGS="-static -s"
138
139 mv e2fsck/e2fsck e2fsck-BOOT
140 for i in badblocks mke2fs; do 
141         mv misc/$i $i-BOOT
142 done
143
144 %{__make} clean
145 %endif
146
147 %configure \
148         --with-root-prefix=/ \
149         --enable-nls \
150         --enable-elf-shlibs \
151         --enable-compression \
152         %{?bcond_off_static:--enable-dynamic-e2fsck} \
153         --enable-fsck
154
155
156
157 %{__make} libs progs docs
158 cd doc
159 makeinfo --no-split e2compr.texinfo 
160 cd ..
161
162
163 %install
164 rm -rf $RPM_BUILD_ROOT
165 export PATH=/sbin:$PATH
166
167 %if %{?BOOT:1}%{!?BOOT:0}
168 install -d $RPM_BUILD_ROOT/usr/lib/bootdisk/sbin
169 for i in *-BOOT; do 
170   install -s $i $RPM_BUILD_ROOT/usr/lib/bootdisk/sbin/`basename $i -BOOT`
171 done
172 %endif
173
174 %{__make} install DESTDIR=$RPM_BUILD_ROOT
175 %{__make} install-libs DESTDIR=$RPM_BUILD_ROOT
176
177 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext2
178 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext3
179 ln -sf mke2fs $RPM_BUILD_ROOT/sbin/mkfs.ext2
180
181
182 install doc/e2compr.info $RPM_BUILD_ROOT%{_infodir}
183
184 %post   
185 /sbin/ldconfig
186 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
187
188 %postun 
189 /sbin/ldconfig
190 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
191
192 %post  devel
193 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
194
195 %postun devel
196 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
197
198 %clean
199 rm -rf $RPM_BUILD_ROOT
200
201 %files
202 %defattr(644,root,root,755)
203 %attr(755,root,root) /sbin/*
204 %attr(755,root,root) %{_sbindir}/*
205 %attr(755,root,root) %{_bindir}/*
206 %attr(755,root,root) /lib/lib*.so.*
207 %{_mandir}/man[18]/*
208 %{_datadir}/et
209 %{_datadir}/ss
210 %{_infodir}/e2compr.info*
211
212 %files devel
213 %defattr(644,root,root,755)
214 %doc README RELEASE-NOTES
215
216 %{_infodir}/libext2fs.info*
217 %{_mandir}/man3/*
218 %{_includedir}/*
219
220 %attr(755,root,root) %{_libdir}/lib*.so
221
222 %files static
223 %defattr(644,root,root,755)
224 %{_libdir}/lib*.a
225
226 %if %{?BOOT:1}%{!?BOOT:0}
227 %files BOOT
228 %defattr(644,root,root,755)
229 %attr(755,root,root) /usr/lib/bootdisk/sbin/*
230 %endif
This page took 0.058008 seconds and 4 git commands to generate.