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