-
Notifications
You must be signed in to change notification settings - Fork 38
Expand file tree
/
Copy pathcfbuild-zlib.spec
More file actions
77 lines (54 loc) · 1.32 KB
/
cfbuild-zlib.spec
File metadata and controls
77 lines (54 loc) · 1.32 KB
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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
Summary: CFEngine Build Automation -- zlib
Name: cfbuild-zlib
Version: %{version}
Release: 1
Source0: zlib-1.3.2.tar.gz
License: MIT
Group: Other
Url: https://cfengine.com
BuildRoot: %{_topdir}/BUILD/%{name}-%{version}-%{release}-buildroot
AutoReqProv: no
%define prefix %{buildprefix}
%prep
mkdir -p %{_builddir}
%setup -q -n zlib-1.3.2
%build
if [ -z $MAKE ]; then
MAKE_PATH=`which make`
export MAKE=$MAKE_PATH
fi
./configure --prefix=%{prefix}
$MAKE
# $MAKE check doesn't work on AIX, see CFE-4092 for details
# %if %{?with_testsuite:1}%{!?with_testsuite:0}
# $MAKE check
# %endif
%install
rm -rf ${RPM_BUILD_ROOT}
$MAKE install prefix=${RPM_BUILD_ROOT}%{prefix}
rm -f ${RPM_BUILD_ROOT}%{prefix}/lib/libz.a
rm -rf ${RPM_BUILD_ROOT}%{prefix}/share/man
rmdir ${RPM_BUILD_ROOT}%{prefix}/share
%clean
rm -rf $RPM_BUILD_ROOT
%package devel
Summary: CFEngine Build Automation -- zlib -- development files
Group: Other
AutoReqProv: no
%description
CFEngine Build Automation -- zlib
%description devel
CFEngine Build Automation -- zlib -- development files
%files
%defattr(-,root,root)
%dir %{prefix}/lib
%{prefix}/lib/libz.so
%{prefix}/lib/libz.so.1
%{prefix}/lib/libz.so.1.3.2
%files devel
%defattr(-,root,root)
%dir %{prefix}/include
%{prefix}/include/*.h
%dir %{prefix}/lib/pkgconfig
%{prefix}/lib/pkgconfig/zlib.pc
%changelog