]> git.pld-linux.org Git - packages/p7zip.git/blob - p7zip.spec
- removed outdated opt patch, pass CC/CXX
[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.42
5 Release:        1
6 License:        LGPL
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)
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
28 %description -l pl
29 7-Zip jest pakerem plików z najwy¿szym stopniem kompresji.
30
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.
40
41 %package standalone
42 Summary:        Standalone 7zip executable
43 Summary(pl):    Samodzielny plik wykonywalny 7zip
44 Group:          Applications/Archiving
45 Obsoletes:      p7zip-stand-alone
46
47 %description standalone
48 Standalone version of 7zip. It handles less archive formats than
49 plugin capable version.
50
51 %description standalone -l pl
52 Samodzielna wersja 7zip-a. Obs³uguje mniej formatów archiwów ni¿
53 wersja obs³uguj±ca wtyczki.
54
55 %prep
56 %setup -q -n %{name}_%{version}
57
58 cp -f makefile.linux_x86_ppc_alpha__gcc_4.X makefile.machine
59 %{__sed} -i -e 's/ -s / /' makefile.machine
60
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
65
66 %build
67 %{__make} all2 \
68         CC="%{__cc} \$(ALLFLAGS)" \
69         CXX="%{__cxx} \$(ALLFLAGS)" \
70         OPTFLAGS="%{rpmcflags}"
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.092286 seconds and 4 git commands to generate.