]> git.pld-linux.org Git - packages/e2fsprogs.git/blob - e2fsprogs.spec
- rel 3
[packages/e2fsprogs.git] / e2fsprogs.spec
1 # conditional build:
2 # _without_embed - don't build uClibc version
3 Summary:        Tools for the second extended (ext2) filesystem
4 Summary(de):    Tools für das zweite erweiterte (ext2) Dateisystem
5 Summary(fr):    Outils pour le système de fichiers ext2
6 Summary(pl):    Narzêdzia do systemu plikowego ext2
7 Summary(tr):    ext2 dosya sistemi için araçlar
8 Name:           e2fsprogs
9 Version:        1.25
10 Release:        3
11 License:        GPL
12 Group:          Applications/System
13 Group(de):      Applikationen/System
14 Group(pl):      Aplikacje/System
15 Source0:        ftp://download.sourceforge.net/pub/sourceforge/e2fsprogs/%{name}-%{version}.tar.gz
16 Source1:        http://opensource.captech.com/e2compr/ftp/e2compr-0.4.texinfo.gz
17 Source2:        %{name}-non-english-man-pages.tar.bz2
18 Patch0:         %{name}-info.patch
19 Patch1:         e2compr-info.patch
20 Patch2:         %{name}-mountlabel3.patch
21 URL:            http://e2fsprogs.sourceforge.net/
22 PreReq:         /sbin/ldconfig
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24 BuildRequires:  automake
25 BuildRequires:  autoconf
26 BuildRequires:  gettext-devel
27 %if %{!?_without_embed:1}%{?_without_embed:0}
28 BuildRequires:  uClibc-devel
29 BuildRequires:  uClibc-static
30 %endif
31
32 %define embed_path      /usr/lib/embed
33 %define embed_cc        %{_arch}-uclibc-cc
34 %define embed_cflags    %{rpmcflags} -Os
35 %define uclibc_prefix   /usr/%{_arch}-linux-uclibc
36
37 %description
38 The e2fsprogs package contains a number of utilities for creating,
39 checking, modifying and correcting any inconsistencies in second
40 extended (ext2) filesystems. E2fsprogs contains e2fsck (used to repair
41 filesystem inconsistencies after an unclean shutdown), mke2fs (used to
42 initialize a partition to contain an empty ext2 filesystem), debugfs
43 (used to examine the internal structure of a filesystem, to manually
44 repair a corrupted filesystem or to create test cases for e2fsck),
45 tune2fs (used to modify filesystem parameters) and most of the other
46 core ext2fs filesystem utilities.
47
48 %description -l de
49 Dieses Paket enthält eine Auswahl an Utilities zum Erstellen, Prüfen
50 und zur Instandsetzung von ext2-Dateisystemen.
51
52 %description -l fr
53 Ce package contient de nombreux utilitaires pour créer, vérifier, et
54 réparer les systèmes de fichiers ext2.
55
56 %description -l pl
57 Pakiet ten zawiera narzêdzia do tworzenia, sprawdzania i naprawiania
58 wolumenów dyskowych z systemem plikowym ext2. E2fsprogs zawiera e2fsck
59 (u¿ywany do naprawiania niespójno¶ci w systemie plikowym po
60 niepoprawnym zamkniêciu systemu), mke2fs (u¿ywany do inicjacji
61 wolumenów ext2), debugfs (¿ywany do sprawdzania wewnêtrznej struktury
62 wolumenów ext2, a tak¿e do rêcznego naprawiania b³êdów), tune2fs
63 (u¿ywany do modyfikacji parametrów wolumenów ext2) i kilka innych
64 narzêdzi do ext2.
65
66 %description -l tr
67 Bu paket, ext2 dosya sistemlerini yaratmak, onarmak, kontrol etmek ve
68 bazý parametrelerini deðiþtirmek için gerekli yazýlýmlarý içerir.
69
70 %package devel
71 Summary:        e2fs header files
72 Summary(de):    Header-Dateien für eine e2fs
73 Summary(pl):    Pliki nag³ówkowe do bibliotek e2fs
74 Group:          Development/Libraries
75 Group(de):      Entwicklung/Libraries
76 Group(fr):      Development/Librairies
77 Group(pl):      Programowanie/Biblioteki
78 Requires:       %{name} = %{version}
79
80 %description devel
81 E2fsprogs-devel contand header files and documentation needed to
82 develop second extended (ext2) filesystem-specific programs.
83
84 %description -l de devel
85 Header-Dateien, die zur Entwicklung von ext2-Dateisystemspezifischen
86 Programmen erforderlich sind.
87
88 %description -l pl devel
89 Pliki nag³ówkowe i dokumentacja niezbêdne do tworzenia programów
90 obs³uguj±cych e2fs.
91
92 %package static
93 Summary:        e2fs static libraries
94 Summary(de):    e2fs statische Libraries
95 Summary(pl):    Biblioteki statyczne do obs³ugi e2fs
96 Group:          Development/Libraries
97 Group(de):      Entwicklung/Libraries
98 Group(fr):      Development/Librairies
99 Group(pl):      Programowanie/Biblioteki
100 Requires:       %{name}-devel = %{version}
101
102 %description static
103 Static libraries files needed to develop ext2 filesystem-specific
104 programs statically linked with e2progs libs.
105
106 %description -l de static
107 Libraries zur Entwicklung von ext2-Dateisystemspezifischen Programmen
108 erforderlich sind.
109
110 %description -l pl static
111 Biblioteki statyczne do ob³ugi e2fs niezbêdne do kompilacji programów
112 statycznie skonsolidowanych (linkowanych) z bibliotekami do e2fs.
113
114 %package embed
115 Summary:        e2fs for bootdisk
116 Group:          Applications/System
117 Group(de):      Applikationen/System
118 Group(pl):      Aplikacje/System
119
120 %description embed
121 E2fsprogs-devel contains header files and documentation needed to
122 develop second extended (ext2) filesystem-specific programs. This
123 package is for bootdisk.
124
125 %package devel-embed
126 Summary:        e2fs header files for bootdisk
127 Summary(de):    Header-Dateien für eine e2fs
128 Summary(pl):    Pliki nag³ówkowe do bibliotek e2fs
129 Group:          Development/Libraries
130 Group(de):      Entwicklung/Libraries
131 Group(fr):      Development/Librairies
132 Group(pl):      Programowanie/Biblioteki
133
134 %description devel-embed
135 E2fsprogs-devel contand header files and documentation needed to
136 develop second extended (ext2) filesystem-specific programs.
137 Botodisk version.
138
139 %prep
140 %setup  -q
141 %patch0 -p1
142 gunzip < %{SOURCE1} > doc/e2compr.texinfo
143 patch -s -p1 < %{PATCH1}
144 %patch2 -p1
145
146 %build
147 chmod u+w configure aclocal.m4
148 gettextize --copy --force
149 aclocal
150 autoconf
151
152 %if %{!?_without_embed:1}%{?_without_embed:0}
153 %configure \
154         --with-root-prefix=/ \
155         --disable-nls \
156         --enable-compression \
157         --enable-all-static \
158         --disable-fsck \
159         --with-cc=%{embed_cc} \
160         --with-ccopts="%{embed_cflags}"
161 %{__make} libs
162 %{__make} progs
163 mv e2fsck/e2fsck e2fsck-embed-shared
164 for i in badblocks mke2fs; do 
165         mv misc/$i $i-embed-shared
166 done
167 %{__make} progs ALL_LDFLAGS="-static"
168 mv e2fsck/e2fsck e2fsck-embed-static
169 for i in badblocks mke2fs; do 
170         mv misc/$i $i-embed-static
171 done
172 mkdir embed-libs
173 cp lib/*.a embed-libs
174 %{__make} distclean
175 %endif
176
177 %configure \
178         --with-root-prefix=/ \
179         --enable-nls \
180         --enable-elf-shlibs \
181         --enable-compression \
182         %{?_without_static:--enable-dynamic-e2fsck} \
183         --enable-fsck
184
185 %{__make} libs progs docs
186 cd doc
187 makeinfo --no-split e2compr.texinfo 
188 cd ..
189
190 %install
191 rm -rf $RPM_BUILD_ROOT
192 export PATH=/sbin:$PATH
193
194 %{__make} install       DESTDIR=$RPM_BUILD_ROOT
195 %{__make} install-libs  DESTDIR=$RPM_BUILD_ROOT
196 %{__make} -C po install DESTDIR=$RPM_BUILD_ROOT
197
198 %if %{!?_without_embed:1}%{?_without_embed:0}
199 install -d $RPM_BUILD_ROOT%{embed_path}/{shared,static}
200 install -d $RPM_BUILD_ROOT%{uclibc_prefix}/{include,lib}
201 for i in badblocks mke2fs e2fsck; do 
202         install $i-embed-shared $RPM_BUILD_ROOT%{embed_path}/shared/$i
203         install $i-embed-static $RPM_BUILD_ROOT%{embed_path}/static/$i
204 done
205 cp -a $RPM_BUILD_ROOT%{_includedir}/* $RPM_BUILD_ROOT%{uclibc_prefix}/include
206 cp embed-libs/* $RPM_BUILD_ROOT%{uclibc_prefix}/lib
207 %endif
208
209 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext2
210 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext3
211 ln -sf mke2fs $RPM_BUILD_ROOT/sbin/mkfs.ext2
212
213 install doc/e2compr.info $RPM_BUILD_ROOT%{_infodir}
214
215 bzip2 -dc %{SOURCE2} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
216
217 %find_lang %{name}
218
219 %post   
220 /sbin/ldconfig
221 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
222
223 %postun 
224 /sbin/ldconfig
225 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
226
227 %post  devel
228 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
229
230 %postun devel
231 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
232
233 %clean
234 rm -rf $RPM_BUILD_ROOT
235
236 %files -f %{name}.lang
237 %defattr(644,root,root,755)
238 %attr(755,root,root) /sbin/*
239 %attr(755,root,root) %{_sbindir}/*
240 %attr(755,root,root) %{_bindir}/*
241 %attr(755,root,root) /lib/lib*.so.*
242 %{_mandir}/man[18]/*
243 %lang(fi) %{_mandir}/fi/man[18]/*
244 %lang(fr) %{_mandir}/fr/man[18]/*
245 %lang(hu) %{_mandir}/hu/man[18]/*
246 %lang(it) %{_mandir}/it/man[18]/*
247 %lang(ja) %{_mandir}/ja/man[18]/*
248 %lang(ko) %{_mandir}/ko/man[18]/*
249 %lang(pl) %{_mandir}/pl/man[18]/*
250 %{_datadir}/et
251 %{_datadir}/ss
252 %{_infodir}/e2compr.info*
253
254 %files devel
255 %defattr(644,root,root,755)
256 %doc README RELEASE-NOTES
257
258 %{_infodir}/libext2fs.info*
259 %{_mandir}/man3/*
260 %lang(ja) %{_mandir}/ja/man3/*
261 %{_includedir}/*
262
263 %attr(755,root,root) %{_libdir}/lib*.so
264
265 %files static
266 %defattr(644,root,root,755)
267 %{_libdir}/lib*.a
268
269 %if %{!?_without_embed:1}%{?_without_embed:0}
270 %files embed
271 %defattr(644,root,root,755)
272 %attr(755,root,root) %{embed_path}/*/*
273
274 %files devel-embed
275 %{uclibc_prefix}/include/*
276 %{uclibc_prefix}/lib/*
277 %endif
This page took 0.323521 seconds and 4 git commands to generate.