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