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