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