forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlibuuid.spec
60 lines (54 loc) · 1.79 KB
/
libuuid.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
### RPM external libuuid 2.22.2
Source: http://www.kernel.org/pub/linux/utils/util-linux/v2.22/util-linux-%{realversion}.tar.gz
Patch0: libuuid-2.22.2-disable-get_uuid_via_daemon
%define keep_archives true
%define islinux %(case %{cmsos} in (slc*|fc*) echo 1 ;; (*) echo 0 ;; esac)
%prep
%setup -n util-linux-%{realversion}
%patch0 -p1
%build
./configure $([ $(uname) == Darwin ] && echo --disable-shared) \
--libdir=%{i}/lib64 \
--prefix="%{i}" \
--build="%{_build}" \
--host=%{_host} \
--disable-silent-rules \
--disable-tls \
--disable-rpath \
--disable-libblkid \
--disable-libmount \
--disable-mount \
--disable-losetup \
--disable-fsck \
--disable-partx \
--disable-mountpoint \
--disable-fallocate \
--disable-unshare \
--disable-eject \
--disable-agetty \
--disable-cramfs \
--disable-wdctl \
--disable-switch_root \
--disable-pivot_root \
--disable-kill \
--disable-utmpdump \
--disable-rename \
--disable-login \
--disable-sulogin \
--disable-su \
--disable-schedutils \
--disable-wall \
--disable-makeinstall-setuid \
--without-ncurses \
--enable-libuuid
make %{makeprocesses} uuidd
%install
# There is no make install action for the libuuid libraries only
mkdir -p %{i}/lib64
cp -p %{_builddir}/util-linux-%{realversion}/.libs/libuuid.a* %{i}/lib64
%if %islinux
cp -p %{_builddir}/util-linux-%{realversion}/.libs/libuuid.so* %{i}/lib64
%endif
mkdir -p %{i}/include
make install-uuidincHEADERS
%define drop_files %{i}/man