]> git.pld-linux.org Git - packages/e2fsprogs.git/blob - e2fsprogs.spec
- updated to 1.25 and removed obsoleted ac250 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.25
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 Patch1:         e2compr-info.patch
17 Patch2:         %{name}-mountlabel3.patch
18 URL:            http://e2fsprogs.sourceforge.net/
19 PreReq:         /sbin/ldconfig
20 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 BuildRequires:  automake
22 BuildRequires:  autoconf
23 BuildRequires:  gettext-devel
24 %if %{?BOOT:1}%{!?BOOT:0}
25 BuildRequires:  glibc-static
26 %endif
27
28 %description
29 The e2fsprogs package contains a number of utilities for creating,
30 checking, modifying and correcting any inconsistencies in second
31 extended (ext2) filesystems. E2fsprogs contains e2fsck (used to repair
32 filesystem inconsistencies after an unclean shutdown), mke2fs (used to
33 initialize a partition to contain an empty ext2 filesystem), debugfs
34 (used to examine the internal structure of a filesystem, to manually
35 repair a corrupted filesystem or to create test cases for e2fsck),
36 tune2fs (used to modify filesystem parameters) and most of the other
37 core ext2fs filesystem utilities.
38
39 %description -l de
40 Dieses Paket enthält eine Auswahl an Utilities zum Erstellen, Prüfen
41 und zur Instandsetzung von ext2-Dateisystemen.
42
43 %description -l fr
44 Ce package contient de nombreux utilitaires pour créer, vérifier, et
45 réparer les systèmes de fichiers ext2.
46
47 %description -l pl
48 Pakiet ten zawiera narzêdzia do tworzenia, sprawdzania i naprawiania
49 wolumenów dyskowych z systemem plikowym ext2. E2fsprogs zawiera e2fsck
50 (u¿ywany do naprawiania niespójno¶ci w systemie plikowym po
51 niepoprawnym zamkniêciu systemu), mke2fs (u¿ywany do inicjacji
52 wolumenów ext2), debugfs (¿ywany do sprawdzania wewnêtrznej struktury
53 wolumenów ext2, a tak¿e do rêcznego naprawiania b³êdów), tune2fs
54 (u¿ywany do modyfikacji parametrów wolumenów ext2) i kilka innych
55 narzêdzi do ext2.
56
57 %description -l tr
58 Bu paket, ext2 dosya sistemlerini yaratmak, onarmak, kontrol etmek ve
59 bazý parametrelerini deðiþtirmek için gerekli yazýlýmlarý içerir.
60
61 %package devel
62 Summary:        e2fs header files
63 Summary(de):    Header-Dateien für eine e2fs
64 Summary(pl):    Pliki nag³ówkowe do bibliotek e2fs
65 Group:          Development/Libraries
66 Group(de):      Entwicklung/Libraries
67 Group(fr):      Development/Librairies
68 Group(pl):      Programowanie/Biblioteki
69 Requires:       %{name} = %{version}
70
71 %description devel
72 E2fsprogs-devel contand header files and documentation needed to
73 develop second extended (ext2) filesystem-specific programs.
74
75 %description -l de devel
76 Header-Dateien, die zur Entwicklung von ext2-Dateisystemspezifischen
77 Programmen erforderlich sind.
78
79 %description -l pl devel
80 Pliki nag³ówkowe i dokumentacja niezbêdne do tworzenia programów
81 obs³uguj±cych e2fs.
82
83 %package static
84 Summary:        e2fs static libraries
85 Summary(de):    e2fs statische Libraries
86 Summary(pl):    Biblioteki statyczne do obs³ugi e2fs
87 Group:          Development/Libraries
88 Group(de):      Entwicklung/Libraries
89 Group(fr):      Development/Librairies
90 Group(pl):      Programowanie/Biblioteki
91 Requires:       %{name}-devel = %{version}
92
93 %description static
94 Static libraries files needed to develop ext2 filesystem-specific
95 programs statically linked with e2progs libs.
96
97 %description -l de static
98 Libraries zur Entwicklung von ext2-Dateisystemspezifischen Programmen
99 erforderlich sind.
100
101 %description -l pl static
102 Biblioteki statyczne do ob³ugi e2fs niezbêdne do kompilacji programów
103 statycznie skonsolidowanych (linkowanych) z bibliotekami do e2fs.
104
105 %if %{?BOOT:1}%{!?BOOT:0}
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 contains header files and documentation needed to
114 develop second extended (ext2) filesystem-specific programs. This
115 package is for bootdisk.
116 %endif
117
118 %prep
119 %setup  -q
120 %patch0 -p1
121 gunzip < %{SOURCE1} > doc/e2compr.texinfo
122 patch -s -p1 < %{PATCH1}
123 %patch2 -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.041223 seconds and 4 git commands to generate.