1 Summary: File archiver with highest compression ratio
2 Summary(pl.UTF-8): Paker plików z najwyższym stopniem kompresji
7 Group: Applications/Archiving
8 Source0: http://downloads.sourceforge.net/p7zip/%{name}_%{version}_src_all.tar.bz2
9 # Source0-md5: a0128d661cfe7cc8c121e73519c54fbf
10 Patch0: 05-hardening-flags.patch
11 Patch1: 14-Fix-g++-warning.patch
12 Patch2: CVE-2016-9296.patch
13 Patch3: CVE-2017-17969.patch
14 Patch4: gcc10-conversion.patch
15 URL: http://p7zip.sourceforge.net/
16 BuildRequires: libstdc++-devel
17 BuildRequires: sed >= 4.0
18 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
21 7-Zip is a file archiver with highest compression ratio.
23 The main features of 7z format:
25 - High compression ratio
26 - Strong AES-256 encryption
27 - Ability of using any compression, conversion or encryption method
28 - Supporting files with sizes up to 16000000000 GB
31 - Archive headers compressing
33 %description -l pl.UTF-8
34 7-Zip jest pakerem plików z najwyższym stopniem kompresji.
36 Główne cechy formatu 7z:
37 - otwarta architektura,
38 - wysoki stopień kompresji,
39 - silne kodowanie AES-256,
40 - możliwość używania dowolnych metod kodowania, kompresji, konwersji,
41 - obsługa bardzo dużych plików (powyżej 16000000000 GB),
42 - obsługa nazw plików w unikodzie,
43 - kompresja upakowana,
44 - kompresja nagłówków archiwum.
47 Summary: Standalone 7zip executable
48 Summary(pl.UTF-8): Samodzielny plik wykonywalny 7zip
49 Group: Applications/Archiving
50 Obsoletes: p7zip-stand-alone
52 %description standalone
53 Standalone version of 7zip. It handles less archive formats than
54 plugin capable version.
56 %description standalone -l pl.UTF-8
57 Samodzielna wersja 7zip-a. Obsługuje mniej formatów archiwów niż
58 wersja obsługująca wtyczki.
61 %setup -q -n %{name}_%{version}
68 %{__sed} -i -e 's/ -s / /' makefile.machine
70 find . -name '*.cpp' -exec %{__sed} -i -e 's@getenv("P7ZIP_HOME_DIR")@"%{_libdir}/%{name}/"@g' {} \;
73 #%%{__make} all2 test \
75 CC="%{__cc} \$(ALLFLAGS)" \
76 CXX="%{__cxx} \$(ALLFLAGS)" \
77 CPPFLAGS="%{rpmcppflags}" \
78 LDFLAGS="%{rpmldflags}" \
79 OPTFLAGS="%{rpmcxxflags}"
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{Codecs,Formats},%{_mandir}/man1}
85 install bin/{7z,7za} $RPM_BUILD_ROOT%{_bindir}
86 install bin/7z.so $RPM_BUILD_ROOT%{_libdir}/%{name}
87 install bin/Codecs/* $RPM_BUILD_ROOT%{_libdir}/%{name}/Codecs
88 install bin/7zCon.sfx $RPM_BUILD_ROOT%{_libdir}/%{name}
90 install man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1
91 # 7zr is not packaged (subset of 7za functionality)
92 %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/7zr.1
95 rm -rf $RPM_BUILD_ROOT
98 %defattr(644,root,root,755)
99 %doc DOC/{MANUAL,{7zFormat,License,Methods,lzma,readme,src-history}.txt} ChangeLog README TODO
100 # devel: %doc DOC/7zC.txt
101 %attr(755,root,root) %{_bindir}/7z
102 %dir %{_libdir}/%{name}
103 %attr(755,root,root) %{_libdir}/%{name}/7zCon.sfx
104 %attr(755,root,root) %{_libdir}/%{name}/7z.so
105 %dir %{_libdir}/%{name}/Codecs
106 %attr(755,root,root) %{_libdir}/%{name}/Codecs/*
107 %{_mandir}/man1/7z.1*
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_bindir}/7za
112 %{_mandir}/man1/7za.1*