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