]> git.pld-linux.org Git - SPECS.git/blob - p7zip.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / p7zip.spec
1 Summary:        File archiver with highest compression ratio
2 Summary(pl.UTF-8):      Paker plików z najwyższym stopniem kompresji
3 Name:           p7zip
4 Version:        16.02
5 Release:        2
6 License:        LGPL v2.1+
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)
19
20 %description
21 7-Zip is a file archiver with highest compression ratio.
22
23 The main features of 7z format:
24 - Open architecture
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
29 - Unicode file names
30 - Solid compressing
31 - Archive headers compressing
32
33 %description -l pl.UTF-8
34 7-Zip jest pakerem plików z najwyższym stopniem kompresji.
35
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.
45
46 %package standalone
47 Summary:        Standalone 7zip executable
48 Summary(pl.UTF-8):      Samodzielny plik wykonywalny 7zip
49 Group:          Applications/Archiving
50 Obsoletes:      p7zip-stand-alone
51
52 %description standalone
53 Standalone version of 7zip. It handles less archive formats than
54 plugin capable version.
55
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.
59
60 %prep
61 %setup -q -n %{name}_%{version}
62 %patch0 -p1
63 %patch1 -p1
64 %patch2 -p1
65 %patch3 -p1
66 %patch4 -p1
67
68 %{__sed} -i -e 's/ -s / /' makefile.machine
69
70 find . -name '*.cpp' -exec %{__sed} -i -e 's@getenv("P7ZIP_HOME_DIR")@"%{_libdir}/%{name}/"@g' {} \;
71
72 %build
73 #%%{__make} all2 test \
74 %{__make} all2 \
75         CC="%{__cc} \$(ALLFLAGS)" \
76         CXX="%{__cxx} \$(ALLFLAGS)" \
77         CPPFLAGS="%{rpmcppflags}" \
78         LDFLAGS="%{rpmldflags}" \
79         OPTFLAGS="%{rpmcxxflags}"
80
81 %install
82 rm -rf $RPM_BUILD_ROOT
83 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{Codecs,Formats},%{_mandir}/man1}
84
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}
89
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
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %files
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*
108
109 %files standalone
110 %defattr(644,root,root,755)
111 %attr(755,root,root) %{_bindir}/7za
112 %{_mandir}/man1/7za.1*
This page took 0.191832 seconds and 3 git commands to generate.