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.tar.bz2
9 # Source0-md5: 980cff8a3357d3ab47527e24ef143e10
10 Patch0: %{name}-opt.patch
11 URL: http://sourceforge.net/projects/p7zip
12 BuildRequires: libstdc++-devel
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,
37 - Obs³uga nazw plików w unikodzie,
38 - Kompresja upakowana,
39 - Kompresja nag³ówków archiwum.
42 Summary: Stand-alone 7zip executable
43 Summary(pl): Samodzielny plik wykonywalny 7zip
44 Group: Applications/Archiving
46 %description stand-alone
47 Stand-alone version of 7zip. It handles less archive formats than
48 plugin capable version.
50 %description stand-alone -l pl
51 Samodzielna wersja 7zip-a. Obs³uguje mniej formatów archiw ni¿
52 wersja obs³uguj±ca wtyczki.
55 %setup -q -n %{name}_%{version}
58 # big vs little endian
60 cp -f makefile.linux_ppc makefile.machine
62 cp -f makefile.linux_x86 makefile.machine
66 sed -i -e "s@Formats@%{_libdir}/%{name}/&@" ArchiverInfo.cpp
67 cd ../../Archive/Common
68 sed -i -e "s@return GetBaseFolderPrefix() + TEXT(\"Codecs\\\\\\\\\");@return TEXT(\"%{_libdir}/%{name}/Codecs/\");@" CodecsPath.cpp
72 _CC="%{__cc} %{rpmcflags}" \
73 _CXX="%{__cxx} %{rpmcflags}"
76 rm -rf $RPM_BUILD_ROOT
77 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{Codecs,Formats}}
79 install bin/7z* $RPM_BUILD_ROOT%{_bindir}
80 install bin/Codecs/* $RPM_BUILD_ROOT%{_libdir}/%{name}/Codecs
81 install bin/Formats/* $RPM_BUILD_ROOT%{_libdir}/%{name}/Formats
84 rm -rf $RPM_BUILD_ROOT
87 %defattr(644,root,root,755)
88 %doc DOCS/{MANUAL,{7zFormat,Methods,history,lzma,readme}.txt} ChangeLog README TODO
89 %attr(755,root,root) %{_bindir}/7z
90 %attr(755,root,root) %{_bindir}/7zCon.sfx
91 %dir %{_libdir}/%{name}
92 %dir %{_libdir}/%{name}/Codecs
93 %attr(755,root,root) %{_libdir}/%{name}/Codecs/*
94 %dir %{_libdir}/%{name}/Formats
95 %attr(755,root,root) %{_libdir}/%{name}/Formats/*
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/7za