This repository was archived by the owner on Aug 12, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathzip.spec
More file actions
97 lines (79 loc) · 2.4 KB
/
zip.spec
File metadata and controls
97 lines (79 loc) · 2.4 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
#
# This file is auto-generated. DO NOT EDIT
# Generated by: autospec.py
#
Name : zip
Version : 3.0
Release : 27
URL : https://sourceforge.net/projects/infozip/files/Zip%203.x%20%28latest%29/3.0/zip30.tar.gz
Source0 : https://sourceforge.net/projects/infozip/files/Zip%203.x%20%28latest%29/3.0/zip30.tar.gz
Summary : No detailed summary available
Group : Development/Tools
License : BSD-3-Clause
Requires: zip-bin = %{version}-%{release}
Requires: zip-license = %{version}-%{release}
Requires: zip-man = %{version}-%{release}
BuildRequires : bzip2-dev
Patch1: cflags.patch
Patch2: format.patch
Patch3: manpages.patch
%description
Zip 3.0 is the first Zip update adding large file support. For now Zip 2.3x
remains available and supported, but users should switch to this new release.
%package bin
Summary: bin components for the zip package.
Group: Binaries
Requires: zip-license = %{version}-%{release}
%description bin
bin components for the zip package.
%package license
Summary: license components for the zip package.
Group: Default
%description license
license components for the zip package.
%package man
Summary: man components for the zip package.
Group: Default
%description man
man components for the zip package.
%prep
%setup -q -n zip30
cd %{_builddir}/zip30
%patch1 -p1
%patch2 -p1
%patch3 -p1
%build
export http_proxy=http://127.0.0.1:9/
export https_proxy=http://127.0.0.1:9/
export no_proxy=localhost,127.0.0.1,0.0.0.0
export LANG=C.UTF-8
export SOURCE_DATE_EPOCH=1664893906
export GCC_IGNORE_WERROR=1
export CFLAGS="$CFLAGS -fno-lto "
export FCFLAGS="$FFLAGS -fno-lto "
export FFLAGS="$FFLAGS -fno-lto "
export CXXFLAGS="$CXXFLAGS -fno-lto "
make %{?_smp_mflags} CFLAGS="$CFLAGS" BIND="gcc $LDFLAGS" -f unix/Makefile generic_gcc
%install
export SOURCE_DATE_EPOCH=1664893906
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/package-licenses/zip
cp %{_builddir}/zip30/LICENSE %{buildroot}/usr/share/package-licenses/zip/b440a2eeacdbd257d99f253ac9a2127bc421c736 || :
%makeinstall -f unix/Makefile
%files
%defattr(-,root,root,-)
%files bin
%defattr(-,root,root,-)
/usr/bin/zip
/usr/bin/zipcloak
/usr/bin/zipnote
/usr/bin/zipsplit
%files license
%defattr(0644,root,root,0755)
/usr/share/package-licenses/zip/b440a2eeacdbd257d99f253ac9a2127bc421c736
%files man
%defattr(0644,root,root,0755)
/usr/share/man/man1/zip.1
/usr/share/man/man1/zipcloak.1
/usr/share/man/man1/zipnote.1
/usr/share/man/man1/zipsplit.1