]>
Commit | Line | Data |
---|---|---|
466873f5 | 1 | Summary: File archiver with highest compression ratio |
0021ec91 | 2 | Summary(pl.UTF-8): Paker plików z najwyższym stopniem kompresji |
466873f5 | 3 | Name: p7zip |
f2df0111 JB |
4 | Version: 16.02 |
5 | Release: 1 | |
1872f928 | 6 | License: LGPL v2.1+ |
466873f5 | 7 | Group: Applications/Archiving |
88b85818 | 8 | Source0: http://downloads.sourceforge.net/p7zip/%{name}_%{version}_src_all.tar.bz2 |
f2df0111 | 9 | # Source0-md5: a0128d661cfe7cc8c121e73519c54fbf |
6530315d | 10 | URL: http://p7zip.sourceforge.net/ |
683c7f81 | 11 | BuildRequires: libstdc++-devel |
254e1c81 | 12 | BuildRequires: sed >= 4.0 |
466873f5 | 13 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
14 | ||
15 | %description | |
16 | 7-Zip is a file archiver with highest compression ratio. | |
17 | ||
18 | The main features of 7z format: | |
19 | - Open architecture | |
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 | |
24 | - Unicode file names | |
25 | - Solid compressing | |
26 | - Archive headers compressing | |
27 | ||
d9d10b97 JR |
28 | %description -l pl.UTF-8 |
29 | 7-Zip jest pakerem plików z najwyższym stopniem kompresji. | |
466873f5 | 30 | |
d9d10b97 | 31 | Główne cechy formatu 7z: |
6530315d | 32 | - otwarta architektura, |
d9d10b97 | 33 | - wysoki stopień kompresji, |
6530315d | 34 | - silne kodowanie AES-256, |
d9d10b97 JR |
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, | |
6530315d | 38 | - kompresja upakowana, |
d9d10b97 | 39 | - kompresja nagłówków archiwum. |
466873f5 | 40 | |
3a6193a6 ER |
41 | %package standalone |
42 | Summary: Standalone 7zip executable | |
0021ec91 | 43 | Summary(pl.UTF-8): Samodzielny plik wykonywalny 7zip |
7af867b5 | 44 | Group: Applications/Archiving |
ab48ff36 | 45 | Obsoletes: p7zip-stand-alone |
7af867b5 | 46 | |
3a6193a6 ER |
47 | %description standalone |
48 | Standalone version of 7zip. It handles less archive formats than | |
7af867b5 | 49 | plugin capable version. |
50 | ||
d9d10b97 JR |
51 | %description standalone -l pl.UTF-8 |
52 | Samodzielna wersja 7zip-a. Obsługuje mniej formatów archiwów niż | |
53 | wersja obsługująca wtyczki. | |
7af867b5 | 54 | |
466873f5 | 55 | %prep |
7af867b5 | 56 | %setup -q -n %{name}_%{version} |
7af867b5 | 57 | |
5f033234 | 58 | %{__sed} -i -e 's/ -s / /' makefile.machine |
878a1f4b | 59 | |
563d5697 | 60 | find . -name '*.cpp' -exec %{__sed} -i -e 's@getenv("P7ZIP_HOME_DIR")@"%{_libdir}/%{name}/"@g' {} \; |
466873f5 | 61 | |
62 | %build | |
88b85818 | 63 | #%%{__make} all2 test \ |
64 | %{__make} all2 \ | |
5f033234 JB |
65 | CC="%{__cc} \$(ALLFLAGS)" \ |
66 | CXX="%{__cxx} \$(ALLFLAGS)" \ | |
ee8d97b5 | 67 | LDFLAGS="%{rpmldflags}" \ |
683c7f81 | 68 | OPTFLAGS="%{rpmcxxflags}" |
466873f5 | 69 | |
70 | %install | |
71 | rm -rf $RPM_BUILD_ROOT | |
226ab9a8 | 72 | install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{Codecs,Formats},%{_mandir}/man1} |
466873f5 | 73 | |
5fb535a2 | 74 | install bin/{7z,7za} $RPM_BUILD_ROOT%{_bindir} |
5a1c7572 | 75 | install bin/7z.so $RPM_BUILD_ROOT%{_libdir}/%{name} |
7af867b5 | 76 | install bin/Codecs/* $RPM_BUILD_ROOT%{_libdir}/%{name}/Codecs |
5fb535a2 | 77 | install bin/7zCon.sfx $RPM_BUILD_ROOT%{_libdir}/%{name} |
466873f5 | 78 | |
f2df0111 JB |
79 | install man1/*.1 $RPM_BUILD_ROOT%{_mandir}/man1 |
80 | # 7zr is not packaged (subset of 7za functionality) | |
81 | %{__rm} $RPM_BUILD_ROOT%{_mandir}/man1/7zr.1 | |
226ab9a8 | 82 | |
466873f5 | 83 | %clean |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %files | |
87 | %defattr(644,root,root,755) | |
f2df0111 JB |
88 | %doc DOC/{MANUAL,{7zFormat,License,Methods,lzma,readme,src-history}.txt} ChangeLog README TODO |
89 | # devel: %doc DOC/7zC.txt | |
7af867b5 | 90 | %attr(755,root,root) %{_bindir}/7z |
91 | %dir %{_libdir}/%{name} | |
5fb535a2 | 92 | %attr(755,root,root) %{_libdir}/%{name}/7zCon.sfx |
5a1c7572 | 93 | %attr(755,root,root) %{_libdir}/%{name}/7z.so |
7af867b5 | 94 | %dir %{_libdir}/%{name}/Codecs |
95 | %attr(755,root,root) %{_libdir}/%{name}/Codecs/* | |
1872f928 | 96 | %{_mandir}/man1/7z.1* |
7af867b5 | 97 | |
3a6193a6 | 98 | %files standalone |
7af867b5 | 99 | %defattr(644,root,root,755) |
100 | %attr(755,root,root) %{_bindir}/7za | |
1872f928 | 101 | %{_mandir}/man1/7za.1* |