]> git.pld-linux.org Git - packages/e2fsprogs.git/blob - e2fsprogs.spec
- %desc
[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:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{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(es):      Desarrollo/Bibliotecas
77 Group(fr):      Development/Librairies
78 Group(pl):      Programowanie/Biblioteki
79 Group(pt_BR):   Desenvolvimento/Bibliotecas
80 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
81 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
82 Requires:       %{name} = %{version}
83
84 %description devel
85 E2fsprogs-devel contains header files and documentation needed to
86 develop second extended (ext2) filesystem-specific programs.
87
88 %description devel -l de
89 Header-Dateien, die zur Entwicklung von ext2-Dateisystemspezifischen
90 Programmen erforderlich sind.
91
92 %description devel -l pl
93 Pliki nag³ówkowe i dokumentacja niezbêdne do tworzenia programów
94 obs³uguj±cych e2fs.
95
96 %package static
97 Summary:        e2fs static libraries
98 Summary(de):    e2fs statische Libraries
99 Summary(pl):    Biblioteki statyczne do obs³ugi e2fs
100 Group:          Development/Libraries
101 Group(de):      Entwicklung/Libraries
102 Group(es):      Desarrollo/Bibliotecas
103 Group(fr):      Development/Librairies
104 Group(pl):      Programowanie/Biblioteki
105 Group(pt_BR):   Desenvolvimento/Bibliotecas
106 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
107 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
108 Requires:       %{name}-devel = %{version}
109
110 %description static
111 Static libraries files needed to develop ext2 filesystem-specific
112 programs statically linked with e2progs libs.
113
114 %description static -l de
115 Libraries zur Entwicklung von ext2-Dateisystemspezifischen Programmen
116 erforderlich sind.
117
118 %description static -l pl
119 Biblioteki statyczne do ob³ugi e2fs niezbêdne do kompilacji programów
120 statycznie skonsolidowanych (linkowanych) z bibliotekami do e2fs.
121
122 %package embed
123 Summary:        e2fs for bootdisk
124 Summary(pl):    e2fs na bootkietkê
125 Group:          Applications/System
126 Group(de):      Applikationen/System
127 Group(pl):      Aplikacje/System
128
129 %description embed
130 The e2fsprogs package contains a number of utilities for creating,
131 checking, modifying and correcting any inconsistencies in second
132 extended (ext2) filesystems. Bootdisk version.
133
134 %description embed -l pl
135 Pakiet ten zawiera narzêdzia do tworzenia, sprawdzania i naprawiania
136 wolumenów dyskowych z systemem plikowym ext2. Wersja przeznaczona na
137 bootkietkê.
138
139 %package devel-embed
140 Summary:        e2fs header files for bootdisk
141 Summary(de):    Header-Dateien für eine e2fs
142 Summary(pl):    Pliki nag³ówkowe do bibliotek e2fs
143 Group:          Development/Libraries
144 Group(de):      Entwicklung/Libraries
145 Group(es):      Desarrollo/Bibliotecas
146 Group(fr):      Development/Librairies
147 Group(pl):      Programowanie/Biblioteki
148 Group(pt_BR):   Desenvolvimento/Bibliotecas
149 Group(ru):      òÁÚÒÁÂÏÔËÁ/âÉÂÌÉÏÔÅËÉ
150 Group(uk):      òÏÚÒÏÂËÁ/â¦Â̦ÏÔÅËÉ
151
152 %description devel-embed
153 e2fsprogs-devel-embed contand header files and documentation needed to
154 develop second extended (ext2) filesystem-specific programs. Bootdisk
155 version.
156
157 %description devel-embed -l pl
158 Pakiet e2fsprogs-devel-embed zawiera pliki nag³ówkowe oraz
159 dokumentacjê niezbêdne do tworzenia oprogramowania zwi±zanego z
160 systemem plików ext2. Wersja przeznaczona na bootkietkê.
161
162 %prep
163 %setup  -q
164 %patch0 -p1
165 gunzip < %{SOURCE1} > doc/e2compr.texinfo
166 patch -s -p1 < %{PATCH1}
167 %patch2 -p1
168
169 %build
170 chmod u+w configure aclocal.m4
171 gettextize --copy --force
172 aclocal
173 autoconf
174
175 %if %{!?_without_embed:1}%{?_without_embed:0}
176 %configure \
177         --with-root-prefix=/ \
178         --disable-nls \
179         --enable-compression \
180         --enable-all-static \
181         --disable-fsck \
182         --with-cc=%{embed_cc} \
183         --with-ccopts="%{embed_cflags}"
184 %{__make} libs
185 %{__make} progs
186 mv e2fsck/e2fsck e2fsck-embed-shared
187 for i in badblocks mke2fs; do
188         mv misc/$i $i-embed-shared
189 done
190 %{__make} progs ALL_LDFLAGS="-static"
191 mv e2fsck/e2fsck e2fsck-embed-static
192 for i in badblocks mke2fs; do
193         mv misc/$i $i-embed-static
194 done
195 mkdir embed-libs
196 cp lib/*.a embed-libs
197 %{__make} distclean
198 %endif
199
200 %configure \
201         --with-root-prefix=/ \
202         --enable-nls \
203         --enable-elf-shlibs \
204         --enable-compression \
205         %{?_without_static:--enable-dynamic-e2fsck} \
206         --enable-fsck
207
208 %{__make} libs progs docs
209 cd doc
210 makeinfo --no-split e2compr.texinfo
211 cd ..
212
213 %install
214 rm -rf $RPM_BUILD_ROOT
215 export PATH=/sbin:$PATH
216
217 %{__make} install       DESTDIR=$RPM_BUILD_ROOT
218 %{__make} install-libs  DESTDIR=$RPM_BUILD_ROOT
219 %{__make} -C po install DESTDIR=$RPM_BUILD_ROOT
220
221 %if %{!?_without_embed:1}%{?_without_embed:0}
222 install -d $RPM_BUILD_ROOT%{embed_path}/{shared,static}
223 install -d $RPM_BUILD_ROOT%{uclibc_prefix}/{include,lib}
224 for i in badblocks mke2fs e2fsck; do
225         install $i-embed-shared $RPM_BUILD_ROOT%{embed_path}/shared/$i
226         install $i-embed-static $RPM_BUILD_ROOT%{embed_path}/static/$i
227 done
228 cp -a $RPM_BUILD_ROOT%{_includedir}/* $RPM_BUILD_ROOT%{uclibc_prefix}/include
229 cp embed-libs/* $RPM_BUILD_ROOT%{uclibc_prefix}/lib
230 %endif
231
232 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext2
233 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext3
234 ln -sf mke2fs $RPM_BUILD_ROOT/sbin/mkfs.ext2
235
236 install doc/e2compr.info $RPM_BUILD_ROOT%{_infodir}
237
238 bzip2 -dc %{SOURCE2} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
239
240 %find_lang %{name}
241
242 %post
243 /sbin/ldconfig
244 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
245
246 %postun
247 /sbin/ldconfig
248 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
249
250 %post devel
251 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
252
253 %postun devel
254 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
255
256 %clean
257 rm -rf $RPM_BUILD_ROOT
258
259 %files -f %{name}.lang
260 %defattr(644,root,root,755)
261 %attr(755,root,root) /sbin/*
262 %attr(755,root,root) %{_sbindir}/*
263 %attr(755,root,root) %{_bindir}/*
264 %attr(755,root,root) /lib/lib*.so.*
265 %{_mandir}/man[18]/*
266 %lang(fi) %{_mandir}/fi/man[18]/*
267 %lang(fr) %{_mandir}/fr/man[18]/*
268 %lang(hu) %{_mandir}/hu/man[18]/*
269 %lang(it) %{_mandir}/it/man[18]/*
270 %lang(ja) %{_mandir}/ja/man[18]/*
271 %lang(ko) %{_mandir}/ko/man[18]/*
272 %lang(pl) %{_mandir}/pl/man[18]/*
273 %{_datadir}/et
274 %{_datadir}/ss
275 %{_infodir}/e2compr.info*
276
277 %files devel
278 %defattr(644,root,root,755)
279 %doc README RELEASE-NOTES
280
281 %{_infodir}/libext2fs.info*
282 %{_mandir}/man3/*
283 %lang(ja) %{_mandir}/ja/man3/*
284 %{_includedir}/*
285
286 %attr(755,root,root) %{_libdir}/lib*.so
287
288 %files static
289 %defattr(644,root,root,755)
290 %{_libdir}/lib*.a
291
292 %if %{!?_without_embed:1}%{?_without_embed:0}
293 %files embed
294 %defattr(644,root,root,755)
295 %attr(755,root,root) %{embed_path}/*/*
296
297 %files devel-embed
298 %{uclibc_prefix}/include/*
299 %{uclibc_prefix}/lib/*
300 %endif
This page took 0.094626 seconds and 4 git commands to generate.