xref: /aosp_15_r20/external/e2fsprogs/e2fsprogs.spec (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Worker%define	_root_sbindir	/sbin
2*6a54128fSAndroid Build Coastguard Worker%define	_root_libdir	/%{_lib}
3*6a54128fSAndroid Build Coastguard Worker%define	_root_localedir	/usr/share/locale
4*6a54128fSAndroid Build Coastguard Worker%define	_root_etcdir	/etc
5*6a54128fSAndroid Build Coastguard Worker
6*6a54128fSAndroid Build Coastguard WorkerSummary: Utilities for managing ext2/ext3/ext4 filesystems
7*6a54128fSAndroid Build Coastguard WorkerName: e2fsprogs
8*6a54128fSAndroid Build Coastguard WorkerVersion: 1.46.6
9*6a54128fSAndroid Build Coastguard WorkerRelease: 0
10*6a54128fSAndroid Build Coastguard WorkerLicense: GPLv2
11*6a54128fSAndroid Build Coastguard WorkerGroup: System Environment/Base
12*6a54128fSAndroid Build Coastguard WorkerSource:  ftp://download.sourceforge.net/pub/sourceforge/e2fsprogs/e2fsprogs-%{version}.tar.gz
13*6a54128fSAndroid Build Coastguard WorkerUrl: http://e2fsprogs.sourceforge.net/
14*6a54128fSAndroid Build Coastguard WorkerPrereq: /sbin/ldconfig
15*6a54128fSAndroid Build Coastguard WorkerBuildRoot: %{_tmppath}/%{name}-root
16*6a54128fSAndroid Build Coastguard Worker
17*6a54128fSAndroid Build Coastguard Worker%description
18*6a54128fSAndroid Build Coastguard WorkerThe e2fsprogs package contains a number of utilities for creating,
19*6a54128fSAndroid Build Coastguard Workerchecking, modifying, and correcting any inconsistencies in ext2, ext3,
20*6a54128fSAndroid Build Coastguard Workerand ext4 filesystems.  E2fsprogs contains e2fsck (used to repair
21*6a54128fSAndroid Build Coastguard Workerfilesystem inconsistencies after an unclean shutdown), mke2fs (used to
22*6a54128fSAndroid Build Coastguard Workerinitialize a partition to contain an empty ext2 filesystem), debugfs
23*6a54128fSAndroid Build Coastguard Worker(used to examine the internal structure of a filesystem, to manually
24*6a54128fSAndroid Build Coastguard Workerrepair a corrupted filesystem or to create test cases for e2fsck),
25*6a54128fSAndroid Build Coastguard Workertune2fs (used to modify filesystem parameters), resize2fs to grow and
26*6a54128fSAndroid Build Coastguard Workershrink unmounted ext2 filesystems, and most of the other core ext2fs
27*6a54128fSAndroid Build Coastguard Workerfilesystem utilities.
28*6a54128fSAndroid Build Coastguard Worker
29*6a54128fSAndroid Build Coastguard WorkerYou should install the e2fsprogs package if you are using any ext2,
30*6a54128fSAndroid Build Coastguard Workerext3, or ext4 filesystems (if you're not sure, you probably should
31*6a54128fSAndroid Build Coastguard Workerinstall this package).  You may also need to install it (even if you
32*6a54128fSAndroid Build Coastguard Workerdon't use ext2/ext3/ext4) for the libuuid and libblkid libraries and
33*6a54128fSAndroid Build Coastguard Workerfsck tool that are included here.
34*6a54128fSAndroid Build Coastguard Worker
35*6a54128fSAndroid Build Coastguard Worker%package devel
36*6a54128fSAndroid Build Coastguard WorkerSummary: Ext2 filesystem-specific static libraries and headers.
37*6a54128fSAndroid Build Coastguard WorkerGroup: Development/Libraries
38*6a54128fSAndroid Build Coastguard WorkerRequires: e2fsprogs = %{version}
39*6a54128fSAndroid Build Coastguard WorkerPrereq: /sbin/install-info
40*6a54128fSAndroid Build Coastguard Worker
41*6a54128fSAndroid Build Coastguard Worker%description devel
42*6a54128fSAndroid Build Coastguard WorkerE2fsprogs-devel contains the libraries and header files needed to
43*6a54128fSAndroid Build Coastguard Workerdevelop ext2, ext3, or ext4 filesystem-specific programs.
44*6a54128fSAndroid Build Coastguard Worker
45*6a54128fSAndroid Build Coastguard WorkerYou should install e2fsprogs-devel if you want to develop
46*6a54128fSAndroid Build Coastguard Workerext2. ext3. or ext4 filesystem-specific programs.  If you install
47*6a54128fSAndroid Build Coastguard Workere2fsprogs-devel, you'll also want to install e2fsprogs.
48*6a54128fSAndroid Build Coastguard Worker
49*6a54128fSAndroid Build Coastguard Worker%package -n uuidd
50*6a54128fSAndroid Build Coastguard WorkerSummary: helper daemon to guarantee uniqueness of time-based UUIDs
51*6a54128fSAndroid Build Coastguard WorkerGroup: System Environment/Daemons
52*6a54128fSAndroid Build Coastguard WorkerLicense: GPLv2
53*6a54128fSAndroid Build Coastguard WorkerRequires: e2fsprogs = %{version}
54*6a54128fSAndroid Build Coastguard WorkerRequires(pre): shadow-utils
55*6a54128fSAndroid Build Coastguard Worker
56*6a54128fSAndroid Build Coastguard Worker%description -n uuidd
57*6a54128fSAndroid Build Coastguard WorkerThe uuidd package contains a userspace daemon (uuidd) which guarantees
58*6a54128fSAndroid Build Coastguard Workeruniqueness of time-based UUID generation even at very high rates on
59*6a54128fSAndroid Build Coastguard WorkerSMP systems.
60*6a54128fSAndroid Build Coastguard Worker
61*6a54128fSAndroid Build Coastguard Worker%prep
62*6a54128fSAndroid Build Coastguard Worker%setup
63*6a54128fSAndroid Build Coastguard Worker
64*6a54128fSAndroid Build Coastguard Worker%build
65*6a54128fSAndroid Build Coastguard Worker%configure --enable-elf-shlibs --enable-nls \
66*6a54128fSAndroid Build Coastguard Worker	%{?extra_config_flags:%extra_config_flags}
67*6a54128fSAndroid Build Coastguard Workermake
68*6a54128fSAndroid Build Coastguard Workermake check
69*6a54128fSAndroid Build Coastguard Worker
70*6a54128fSAndroid Build Coastguard Worker%install
71*6a54128fSAndroid Build Coastguard Workerrm -rf $RPM_BUILD_ROOT
72*6a54128fSAndroid Build Coastguard Workerexport PATH=/sbin:$PATH
73*6a54128fSAndroid Build Coastguard Workermake install install-libs DESTDIR="$RPM_BUILD_ROOT" \
74*6a54128fSAndroid Build Coastguard Worker	root_sbindir=%{_root_sbindir} root_libdir=%{_root_libdir}
75*6a54128fSAndroid Build Coastguard Worker/sbin/ldconfig -n ${RPM_BUILD_ROOT}%{_libdir}
76*6a54128fSAndroid Build Coastguard Worker
77*6a54128fSAndroid Build Coastguard Worker# Add a dir that uuidd needs that the Makefiles don't create
78*6a54128fSAndroid Build Coastguard Workerinstall -d $RPM_BUILD_ROOT/var/lib/libuuid
79*6a54128fSAndroid Build Coastguard Worker
80*6a54128fSAndroid Build Coastguard Worker%find_lang %{name}
81*6a54128fSAndroid Build Coastguard Worker
82*6a54128fSAndroid Build Coastguard Worker%clean
83*6a54128fSAndroid Build Coastguard Workerrm -rf $RPM_BUILD_ROOT
84*6a54128fSAndroid Build Coastguard Worker
85*6a54128fSAndroid Build Coastguard Worker%post -p /sbin/ldconfig
86*6a54128fSAndroid Build Coastguard Worker
87*6a54128fSAndroid Build Coastguard Worker%postun -p /sbin/ldconfig
88*6a54128fSAndroid Build Coastguard Worker
89*6a54128fSAndroid Build Coastguard Worker%post devel
90*6a54128fSAndroid Build Coastguard Workerif [ -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then
91*6a54128fSAndroid Build Coastguard Worker    /sbin/install-info %{_infodir}/libext2fs.info.gz %{_infodir}/dir
92*6a54128fSAndroid Build Coastguard Workerfi
93*6a54128fSAndroid Build Coastguard Workerexit 0
94*6a54128fSAndroid Build Coastguard Worker
95*6a54128fSAndroid Build Coastguard Worker%postun devel
96*6a54128fSAndroid Build Coastguard Workerif [ $1 = 0 -a -x /sbin/install-info -a -f %{_infodir}/libext2fs.info.gz ]; then
97*6a54128fSAndroid Build Coastguard Worker   /sbin/install-info --delete %{_infodir}/libext2fs.info.gz %{_infodir}/dir
98*6a54128fSAndroid Build Coastguard Workerfi
99*6a54128fSAndroid Build Coastguard Workerexit 0
100*6a54128fSAndroid Build Coastguard Worker
101*6a54128fSAndroid Build Coastguard Worker%pre -n uuidd
102*6a54128fSAndroid Build Coastguard Workergetent group uuidd >/dev/null || groupadd -r uuidd
103*6a54128fSAndroid Build Coastguard Workergetent passwd uuidd >/dev/null || \
104*6a54128fSAndroid Build Coastguard Workeruseradd -r -g uuidd -d /var/lib/libuuid -s /sbin/nologin \
105*6a54128fSAndroid Build Coastguard Worker    -c "UUID generator helper daemon" uuidd
106*6a54128fSAndroid Build Coastguard Workerexit 0
107*6a54128fSAndroid Build Coastguard Worker
108*6a54128fSAndroid Build Coastguard Worker%files -f %{name}.lang
109*6a54128fSAndroid Build Coastguard Worker%defattr(-,root,root)
110*6a54128fSAndroid Build Coastguard Worker%doc README RELEASE-NOTES
111*6a54128fSAndroid Build Coastguard Worker
112*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/badblocks
113*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/blkid
114*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/debugfs
115*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/dumpe2fs
116*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/e2fsck
117*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/e2image
118*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/e2label
119*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/e2mmpstatus
120*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/e2undo
121*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/findfs
122*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/fsck
123*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/fsck.ext2
124*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/fsck.ext3
125*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/fsck.ext4
126*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/fsck.ext4dev
127*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/logsave
128*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/mke2fs
129*6a54128fSAndroid Build Coastguard Worker%{_root_etcdir}/mke2fs.conf
130*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/mkfs.ext2
131*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/mkfs.ext3
132*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/mkfs.ext4
133*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/mkfs.ext4dev
134*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/resize2fs
135*6a54128fSAndroid Build Coastguard Worker%{_root_sbindir}/tune2fs
136*6a54128fSAndroid Build Coastguard Worker%{_sbindir}/filefrag
137*6a54128fSAndroid Build Coastguard Worker%{_sbindir}/mklost+found
138*6a54128fSAndroid Build Coastguard Worker%{_sbindir}/e2freefrag
139*6a54128fSAndroid Build Coastguard Worker
140*6a54128fSAndroid Build Coastguard Worker%{_root_libdir}/libblkid.so.*
141*6a54128fSAndroid Build Coastguard Worker%{_root_libdir}/libcom_err.so.*
142*6a54128fSAndroid Build Coastguard Worker%{_root_libdir}/libe2p.so.*
143*6a54128fSAndroid Build Coastguard Worker%{_root_libdir}/libext2fs.so.*
144*6a54128fSAndroid Build Coastguard Worker%{_root_libdir}/libss.so.*
145*6a54128fSAndroid Build Coastguard Worker%{_root_libdir}/libuuid.so.*
146*6a54128fSAndroid Build Coastguard Worker
147*6a54128fSAndroid Build Coastguard Worker%{_libdir}/e2initrd_helper
148*6a54128fSAndroid Build Coastguard Worker
149*6a54128fSAndroid Build Coastguard Worker%{_bindir}/chattr
150*6a54128fSAndroid Build Coastguard Worker%{_bindir}/lsattr
151*6a54128fSAndroid Build Coastguard Worker%{_bindir}/uuidgen
152*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man1/chattr.1*
153*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man1/lsattr.1*
154*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man1/uuidgen.1*
155*6a54128fSAndroid Build Coastguard Worker
156*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man5/e2fsck.conf.5*
157*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man5/mke2fs.conf.5*
158*6a54128fSAndroid Build Coastguard Worker
159*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/badblocks.8*
160*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/blkid.8*
161*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/debugfs.8*
162*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/dumpe2fs.8*
163*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/e2fsck.8*
164*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/findfs.8*
165*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/fsck.ext2.8*
166*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/fsck.ext3.8*
167*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/fsck.ext4.8*
168*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/fsck.ext4dev.8*
169*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/e2image.8*
170*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/e2label.8*
171*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/e2mmpstatus.8*
172*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/e2undo.8*
173*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/fsck.8*
174*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/logsave.8*
175*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/mke2fs.8*
176*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/mkfs.ext2.8*
177*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/mkfs.ext3.8*
178*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/mkfs.ext4.8*
179*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/mkfs.ext4dev.8*
180*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/mklost+found.8*
181*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/resize2fs.8*
182*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/tune2fs.8*
183*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/filefrag.8*
184*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/e2freefrag.8*
185*6a54128fSAndroid Build Coastguard Worker
186*6a54128fSAndroid Build Coastguard Worker%files devel
187*6a54128fSAndroid Build Coastguard Worker%defattr(-,root,root)
188*6a54128fSAndroid Build Coastguard Worker%{_infodir}/libext2fs.info*
189*6a54128fSAndroid Build Coastguard Worker%{_bindir}/compile_et
190*6a54128fSAndroid Build Coastguard Worker%{_bindir}/mk_cmds
191*6a54128fSAndroid Build Coastguard Worker
192*6a54128fSAndroid Build Coastguard Worker%{_libdir}/libblkid.a
193*6a54128fSAndroid Build Coastguard Worker%{_libdir}/libblkid.so
194*6a54128fSAndroid Build Coastguard Worker%{_libdir}/libcom_err.a
195*6a54128fSAndroid Build Coastguard Worker%{_libdir}/libcom_err.so
196*6a54128fSAndroid Build Coastguard Worker%{_libdir}/libe2p.a
197*6a54128fSAndroid Build Coastguard Worker%{_libdir}/libe2p.so
198*6a54128fSAndroid Build Coastguard Worker%{_libdir}/libext2fs.a
199*6a54128fSAndroid Build Coastguard Worker%{_libdir}/libext2fs.so
200*6a54128fSAndroid Build Coastguard Worker%{_libdir}/libss.a
201*6a54128fSAndroid Build Coastguard Worker%{_libdir}/libss.so
202*6a54128fSAndroid Build Coastguard Worker%{_libdir}/libuuid.a
203*6a54128fSAndroid Build Coastguard Worker%{_libdir}/libuuid.so
204*6a54128fSAndroid Build Coastguard Worker
205*6a54128fSAndroid Build Coastguard Worker%{_libdir}/pkgconfig/blkid.pc
206*6a54128fSAndroid Build Coastguard Worker%{_libdir}/pkgconfig/com_err.pc
207*6a54128fSAndroid Build Coastguard Worker%{_libdir}/pkgconfig/e2p.pc
208*6a54128fSAndroid Build Coastguard Worker%{_libdir}/pkgconfig/ext2fs.pc
209*6a54128fSAndroid Build Coastguard Worker%{_libdir}/pkgconfig/ss.pc
210*6a54128fSAndroid Build Coastguard Worker%{_libdir}/pkgconfig/uuid.pc
211*6a54128fSAndroid Build Coastguard Worker
212*6a54128fSAndroid Build Coastguard Worker%{_datadir}/et
213*6a54128fSAndroid Build Coastguard Worker%{_datadir}/ss
214*6a54128fSAndroid Build Coastguard Worker%{_includedir}/blkid
215*6a54128fSAndroid Build Coastguard Worker%{_includedir}/e2p
216*6a54128fSAndroid Build Coastguard Worker%{_includedir}/et
217*6a54128fSAndroid Build Coastguard Worker%{_includedir}/com_err.h
218*6a54128fSAndroid Build Coastguard Worker%{_includedir}/ext2fs
219*6a54128fSAndroid Build Coastguard Worker%{_includedir}/ss
220*6a54128fSAndroid Build Coastguard Worker%{_includedir}/uuid
221*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man1/compile_et.1*
222*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man1/mk_cmds.1*
223*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man3/com_err.3*
224*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man3/libblkid.3*
225*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man3/uuid.3*
226*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man3/uuid_clear.3*
227*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man3/uuid_compare.3*
228*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man3/uuid_copy.3*
229*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man3/uuid_generate.3*
230*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man3/uuid_generate_random.3*
231*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man3/uuid_generate_time.3*
232*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man3/uuid_is_null.3*
233*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man3/uuid_parse.3*
234*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man3/uuid_time.3*
235*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man3/uuid_unparse.3*
236*6a54128fSAndroid Build Coastguard Worker
237*6a54128fSAndroid Build Coastguard Worker%files -n uuidd
238*6a54128fSAndroid Build Coastguard Worker%defattr(-,root,root)
239*6a54128fSAndroid Build Coastguard Worker# if you want to run via init
240*6a54128fSAndroid Build Coastguard Worker# /etc/init.d/uuidd
241*6a54128fSAndroid Build Coastguard Worker%{_mandir}/man8/uuidd.8*
242*6a54128fSAndroid Build Coastguard Worker%attr(6755, uuidd, uuidd) %{_sbindir}/uuidd
243*6a54128fSAndroid Build Coastguard Worker%dir %attr(2775, uuidd, uuidd) /var/lib/libuuid
244*6a54128fSAndroid Build Coastguard Worker
245