/
p7zip.spec
46 lines (32 loc) · 1008 Bytes
/
p7zip.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
Name: p7zip
Version: 17.05
Release: 0
Summary: 7-zip file compression program
License: LGPL-2.1-or-later
Group: Productivity/Archiving/Compression
URL: https://github.com/p7zip-project/p7zip
%define PREFIX /usr/local
%define templist %{_tempplace}/tmp_list
%define finallist %{_tempplace}/entire_list
%description
p7zip is a quick port of 7z.exe and 7za.exe (command line version of
7zip, see www.7-zip.org) for Unix. 7-Zip is a file archiver with
highest compression ratio. Since 4.10, p7zip (like 7-zip) supports
little-endian and big-endian machines.
%build
pushd %{_makedir}
N_PROCS=`cat /proc/cpuinfo | grep processor | wc -l`
make -j $N_PROCS 7z 7zr 7za
popd
%install
pushd %{_makedir}
make DEST_DIR=%{buildroot} install
popd
pushd %{buildroot}
find . -type d -name p7zip > %{templist}
find . -type f >> %{templist}
# remove the starting dot
cat %{templist} | cut -d . -f 2- > %{finallist}
popd
%files -f %{finallist}
%changelog