]> git.pld-linux.org Git - packages/e2fsprogs.git/blob - e2fsprogs.spec
- --disable-fsck was there by accident, thnx wiget ;)
[packages/e2fsprogs.git] / e2fsprogs.spec
1 # conditional build
2 # --without nls
3 # --with allstatic
4 Summary:        Tools for the second extended (ext2) filesystem
5 Summary(de):    Tools für das zweite erweiterte (ext2) Dateisystem
6 Summary(fr):    Outils pour le système de fichiers ext2
7 Summary(pl):    Narzêdzia do systemu plikowego ext2
8 Summary(tr):    ext2 dosya sistemi için araçlar
9 Name:           e2fsprogs
10 Version:        1.25
11 Release:        4
12 License:        GPL
13 Group:          Applications/System
14 Source0:        ftp://download.sourceforge.net/pub/sourceforge/e2fsprogs/%{name}-%{version}.tar.gz
15 Source1:        http://opensource.captech.com/e2compr/ftp/e2compr-0.4.texinfo.gz
16 Source2:        http://www.mif.pg.gda.pl/homepages/ankry/man-PLD/%{name}-non-english-man-pages.tar.bz2
17 Patch0:         %{name}-info.patch
18 Patch1:         e2compr-info.patch
19 Patch2:         %{name}-mountlabel3.patch
20 URL:            http://e2fsprogs.sourceforge.net/
21 PreReq:         /sbin/ldconfig
22 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
23 BuildRequires:  automake
24 BuildRequires:  autoconf
25 BuildRequires:  gettext-devel
26 BuildRequires:  texinfo
27
28 %description
29 The e2fsprogs package contains a number of utilities for creating,
30 checking, modifying and correcting any inconsistencies in second
31 extended (ext2) filesystems. E2fsprogs contains e2fsck (used to repair
32 filesystem inconsistencies after an unclean shutdown), mke2fs (used to
33 initialize a partition to contain an empty ext2 filesystem), debugfs
34 (used to examine the internal structure of a filesystem, to manually
35 repair a corrupted filesystem or to create test cases for e2fsck),
36 tune2fs (used to modify filesystem parameters) and most of the other
37 core ext2fs filesystem utilities.
38
39 %description -l de
40 Dieses Paket enthält eine Auswahl an Utilities zum Erstellen, Prüfen
41 und zur Instandsetzung von ext2-Dateisystemen.
42
43 %description -l fr
44 Ce package contient de nombreux utilitaires pour créer, vérifier, et
45 réparer les systèmes de fichiers ext2.
46
47 %description -l pl
48 Pakiet ten zawiera narzêdzia do tworzenia, sprawdzania i naprawiania
49 wolumenów dyskowych z systemem plikowym ext2. E2fsprogs zawiera e2fsck
50 (u¿ywany do naprawiania niespójno¶ci w systemie plikowym po
51 niepoprawnym zamkniêciu systemu), mke2fs (u¿ywany do inicjacji
52 wolumenów ext2), debugfs (¿ywany do sprawdzania wewnêtrznej struktury
53 wolumenów ext2, a tak¿e do rêcznego naprawiania b³êdów), tune2fs
54 (u¿ywany do modyfikacji parametrów wolumenów ext2) i kilka innych
55 narzêdzi do ext2.
56
57 %description -l tr
58 Bu paket, ext2 dosya sistemlerini yaratmak, onarmak, kontrol etmek ve
59 bazý parametrelerini deðiþtirmek için gerekli yazýlýmlarý içerir.
60
61 %package devel
62 Summary:        e2fs header files
63 Summary(de):    Header-Dateien für eine e2fs
64 Summary(pl):    Pliki nag³ówkowe do bibliotek e2fs
65 Group:          Development/Libraries
66 Requires:       %{name} = %{version}
67
68 %description devel
69 E2fsprogs-devel contains header files and documentation needed to
70 develop second extended (ext2) filesystem-specific programs.
71
72 %description devel -l de
73 Header-Dateien, die zur Entwicklung von ext2-Dateisystemspezifischen
74 Programmen erforderlich sind.
75
76 %description devel -l pl
77 Pliki nag³ówkowe i dokumentacja niezbêdne do tworzenia programów
78 obs³uguj±cych e2fs.
79
80 %package static
81 Summary:        e2fs static libraries
82 Summary(de):    e2fs statische Libraries
83 Summary(pl):    Biblioteki statyczne do obs³ugi e2fs
84 Group:          Development/Libraries
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 static -l de
92 Libraries zur Entwicklung von ext2-Dateisystemspezifischen Programmen
93 erforderlich sind.
94
95 %description static -l pl
96 Biblioteki statyczne do ob³ugi e2fs niezbêdne do kompilacji programów
97 statycznie skonsolidowanych (linkowanych) z bibliotekami do e2fs.
98
99 %prep
100 %setup  -q
101 %patch0 -p1
102 gunzip < %{SOURCE1} > doc/e2compr.texinfo
103 patch -s -p1 < %{PATCH1}
104 %patch2 -p1
105
106 %build
107 chmod u+w configure aclocal.m4
108 gettextize --copy --force
109 aclocal
110 autoconf
111
112 %configure \
113         --with-root-prefix=/ \
114         %{!?_without_nls:--enable-nls} \
115         %{?_without_nls:--disable-nls} \
116         %{?_with_allstatic:--disable-elf-shlibs} \
117         %{!?_with_allstatic:--enable-elf-shlibs} \
118         --enable-compression \
119         %{?_without_static:--enable-dynamic-e2fsck} \
120         --enable-fsck
121
122 %{__make} libs progs docs LDFLAGS="%{rpmldflags}"
123 cd doc
124 makeinfo --no-split e2compr.texinfo
125 cd ..
126
127 %install
128 rm -rf $RPM_BUILD_ROOT
129 export PATH=/sbin:$PATH
130
131 %{__make} install       DESTDIR=$RPM_BUILD_ROOT
132 %{__make} install-libs  DESTDIR=$RPM_BUILD_ROOT
133 %{__make} -C po install DESTDIR=$RPM_BUILD_ROOT
134
135 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext2
136 ln -sf e2fsck $RPM_BUILD_ROOT/sbin/fsck.ext3
137 ln -sf mke2fs $RPM_BUILD_ROOT/sbin/mkfs.ext2
138
139 install doc/e2compr.info $RPM_BUILD_ROOT%{_infodir}
140
141 bzip2 -dc %{SOURCE2} | tar xf - -C $RPM_BUILD_ROOT%{_mandir}
142
143 %{!?_without_nls:%find_lang %{name}}
144
145 %post
146 /sbin/ldconfig
147 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
148
149 %postun
150 /sbin/ldconfig
151 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
152
153 %post devel
154 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
155
156 %postun devel
157 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
158
159 %clean
160 rm -rf $RPM_BUILD_ROOT
161
162 %files %{!?_without_nls:-f %{name}.lang}
163 %defattr(644,root,root,755)
164 %attr(755,root,root) /sbin/*
165 %attr(755,root,root) %{_sbindir}/*
166 %attr(755,root,root) %{_bindir}/*
167 %{!?_with_allstatic:%attr(755,root,root) /lib/lib*.so.*}
168 %{_mandir}/man[18]/*
169 %lang(fi) %{_mandir}/fi/man[18]/*
170 %lang(fr) %{_mandir}/fr/man[18]/*
171 %lang(hu) %{_mandir}/hu/man[18]/*
172 %lang(it) %{_mandir}/it/man[18]/*
173 %lang(ja) %{_mandir}/ja/man[18]/*
174 %lang(ko) %{_mandir}/ko/man[18]/*
175 %lang(pl) %{_mandir}/pl/man[18]/*
176 %{_datadir}/et
177 %{_datadir}/ss
178 %{_infodir}/e2compr.info*
179
180 %files devel
181 %defattr(644,root,root,755)
182 %doc README RELEASE-NOTES
183
184 %{_infodir}/libext2fs.info*
185 %{_mandir}/man3/*
186 %lang(ja) %{_mandir}/ja/man3/*
187 %{_includedir}/*
188
189 %{!?_with_allstatic:%attr(755,root,root) %{_libdir}/lib*.so}
190
191 %files static
192 %defattr(644,root,root,755)
193 %{_libdir}/lib*.a
This page took 0.046636 seconds and 4 git commands to generate.