]> git.pld-linux.org Git - packages/p7zip.git/blob - p7zip.spec
- 4.39
[packages/p7zip.git] / p7zip.spec
1 Summary:        File archiver with highest compression ratio
2 Summary(pl):    Paker plików z najwy¿szym stopniem kompresji
3 Name:           p7zip
4 Version:        4.39
5 Release:        1
6 License:        LGPL
7 Group:          Applications/Archiving
8 Source0:        http://heanet.dl.sourceforge.net/p7zip/%{name}_%{version}_src_all.tar.bz2
9 # Source0-md5:  0e2e2d16fc48836093c47a04ac4b25ac
10 Patch0:         %{name}-opt.patch
11 URL:            http://p7zip.sourceforge.net/
12 BuildRequires:  libstdc++-devel >= 5:4.0
13 BuildRequires:  sed >= 4.0
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
17 7-Zip is a file archiver with highest compression ratio.
18
19 The main features of 7z format:
20 - Open architecture
21 - High compression ratio
22 - Strong AES-256 encryption
23 - Ability of using any compression, conversion or encryption method
24 - Supporting files with sizes up to 16000000000 GB
25 - Unicode file names
26 - Solid compressing
27 - Archive headers compressing
28
29 %description -l pl
30 7-Zip jest pakerem plików z najwy¿szym stopniem kompresji.
31
32 G³ówne cechy formatu 7z:
33 - otwarta architektura,
34 - wysoki stopieñ kompresji,
35 - silne kodowanie AES-256,
36 - mo¿liwo¶æ u¿ywania dowolnych metod kodowania, kompresji, konwersji,
37 - obs³uga bardzo du¿ych plików (powy¿ej 16000000000 GB),
38 - obs³uga nazw plików w unikodzie,
39 - kompresja upakowana,
40 - kompresja nag³ówków archiwum.
41
42 %package standalone
43 Summary:        Standalone 7zip executable
44 Summary(pl):    Samodzielny plik wykonywalny 7zip
45 Group:          Applications/Archiving
46 Obsoletes:      p7zip-stand-alone
47
48 %description standalone
49 Standalone version of 7zip. It handles less archive formats than
50 plugin capable version.
51
52 %description standalone -l pl
53 Samodzielna wersja 7zip-a. Obs³uguje mniej formatów archiwów ni¿
54 wersja obs³uguj±ca wtyczki.
55
56 %prep
57 %setup -q -n %{name}_%{version}
58 %patch0 -p1
59
60 cp -f makefile.linux_x86_ppc_alpha__gcc_4.X makefile.machine
61
62 %{__sed} -i "s@Formats@%{_libdir}/%{name}/&@" \
63         7zip/UI/Common/ArchiverInfo.cpp
64 %{__sed} -i 's,return GetBaseFolderPrefix.*,return TEXT("%{_libdir}/%{name}/Codecs/");,g' \
65         7zip/Archive/Common/CodecsPath.cpp
66
67 %build
68 %{__make} all2 \
69         _CC="%{__cc} %{rpmcflags}" \
70         _CXX="%{__cxx} %{rpmcxxflags}"
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{Codecs,Formats},%{_mandir}/man1}
75
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
79
80 install man1/7z* $RPM_BUILD_ROOT%{_mandir}/man1
81
82 %clean
83 rm -rf $RPM_BUILD_ROOT
84
85 %files
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/*
95 %{_mandir}/man1/7z.*
96
97 %files standalone
98 %defattr(644,root,root,755)
99 %attr(755,root,root) %{_bindir}/7za
100 %{_mandir}/man1/7za.*
This page took 0.073065 seconds and 4 git commands to generate.