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