]> git.pld-linux.org Git - packages/p7zip.git/blob - p7zip.spec
- up to 9.04
[packages/p7zip.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:        9.04
5 Release:        1
6 License:        LGPL v2.1+
7 Group:          Applications/Archiving
8 Source0:        http://dl.sourceforge.net/p7zip/%{name}_%{version}_src_all.tar.bz2
9 # Source0-md5:  9194ebf9a2b3735d236aed001de5f6f8
10 URL:            http://p7zip.sourceforge.net/
11 BuildRequires:  sed >= 4.0
12 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
13
14 %description
15 7-Zip is a file archiver with highest compression ratio.
16
17 The main features of 7z format:
18 - Open architecture
19 - High compression ratio
20 - Strong AES-256 encryption
21 - Ability of using any compression, conversion or encryption method
22 - Supporting files with sizes up to 16000000000 GB
23 - Unicode file names
24 - Solid compressing
25 - Archive headers compressing
26
27 %description -l pl.UTF-8
28 7-Zip jest pakerem plików z najwyższym stopniem kompresji.
29
30 Główne cechy formatu 7z:
31 - otwarta architektura,
32 - wysoki stopień kompresji,
33 - silne kodowanie AES-256,
34 - możliwość używania dowolnych metod kodowania, kompresji, konwersji,
35 - obsługa bardzo dużych plików (powyżej 16000000000 GB),
36 - obsługa nazw plików w unikodzie,
37 - kompresja upakowana,
38 - kompresja nagłówków archiwum.
39
40 %package standalone
41 Summary:        Standalone 7zip executable
42 Summary(pl.UTF-8):      Samodzielny plik wykonywalny 7zip
43 Group:          Applications/Archiving
44 Obsoletes:      p7zip-stand-alone
45
46 %description standalone
47 Standalone version of 7zip. It handles less archive formats than
48 plugin capable version.
49
50 %description standalone -l pl.UTF-8
51 Samodzielna wersja 7zip-a. Obsługuje mniej formatów archiwów niż
52 wersja obsługująca wtyczki.
53
54 %prep
55 %setup -q -n %{name}_%{version}
56
57 cp -f makefile.linux_x86_ppc_alpha_gcc_4.X makefile.machine
58 %{__sed} -i -e 's/ -s / /' makefile.machine
59
60 find . -name '*.cpp' -exec %{__sed} -i -e 's@getenv("P7ZIP_HOME_DIR")@"%{_libdir}/%{name}/"@g' {} \;
61
62 %build
63 %{__make} all2 test \
64         CC="%{__cc} \$(ALLFLAGS)" \
65         CXX="%{__cxx} \$(ALLFLAGS)" \
66         LDFLAGS="%{rpmldflags}" \
67         OPTFLAGS="%{rpmcflags}"
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{Codecs,Formats},%{_mandir}/man1}
72
73 install bin/{7z,7zCon.sfx,7za} $RPM_BUILD_ROOT%{_bindir}
74 install bin/7z.so $RPM_BUILD_ROOT%{_libdir}/%{name}
75 install bin/Codecs/* $RPM_BUILD_ROOT%{_libdir}/%{name}/Codecs
76
77 install man1/7z* $RPM_BUILD_ROOT%{_mandir}/man1
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %files
83 %defattr(644,root,root,755)
84 %doc DOCS/{MANUAL,{7zFormat,License,Methods,history,lzma,readme}.txt} ChangeLog README TODO
85 %attr(755,root,root) %{_bindir}/7z
86 %attr(755,root,root) %{_bindir}/7zCon.sfx
87 %dir %{_libdir}/%{name}
88 %attr(755,root,root) %{_libdir}/%{name}/7z.so
89 %dir %{_libdir}/%{name}/Codecs
90 %attr(755,root,root) %{_libdir}/%{name}/Codecs/*
91 %{_mandir}/man1/7z.1*
92
93 %files standalone
94 %defattr(644,root,root,755)
95 %attr(755,root,root) %{_bindir}/7za
96 %{_mandir}/man1/7za.1*
This page took 0.078702 seconds and 4 git commands to generate.