]> git.pld-linux.org Git - packages/e2fsprogs.git/blob - e2fsprogs.spec
- use macros in %{pre,post}{,un}
[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:        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 URL:            http://e2fsprogs.sourceforge.net/
17 PreReq:         /sbin/ldconfig
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19 BuildRequires:  automake
20 BuildRequires:  autoconf
21 BuildRequires:  gettext-devel
22 %if %{?BOOT:1}%{!?BOOT:0}
23 BuildRequires:  glibc-static
24 %endif
25
26 %description
27 The e2fsprogs package contains a number of utilities for creating,
28 checking, modifying and correcting any inconsistencies in second
29 extended (ext2) filesystems. E2fsprogs contains e2fsck (used to repair
30 filesystem inconsistencies after an unclean shutdown), mke2fs (used to
31 initialize a partition to contain an empty ext2 filesystem), debugfs
32 (used to examine the internal structure of a filesystem, to manually
33 repair a corrupted filesystem or to create test cases for e2fsck),
34 tune2fs (used to modify filesystem parameters) and most of the other
35 core ext2fs filesystem utilities.
36
37 %description -l de
38 Dieses Paket enthält eine Auswahl an Utilities zum Erstellen, Prüfen
39 und zur Instandsetzung von ext2-Dateisystemen.
40
41 %description -l fr
42 Ce package contient de nombreux utilitaires pour créer, vérifier, et
43 réparer les systèmes de fichiers ext2.
44
45 %description -l pl
46 Pakiet ten zawiera narzêdzia do tworzenia, sprawdzania i naprawiania
47 wolumenów dyskowych z systemem plikowym ext2. E2fsprogs zawiera e2fsck
48 (u¿ywany do naprawiania niespójno¶ci w systemie plikowym po
49 nipoprawnym zamkniêciu ststemu), mke2fs (u¿ywany do inicjacji
50 wolumenów ext2), debugfs (¿ywany do sprawdzania wewnêtrznej struktóry
51 wolumenów ext2, a tak¿e do recznego naprawiania b³êdów), tune2fs
52 (u¿ywany do modyfikacji parametrów eolumenów ext2) i kilka innych
53 narzêdzi do ext2.
54
55 %description -l tr
56 Bu paket, ext2 dosya sistemlerini yaratmak, onarmak, kontrol etmek ve
57 bazý parametrelerini deðiþtirmek için gerekli yazýlýmlarý içerir.
58
59 %package devel
60 Summary:        e2fs header files
61 Summary(de):    Header-Dateien für eine e2fs
62 Summary(pl):    Pliki nag³ówkowe do bibliotek e2fs
63 Group:          Development/Libraries
64 Group(de):      Entwicklung/Libraries
65 Group(fr):      Development/Librairies
66 Group(pl):      Programowanie/Biblioteki
67 Requires:       %{name} = %{version}
68
69 %description devel
70 E2fsprogs-devel contand header files and documentation needed to
71 develop second extended (ext2) filesystem-specific programs.
72
73 %description -l de devel
74 Header-Dateien, die zur Entwicklung von ext2-Dateisystemspezifischen
75 Programmen erforderlich sind.
76
77 %description -l pl devel
78 Pliki nag³ówkowe i dokumentacja niezbêdne do tworzenia programów
79 obs³ugukj±cych e2fs.
80
81 %package static
82 Summary:        e2fs static libraries
83 Summary(de):    e2fs statische Libraries
84 Summary(pl):    Biblioteki statyczne do obs³ugi e2fs
85 Group:          Development/Libraries
86 Group(de):      Entwicklung/Libraries
87 Group(fr):      Development/Librairies
88 Group(pl):      Programowanie/Biblioteki
89 Requires:       %{name}-devel = %{version}
90
91 %description static
92 Static libraries files needed to develop ext2 filesystem-specific
93 programs statically linked with e2progs libs.
94
95 %description -l de static
96 Libraries zur Entwicklung von ext2-Dateisystemspezifischen Programmen
97 erforderlich sind.
98
99 %description -l pl static
100 Biblioteki statyczne do ob³ugi e2fs niezêbdne do kompilacji programów
101 statycznie skonsolidowanych (likowanych) z bibliotekami do e2fs.
102
103 %package BOOT
104 Summary:        e2fs for bootdisk
105 Group:          Applications/System
106 Group(de):      Applikationen/System
107 Group(pl):      Aplikacje/System
108
109 %description BOOT
110 E2fsprogs-devel contand header files and documentation needed to
111 develop second extended (ext2) filesystem-specific programs. Thios
112 package is for bootdisk.
113
114 %prep
115 %setup  -q
116 %patch0 -p1
117 gunzip < %{SOURCE1} > doc/e2compr.texinfo
118
119 %build
120 chmod u+w configure aclocal.m4
121 gettextize --copy --force
122 aclocal
123 autoconf
124
125 %if %{?BOOT:1}%{!?BOOT:0}
126
127 %configure \
128         --with-root-prefix=/ \
129         --disable-nls \
130         --enable-compression \
131         --enable-all-static \
132         --disable-fsck \
133         --enable-static-e2fsck \
134
135 # some problems compiling with uClibc
136 #%{__make} libs progs \
137 #       ALL_LDFLAGS="-nostdlib -s" \
138 #       CFLAGS="-I%{_libdir}/bootdisk%{_includedir}" \
139 #       LDLIBS="%{_libdir}/bootdisk%{_libdir}/crt0.o %{_libdir}/bootdisk%{_libdir}/libc.a -lgcc"
140
141 %{__make} libs
142 #%{__make} progs ALL_LDFLAGS="-nostdlib -s" LDLIBS="%{_libdir}/libc.a"
143 %{__make} progs ALL_LDFLAGS="-static -s" \
144 %ifarch %{ix86}
145 XTRA_CFLAGS="-m386"
146 %else
147 XTRA_CFLAGS=""
148 %endif
149
150 mv e2fsck/e2fsck e2fsck-BOOT
151 for i in badblocks mke2fs; do 
152         mv misc/$i $i-BOOT
153 done
154
155 %{__make} distclean
156 %endif
157
158 %configure \
159         --with-root-prefix=/ \
160         --enable-nls \
161         --enable-elf-shlibs \
162         --enable-compression \
163         %{?_without_static:--enable-dynamic-e2fsck} \
164         --enable-fsck
165
166 %{__make} libs progs docs
167 cd doc
168 makeinfo --no-split e2compr.texinfo 
169 cd ..
170
171 %install
172 rm -rf $RPM_BUILD_ROOT
173 export PATH=/sbin:$PATH
174
175 %if %{?BOOT:1}%{!?BOOT:0}
176 install -d $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin
177 for i in *-BOOT; do 
178   install -s $i $RPM_BUILD_ROOT%{_libdir}/bootdisk/sbin/`basename $i -BOOT`
179 done
180 %endif
181
182 %{__make} install       DESTDIR=$RPM_BUILD_ROOT
183 %{__make} install-libs  DESTDIR=$RPM_BUILD_ROOT
184 %{__make} -C po install DESTDIR=$RPM_BUILD_ROOT
185
186 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext2
187 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext3
188 ln -sf mke2fs $RPM_BUILD_ROOT/sbin/mkfs.ext2
189
190 install doc/e2compr.info $RPM_BUILD_ROOT%{_infodir}
191
192 %find_lang %{name}
193
194 %post   
195 /sbin/ldconfig
196 %fix_info_dir
197
198 %postun 
199 /sbin/ldconfig
200 %fix_info_dir
201
202 %post  devel
203 %fix_info_dir
204
205 %postun devel
206 %fix_info_dir
207
208 %clean
209 rm -rf $RPM_BUILD_ROOT
210
211 %files -f %{name}.lang
212 %defattr(644,root,root,755)
213 %attr(755,root,root) /sbin/*
214 %attr(755,root,root) %{_sbindir}/*
215 %attr(755,root,root) %{_bindir}/*
216 %attr(755,root,root) /lib/lib*.so.*
217 %{_mandir}/man[18]/*
218 %{_datadir}/et
219 %{_datadir}/ss
220 %{_infodir}/e2compr.info*
221
222 %files devel
223 %defattr(644,root,root,755)
224 %doc README RELEASE-NOTES
225
226 %{_infodir}/libext2fs.info*
227 %{_mandir}/man3/*
228 %{_includedir}/*
229
230 %attr(755,root,root) %{_libdir}/lib*.so
231
232 %files static
233 %defattr(644,root,root,755)
234 %{_libdir}/lib*.a
235
236 %if %{?BOOT:1}%{!?BOOT:0}
237 %files BOOT
238 %defattr(644,root,root,755)
239 %attr(755,root,root) %{_libdir}/bootdisk/sbin/*
240 %endif
This page took 0.0575 seconds and 4 git commands to generate.