File p7zip.spec of Package p7zip
#
# spec file for package p7zip (Version 4.58)
#
# Copyright (c) 2008 SUSE LINUX Products GmbH, Nuernberg, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: p7zip
BuildRequires: gcc-c++
License: LGPL v2.1 or later
Group: Productivity/Archiving/Compression
AutoReqProv: on
Version: 4.58
Release: 1
Summary: 7-zip file compression program
Url: http://p7zip.sourceforge.net/
Source: http://switch.dl.sourceforge.net/sourceforge/%{name}/%{name}_%{version}_src_all.tar.bz2
Patch: p7zip-4.43-install.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
p7zip is a quick port of 7z.exe and 7za.exe (command line version of
7zip, see www.7-zip.org) for Unix. 7-Zip is a file archiver with
highest compression ratio. Since 4.10, p7zip (like 7-zip) supports
little-endian and big-endian machines.
Authors:
--------
Igor Pavlov <ipavlov@users.sourceforge.net>
my space <myspace@users.sourceforge.net>
%prep
%setup -q -n %{name}_%{version}
%patch -p1
%ifarch x86_64 ppc64 s390x
cp makefile.linux_amd64 makefile.machine
%else
cp makefile.linux_x86_ppc_alpha_gcc_4.X makefile.machine
%endif
perl -pi -e 's/ -s / /' makefile.machine
perl -pi -e 's/(\$\(LOCAL_FLAGS\))/'"$RPM_OPT_FLAGS"' \\\n\t$1/' makefile.machine
%build
%{__make} %{?jobs:-j%jobs} all2
%install
%{__mkdir_p} $RPM_BUILD_ROOT/%{_bindir}
%{__mkdir_p} $RPM_BUILD_ROOT%{_mandir}/man1
./install.sh \
%{_bindir} \
%{_libdir}/%{name} \
%{_mandir} \
%{_defaultdocdir}/%{name} \
%{buildroot}
# fix permissions in DOCS dir
#chmod -R u+w %{buildroot}/%{_defaultdocdir}/%{name}/DOCS
# fix build root in scripts:
#rm -f $RPM_BUILD_ROOT/%{_bindir}/7za
#cat > $RPM_BUILD_ROOT/%{_bindir}/7za <<-EOT
# #!/bin/bash
# exec %{_libdir}/%{name}/7za "\$@"
#EOT
#chmod a+x $RPM_BUILD_ROOT/%{_bindir}/7za
#rm -f $RPM_BUILD_ROOT/%{_bindir}/7z
#cat > $RPM_BUILD_ROOT/%{_bindir}/7z <<-EOT
# #!/bin/bash
# exec %{_libdir}/%{name}/7z "\$@"
#EOT
#chmod a+x $RPM_BUILD_ROOT/%{_bindir}/7z
%check
%{__make} test
%{__make} test_7z
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/Codecs
#%dir %{_libdir}/%{name}/Formats
%{_libdir}/%{name}/[0-9a-z]*
%{_libdir}/%{name}/Codecs/*
#%{_libdir}/%{name}/Formats/*
%{_bindir}/*
%doc %{_defaultdocdir}/%{name}
%{_mandir}/man1/*
%changelog
* Mon Jun 30 2008 mkoenig@suse.de
- update to version 4.58
* Some speed optimizations
* 7-Zip now can unpack .lzma archives
* Unicode (UTF-8) support for filenames in .ZIP archives
* Now it's possible to store file creation time in 7z and
ZIP archives (-mtc switch)
* 7-Zip now can unpack multivolume RAR archives created with
"old style volume names" scheme and names *.001, *.002, ...
* Now it's possible to use -mSW- and -mSW+ switches instead of
-mSW=off and -mSW=on
* Thu Feb 28 2008 mkoenig@suse.de
- update to version 4.57
* some minor bugfixes
* Tue Aug 07 2007 crrodriguez@suse.de
- update to version 4.51
- fix built of test_emul
- contrib/gzip-like_CLI_wrapper_for_7z/p7zip now supports commands like :
p7zip -- -name
p7zip "file name"
p7zip file1 file2 file3
p7zip -d file1.7z file2.7z file3.7z
- some code cleanup
- run make test in the rpm check section
* Mon Jul 09 2007 mkoenig@suse.de
- update to version 4.48
* bugfixes
* Mon Feb 05 2007 mkoenig@suse.de
- update to version 4.44:
* fixes in the help displayed by 7za/7z/7zr.
* code cleanup: remove of mySetModuleFileNameA (and its memory
leak), GetModuleFileName ...
Bugfixes:
* in the plugins of 7z, the "Utf16" state was always off.
* support for directory names that are not encoded
with the current locale.
* p7zip can now restore a symbolic link from a Zip archive
* small fix in the output of the script install.sh
* Extracting large directories takes quadratic time
* Client7z added.
* Thu Dec 14 2006 mkoenig@suse.de
- update to version 4.43:
* 7-Zip now can use multi-threading mode for compressing to
.ZIP archives.
* ZIP format supporting was improved.
* 7-Zip now supports WinZip-compatible AES-256 encryption for
.ZIP archives.
* 7-Zip now uses order list (list of extensions) for files
sorting for compressing to .7z archives.
* 7-Zip now restores modification time of folders during .7z
archives extracting.
* Thu Jun 29 2006 kssingvo@suse.de
- fixed specfile (makefile part) (bugzilla#187320)
* Wed Jun 21 2006 kssingvo@suse.de
- update to version 4.42
* Tue Apr 11 2006 kssingvo@suse.de
- update to version 4.37
* Fri Mar 03 2006 kssingvo@suse.de
- initial version