Репозиторий Sisyphus
Последнее обновление: 3 марта 2021 | Пакетов: 17840 | Посещений: 20391826
en ru br
Репозитории ALT
5.1: 9.04-alt1
4.1: 4.57-alt1
4.0: 4.45-alt1
3.0: 4.29-alt1

Группа :: Архивирование/Сжатие
Пакет: p7zip

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

%define includedir %_includedir/%name

Name: p7zip
Version: 16.02
Release: alt2

Summary: 7zip unofficial port - a file-archiver with highest compression ratio
License: Freely distributable
Group: Archiving/Compression

Url: http://p7zip.sourceforge.net/
Source: %{name}_%{version}_src_all.tar.bz2

# Automatically added by buildreq on Sat Oct 08 2011

# optimized out: libstdc++-devel
BuildRequires: gcc-c++

p7zip is a port of 7-Zip for Unix. 7-Zip is a file archiver
with a very high compression ratio.

%package standalone
Summary: Standalone p7zip executable without plugins
Group: Archiving/Compression
License: LGPLv2.1+
Requires: p7zip

%description standalone
p7zip is a port of 7-Zip for Unix. 7-Zip is a file archiver
with a very high compression ratio.

This package contains standalone version of p7zip.
It handles less archive formats than plugin capable version.

%package devel
Summary: Development package of p7zip that includes the header files
Group: Development/C
License: Public domain
BuildArch: noarch

Requires: %name = %EVR

%description devel
The devel package contains the p7zip include files.

%setup -n p7zip_%version

# Make p7zip looks for plugins in fixed directory. Upstream behavior was to
# look in current directory by default (when environment variable P7ZIP_HOME_DIR
# is not set)
find . -name '*.cpp' -exec \
subst 's at getenv("P7ZIP_HOME_DIR") at "%_libdir/p7zip/" at g' {} \;

# NB: 'all' is not default target in this makefile

%make_build OPTFLAGS="%optflags" all2

# NB: Someday I probably should build and package 7zG (7z GUI), but for now

# this GUI is far from useful.

./install.sh %_bindir %_libdir/p7zip %_mandir %_docdir/%name-%version %buildroot
# Install script put shell wrappers in /usr/bin/ instead of executables.
# We don't want this, see comments to inline patch above to get idea of our way.
mv -f %buildroot%_libdir/p7zip/{7z,7za} %buildroot%_bindir/

# fixed in 9.20.1

#cp -a bin/Codecs %buildroot%_libdir/p7zip/

# Install C/*.h files

mkdir -p %buildroot%includedir
find C -maxdepth 1 -mindepth 1 -name '*.h' -a -not \( -name Threads.h -o -name LzFindMt.h -o -name MtCoder.h \) -print0 | \
xargs -0 install -p -m644 -t %buildroot%includedir/

%doc README ChangeLog DOC
%dir %_libdir/p7zip
%exclude %_man1dir/7zr.*

%files standalone

%files devel


Полный changelog можно просмотреть здесь

дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin