]> git.pld-linux.org Git - packages/e2fsprogs.git/blob - e2fsprogs.spec
- release 2: fixed info patch - removed double @dircategory entry.
[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:        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 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 %package BOOT
101 Summary:        e2fs for bootdisk
102 Group:          Applications/System
103 Group(de):      Applikationen/System
104 Group(pl):      Aplikacje/System
105
106 %description BOOT
107 E2fsprogs-devel contand header files and documentation needed to
108 develop second extended (ext2) filesystem-specific programs. Thios package
109 is for bootdisk.
110
111 %prep
112 %setup  -q
113 %patch0 -p1
114
115 gunzip < %{SOURCE1} > doc/e2compr.texinfo
116
117 %build
118 autoconf
119
120 %if %{?BOOT:1}%{!?BOOT:0}
121
122 %configure \
123         --with-root-prefix=/ \
124         --disable-nls \
125         --enable-compression \
126         --enable-all-static \
127         --disable-fsck \
128         --enable-static-e2fsck \
129
130 # some problems compiling with uClibc
131 #%{__make} libs progs \
132 #       ALL_LDFLAGS="-nostdlib -s" \
133 #       CFLAGS="-I%{_libdir}/bootdisk%{_includedir}" \
134 #       LDLIBS="%{_libdir}/bootdisk%{_libdir}/crt0.o %{_libdir}/bootdisk%{_libdir}/libc.a -lgcc"
135
136 %{__make} libs
137 #%{__make} progs ALL_LDFLAGS="-nostdlib -s" LDLIBS="%{_libdir}/libc.a"
138 %{__make} progs ALL_LDFLAGS="-static -s" \
139 %ifarch %{ix86}
140 XTRA_CFLAGS="-m386"
141 %else
142 XTRA_CFLAGS=""
143 %endif
144
145 mv e2fsck/e2fsck e2fsck-BOOT
146 for i in badblocks mke2fs; do 
147         mv misc/$i $i-BOOT
148 done
149
150 %{__make} distclean
151 %endif
152
153 %configure \
154         --with-root-prefix=/ \
155         --enable-nls \
156         --enable-elf-shlibs \
157         --enable-compression \
158         %{?_without_static:--enable-dynamic-e2fsck} \
159         --enable-fsck
160
161
162
163 %{__make} libs progs docs
164 cd doc
165 makeinfo --no-split e2compr.texinfo 
166 cd ..
167
168
169 %install
170 rm -rf $RPM_BUILD_ROOT
171 export PATH=/sbin:$PATH
172
173 %if %{?BOOT:1}%{!?BOOT:0}
174 install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin
175 for i in *-BOOT; do 
176   install -s $i $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin/`basename $i -BOOT`
177 done
178 %endif
179
180 %{__make} install DESTDIR=$RPM_BUILD_ROOT
181 %{__make} install-libs DESTDIR=$RPM_BUILD_ROOT
182
183 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext2
184 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext3
185 ln -sf mke2fs $RPM_BUILD_ROOT/sbin/mkfs.ext2
186
187
188 install doc/e2compr.info $RPM_BUILD_ROOT%{_infodir}
189
190 %post   
191 /sbin/ldconfig
192 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
193
194 %postun 
195 /sbin/ldconfig
196 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
197
198 %post  devel
199 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
200
201 %postun devel
202 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
203
204 %clean
205 rm -rf $RPM_BUILD_ROOT
206
207 %files
208 %defattr(644,root,root,755)
209 %attr(755,root,root) /sbin/*
210 %attr(755,root,root) %{_sbindir}/*
211 %attr(755,root,root) %{_bindir}/*
212 %attr(755,root,root) /lib/lib*.so.*
213 %{_mandir}/man[18]/*
214 %{_datadir}/et
215 %{_datadir}/ss
216 %{_infodir}/e2compr.info*
217
218 %files devel
219 %defattr(644,root,root,755)
220 %doc README RELEASE-NOTES
221
222 %{_infodir}/libext2fs.info*
223 %{_mandir}/man3/*
224 %{_includedir}/*
225
226 %attr(755,root,root) %{_libdir}/lib*.so
227
228 %files static
229 %defattr(644,root,root,755)
230 %{_libdir}/lib*.a
231
232 %if %{?BOOT:1}%{!?BOOT:0}
233 %files BOOT
234 %defattr(644,root,root,755)
235 %attr(755,root,root) %{_libdir}/bootdisk/sbin/*
236 %endif
This page took 0.081402 seconds and 4 git commands to generate.