]> git.pld-linux.org Git - packages/p7zip.git/blame - p7zip.spec
- updated to 16.02
[packages/p7zip.git] / p7zip.spec
CommitLineData
466873f5 1Summary: File archiver with highest compression ratio
0021ec91 2Summary(pl.UTF-8): Paker plików z najwyższym stopniem kompresji
466873f5 3Name: p7zip
f2df0111
JB
4Version: 16.02
5Release: 1
1872f928 6License: LGPL v2.1+
466873f5 7Group: Applications/Archiving
88b85818 8Source0: http://downloads.sourceforge.net/p7zip/%{name}_%{version}_src_all.tar.bz2
f2df0111 9# Source0-md5: a0128d661cfe7cc8c121e73519c54fbf
6530315d 10URL: http://p7zip.sourceforge.net/
683c7f81 11BuildRequires: libstdc++-devel
254e1c81 12BuildRequires: sed >= 4.0
466873f5 13BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
14
15%description
167-Zip is a file archiver with highest compression ratio.
17
18The 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
297-Zip jest pakerem plików z najwyższym stopniem kompresji.
466873f5 30
d9d10b97 31Głó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
42Summary: Standalone 7zip executable
0021ec91 43Summary(pl.UTF-8): Samodzielny plik wykonywalny 7zip
7af867b5 44Group: Applications/Archiving
ab48ff36 45Obsoletes: p7zip-stand-alone
7af867b5 46
3a6193a6
ER
47%description standalone
48Standalone version of 7zip. It handles less archive formats than
7af867b5 49plugin capable version.
50
d9d10b97
JR
51%description standalone -l pl.UTF-8
52Samodzielna wersja 7zip-a. Obsługuje mniej formatów archiwów niż
53wersja 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 60find . -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
71rm -rf $RPM_BUILD_ROOT
226ab9a8 72install -d $RPM_BUILD_ROOT{%{_bindir},%{_libdir}/%{name}/{Codecs,Formats},%{_mandir}/man1}
466873f5 73
5fb535a2 74install bin/{7z,7za} $RPM_BUILD_ROOT%{_bindir}
5a1c7572 75install bin/7z.so $RPM_BUILD_ROOT%{_libdir}/%{name}
7af867b5 76install bin/Codecs/* $RPM_BUILD_ROOT%{_libdir}/%{name}/Codecs
5fb535a2 77install bin/7zCon.sfx $RPM_BUILD_ROOT%{_libdir}/%{name}
466873f5 78
f2df0111
JB
79install 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
84rm -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*
This page took 0.069475 seconds and 4 git commands to generate.