]> git.pld-linux.org Git - packages/p7zip.git/blob - p7zip.spec
- typo
[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:        0.90
5 Release:        1
6 License:        LGPL
7 Group:          Applications/Archiving
8 Source0:        http://dl.sourceforge.net/p7zip/%{name}_%{version}.tar.bz2
9 # Source0-md5:  6600fd9711b5cebd52aac2ce4d9ba727
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)
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,
37 - Obs³uga nazw plików w unikodzie,
38 - Kompresja upakowana,
39 - Kompresja nag³ówków archiwum.
40
41 %package stand-alone
42 Summary:        Stand-alone 7zip executable
43 Summary(pl):    Samodzielny plik wykonywalny 7zip
44 Group:          Applications/Archiving
45
46 %description stand-alone
47 Stand-alone version of 7zip. It handles less archive formats than
48 plugin capable version.
49
50 %description stand-alone -l pl
51 Samodzielna wersja 7zip-a. Obs³uguje mniej formatów archiw ni¿
52 wersja obs³uguj±ca wtyczki.
53
54 %prep
55 %setup -q -n %{name}_%{version}
56 %patch0 -p1
57
58 cd 7zip/UI/Common
59 sed -e "s@Formats@%{_libdir}/%{name}/&@" ArchiverInfo.cpp > tmp
60 mv -f tmp ArchiverInfo.cpp
61 cd ../../Archive/Common
62 sed -e "s@return GetBaseFolderPrefix() + TEXT(\"Codecs\\\\\\\\\");@return TEXT(\"%{_libdir}/%{name}/Codecs/\");@" CodecsPath.cpp > tmp
63 mv -f tmp CodecsPath.cpp
64
65 %build
66 %{__make} \
67         CC_="%{__cc}" \
68         CXX_="%{__cxx}" \
69         OPTFLAGS="%{rpmcflags}"
70
71 %install
72 rm -rf $RPM_BUILD_ROOT
73 install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{Codecs,Formats}}
74
75 install bin/7z{,a} $RPM_BUILD_ROOT%{_bindir}
76 install bin/Codecs/* $RPM_BUILD_ROOT%{_libdir}/%{name}/Codecs
77 install bin/Formats/* $RPM_BUILD_ROOT%{_libdir}/%{name}/Formats
78
79 %clean
80 rm -rf $RPM_BUILD_ROOT
81
82 %files
83 %defattr(644,root,root,755)
84 %doc html ChangeLog README TODO
85 %attr(755,root,root) %{_bindir}/7z
86 %dir %{_libdir}/%{name}
87 %dir %{_libdir}/%{name}/Codecs
88 %attr(755,root,root) %{_libdir}/%{name}/Codecs/*
89 %dir %{_libdir}/%{name}/Formats
90 %attr(755,root,root) %{_libdir}/%{name}/Formats/*
91
92 %files stand-alone
93 %defattr(644,root,root,755)
94 %attr(755,root,root) %{_bindir}/7za
This page took 0.075314 seconds and 4 git commands to generate.