Add macro make_build in spec file
[platform/upstream/dosfstools.git] / packaging / dosfstools.spec
1 Name:           dosfstools
2 Version:        4.2
3 Release:        0
4 License:        GPL-3.0+
5 Group:          Base/File Systems
6 Summary:        Utilities for Making and Checking MS-DOS FAT File Systems on Linux
7 URL:            http://www.daniel-baumann.ch/software/dosfstools/
8 Source:         %{name}-%{version}.orig.tar.xz
9 Source1001:     dosfstools.manifest
10
11 %description
12 The dosfstools package includes the mkdosfs and dosfsck utilities,
13 which respectively make and check MS-DOS FAT file systems on hard
14 drives or on floppies.
15
16 %prep
17 %setup -q
18 cp %{SOURCE1001} .
19
20 %build
21 %configure \
22     --enable-compat-symlinks
23 %{__make} %{?_smp_mflags} CFLAGS=" -fPIC -pie %{optflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
24
25 %install
26 make install DESTDIR=%{buildroot} PREFIX=%{_prefix}
27
28 rm -rf %{buildroot}%{_datadir}/doc/dosfstools
29
30
31 %docs_package
32
33 %files
34 %manifest %{name}.manifest
35 %license COPYING
36 %manifest dosfstools.manifest
37 %{_sbindir}/dosfsck
38 %{_sbindir}/dosfslabel
39 %{_sbindir}/fatlabel
40 %{_sbindir}/fsck.fat
41 %{_sbindir}/fsck.msdos
42 %{_sbindir}/fsck.vfat
43 %{_sbindir}/mkdosfs
44 %{_sbindir}/mkfs.fat
45 %{_sbindir}/mkfs.msdos
46 %{_sbindir}/mkfs.vfat
47 %{_mandir}/man8/dosfsck.8%{?ext_man}
48 %{_mandir}/man8/dosfslabel.8%{?ext_man}
49 %{_mandir}/man8/fatlabel.8%{?ext_man}
50 %{_mandir}/man8/fsck.fat.8%{?ext_man}
51 %{_mandir}/man8/fsck.msdos.8%{?ext_man}
52 %{_mandir}/man8/fsck.vfat.8%{?ext_man}
53 %{_mandir}/man8/mkdosfs.8%{?ext_man}
54 %{_mandir}/man8/mkfs.fat.8%{?ext_man}
55 %{_mandir}/man8/mkfs.msdos.8%{?ext_man}
56 %{_mandir}/man8/mkfs.vfat.8%{?ext_man}