forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzlib.spec
29 lines (24 loc) · 800 Bytes
/
zlib.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
### RPM external zlib 1.2.11
%ifarch x86_64
%define git_repo cms-externals
%define git_branch cms/v%{realversion}
%define git_commit 822f7f5a8c57802faf8bbfe16266be02eff8c2e2
%else
%define git_repo madler
%define git_branch master
%define git_commit v%{realversion}
%endif
Source0: git://github.com/%{git_repo}/zlib.git?obj=%{git_branch}/%{git_commit}&export=zlib-%{realversion}&output=/zlib-%{realversion}.tgz
%prep
%setup -n zlib-%{realversion}
%build
CONF_FLAGS="-fPIC -O3 -DUSE_MMAP -DUNALIGNED_OK -D_LARGEFILE64_SOURCE=1"
%ifarch x86_64
CONF_FLAGS="${CONF_FLAGS} -msse3"
%endif
CFLAGS="${CONF_FLAGS}" ./configure --prefix=%{i}
make %{makeprocesses}
# Strip libraries, we are not going to debug them.
%define strip_files %{i}/lib
# Look up documentation online.
%define drop_files %{i}/share