1 Summary: File archiver with highest compression ratio
2 Summary(pl): Paker plików z najwy¿szym stopniem kompresji
7 Group: Applications/Archiving
8 Source0: http://dl.sourceforge.net/p7zip/%{name}_%{version}_src_all.tar.bz2
9 # Source0-md5: a5475fdfdde39dd3f8dae20efc479cb9
10 URL: http://p7zip.sourceforge.net/
11 BuildRequires: libstdc++-devel >= 5:4.0
12 BuildRequires: sed >= 4.0
13 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
16 7-Zip is a file archiver with highest compression ratio.
18 The main features of 7z format:
20 - High compression ratio
21 - Strong AES-256 encryption
22 - Ability of using any compression, conversion or encryption method
23 - Supporting files with sizes up to 16000000000 GB
26 - Archive headers compressing
29 7-Zip jest pakerem plików z najwy¿szym stopniem kompresji.
31 G³ówne cechy formatu 7z:
32 - otwarta architektura,
33 - wysoki stopieñ kompresji,
34 - silne kodowanie AES-256,
35 - mo¿liwo¶æ u¿ywania dowolnych metod kodowania, kompresji, konwersji,
36 - obs³uga bardzo du¿ych plików (powy¿ej 16000000000 GB),
37 - obs³uga nazw plików w unikodzie,
38 - kompresja upakowana,
39 - kompresja nag³ówków archiwum.
42 Summary: Standalone 7zip executable
43 Summary(pl): Samodzielny plik wykonywalny 7zip
44 Group: Applications/Archiving
45 Obsoletes: p7zip-stand-alone
47 %description standalone
48 Standalone version of 7zip. It handles less archive formats than
49 plugin capable version.
51 %description standalone -l pl
52 Samodzielna wersja 7zip-a. Obs³uguje mniej formatów archiwów ni¿
53 wersja obs³uguj±ca wtyczki.
56 %setup -q -n %{name}_%{version}
58 cp -f makefile.linux_x86_ppc_alpha__gcc_4.X makefile.machine
59 %{__sed} -i -e 's/ -s / /' makefile.machine
61 %{__sed} -i "s@Formats@%{_libdir}/%{name}/&@" \
62 7zip/UI/Common/ArchiverInfo.cpp
63 %{__sed} -i 's,return GetBaseFolderPrefix.*,return TEXT("%{_libdir}/%{name}/Codecs/");,g' \
64 7zip/Archive/Common/CodecsPath.cpp
68 CC="%{__cc} \$(ALLFLAGS)" \
69 CXX="%{__cxx} \$(ALLFLAGS)" \
70 OPTFLAGS="%{rpmcflags}"
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{Codecs,Formats},%{_mandir}/man1}
76 install bin/7z* $RPM_BUILD_ROOT%{_bindir}
77 install bin/Codecs/* $RPM_BUILD_ROOT%{_libdir}/%{name}/Codecs
78 install bin/Formats/* $RPM_BUILD_ROOT%{_libdir}/%{name}/Formats
80 install man1/7z* $RPM_BUILD_ROOT%{_mandir}/man1
83 rm -rf $RPM_BUILD_ROOT
86 %defattr(644,root,root,755)
87 %doc DOCS/{MANUAL,{7zFormat,Methods,history,lzma,readme}.txt} ChangeLog README TODO
88 %attr(755,root,root) %{_bindir}/7z
89 %attr(755,root,root) %{_bindir}/7zCon.sfx
90 %dir %{_libdir}/%{name}
91 %dir %{_libdir}/%{name}/Codecs
92 %attr(755,root,root) %{_libdir}/%{name}/Codecs/*
93 %dir %{_libdir}/%{name}/Formats
94 %attr(755,root,root) %{_libdir}/%{name}/Formats/*
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/7za
100 %{_mandir}/man1/7za.*