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