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