peazip/peazip.spec
Guillaume GARDET c8f5eda7ca Accepting request 860163 from home:ecsos
- Update to 7.6.0
  * BACKEND
    - (Winodws, ReactOS) McMilk codecs in 7z\Codecs path are now 
      automatically checked at PeaZip startup, in order to disable
      them (moving in 7z\Codecs\bk) on systems not capable to run
      them (as XP or ReactOS), and re-enable them on other systems;
      this works for both Portable and installable packages without
      requiring manual intervention
  * CODE
    - Various fixes
  * FILE MANAGER
    - (in left navigation panel) Archive treeview is now 
      automaticaly updated accordingly to browsing in file manager
      area
      - This option can be fine tuned in Options > Settings > 
        Archive manager
    - Various usability improvements
      - Can now set current path as default archiving or extraction
        path
      - Options > Settings > General, Advanced, and Archive manager
        tabs reorganized
      - Improved and updated themes, and simplified Theme tab
  * EXTRACTION and ARCHIVING
    - Improved handling ZIP files with code pages different than
      local
      - Can now customize code page for reading/writing filenames
        in ZIP archives, from Options > Settings, 
        Advanced tab it is possible to set:
        - Local code page, then UTF-8 for sysmbols outside local
          code page (default)
        - Force UTF-8 for non-ASCII characters
        - Force local code page
        - Use a custom code page: an arbitrary code page can be
          entered by user (the host machine needs to support the 
          code page to run the tasks, otherwise tasks can be saved 
          as scripts and run on different machines)
      - Text encoding entry is now accessible also from application's
        file browser context menu, and in Archiving and Extraction
        screens context menus
    - Within PeaZip file manager it is now possible to use 
      copy/paste shortcuts Ctrl+C (or Ctrl+X) / Ctrl+V to extract
      items from archives to filesystem
      - If clipboard is set to keep multiple selection operations
        at once:
        - Copy/paste extraction is possible form multiple archives
          at once
        - It is also possibile to mix cut/paste and extraction
          operations
      - Extraction targets the file system, it is not currently 
        possible i.e. to directly paste compressed items from 
        archive A to archive B
        
- Changes from 7.5.0
  * CODE
    - Various fixes
  * FILE MANAGER
    - Create new folder is now also available for 7Z/p7Zip and RAR
      supported archive types
    - Improved file renaming routines
      - added function to cutting file names at specified lengtt
      - added function to replace / remove non-ASCII characters
      - all quick rename functions (lowercase, replace string, 
        etc...) are now also available when browsing 7Z/p7zip and 
        RAR supported archive types
    - Updated icons in embedded theme and added icons to 
      distinguish common archive types
    - Updated Ten theme
  * EXTRACTION and ARCHIVING
    - Added "Extract everything for special file types"
      (to 7Z-supported archive types) to optionally extract the 
      entire archive (or current path) to preview special filetypes
      which usually needs external data to properly run, in example
      .html, .bat, and .exe files
      - From Options > Settings > Archive manager, Extract group is
        possible to customize "Extract everything for..." behavior
        - Never use special preview, Ask, Always (default)
        - Extract entire archive (default) or Extract displayed 
          items only (items in current path, or matching search 
          filters) which can be faster than extracting the entire
          archive
    - Archive timestamp preservation directive is now also applied
      to rename and delete operations 
      (previously only for add / update)
    - Options > Settings > Archive manager, Extract group: added 
      option to auto close PeaZip after extraction if no browsing 
    - actions took place (default off), useful in example if a 
      downloaded file was opened for quick inspection before 
      extraction
   - Options > Settings > General (Windows): added options for
     locking or hiding target window during drag and drop 
     operations, by default target window is hidden and locked 
     while the operation is running
    - Out of the box default compression levels are set to fast for
      ZIP and 7Z formats
      - compared to previous ZIP normal default, ZIP fast is over 
        400% faster providing 2% worse compression ratio, and 7Z 
        fast is 25% faster providing 3% better compression ratio
      - compared to previous 7Z normal default, 7Z fast is 500% 
        faster providing 5% worse compression ratio
      - please note compression levels and compression presets 
        works as usual, the new settings are meant only to provide
        novice users better performance balance for general purpose
        tasks
    - Modified existing preset scripts
      - 10 from faster zip to fast zip
      - 12 (Linux) from .tar.zst to .7z using Zstandard compression
        (which requires single pass)
    - Test mode always show details about single files in archive
  * WINDOWS & LINUX INSTALLERS
    - (Windows XP) additional 7z codecs introduced in 7.4 line, 
      incompatible with Windows XP, are deactivated when installed
      on XP machines, consequently the error messages are no longer
      triggered when using 7z backend
        
- Update to 7.4.2
  * BACKEND
    - (Linux) p7zip 16.02 superseded by sznick/p7zip fork 17.02,
      not available for legacy 32 bit platforms added support for
      FLZMA2, LZ4, and Zstd compression algorithms in .7z format
      algorithm selection dropdown is now common to all platforms,
      unsupported algorithms for one platform are preceeded with / 
      (currently unsupported /Brotli, /Lizard, and /LZ5 on linux)
  * CODE
    - Various fixes
  * FILE MANAGER
    - (Windows) File manager now displays icons for exe files for
      better usability, using a separate thread; previously the
      feature was enabled only if browser was set to show thumbnails
      In-archive Extract and open with PeaZip and Preview with
      PeaZip now forces trying to open file as archive, as in Open
      as archive menu entry
  * EXTRACTION and ARCHIVING
    - (Windows) Drop target window is locked, as in WinRar, until
      drag and drop operation is completed
      If password contains characters that can be troublesome if 
      used in scripts (i.e. quotes) it is now possible to 
      interactively enter password in console to create / extract
      archive types handled through 7z/p7zip, ARC, and RAR backends
Wed Sep  26 18:19:14 UTC 2020 - ecsos <ecsos@opensuse.org>
- Update to 7.4.1
  * BACKEND
    - Pea 0.74
      Introduced PEA format revision 1.3, supporting multiple 
      cascade authenticated encryption, each cipher with 256 bit key,
      in EAX mode: AES+Twofish+Serpent, Twofish+Serpent+AES, Serpent+AES+Twofish
      Fixed a bug preventing extraction of PEA archives in case of naming conflicts
  * CODE
    - Fixed Fast-LZMA2 dictionary sizes
    - Fixed error 127 erroneously raised in some cases
  * FILE MANAGER
    - Improved directories smart sorting in file manager
    - Improved tabs
      - closing last tab collapses tab bar
      - mouse middle button closes tab
  * WINDOWS & LINUX INSTALLERS
    (Windows) Fixed context menu entry "CRC, hash and file tools",
    now pointing by default to "Checksum/hash (common algorithms)"
    consistently to all other calls form PeaZip

OBS-URL: https://build.opensuse.org/request/show/860163
OBS-URL: https://build.opensuse.org/package/show/devel:languages:pascal/peazip?expand=0&rev=83
2021-01-05 10:38:39 +00:00

167 lines
5.4 KiB
RPMSpec

#
# spec file for package peazip
#
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%define _peazipinstalldir %{_libdir}/peazip
%define _helpver 7.6.0
Name: peazip
Version: 7.6.0
Release: 0
Summary: Graphical file archiver
License: LGPL-3.0-only
Group: Productivity/Archiving/Compression
URL: http://www.peazip.org
Source0: https://sourceforge.net/projects/peazip/files/%{version}/peazip-%{version}.src.zip
Source1: altconf.txt
Source2: https://sourceforge.net/projects/peazip/files/%{_helpver}/peazip_help.pdf#/peazip_help-%{_helpver}.pdf
Patch0: peazip-desktop.patch
# PATCH-FIX-UPSTREAM: https://sourceforge.net/p/peazip/tickets/492/
Patch1: peazip-fix_aarch64.patch
# PATCH-FIX-OPENSUSE peazip-build_PIE.patch -- aloisio@gmx.com
Patch2: peazip-build_PIE.patch
# PATCH-FIX-OPENSUSE peazip-help_path.patch set correct path for the pdf guide -- aloisio@gmx.com
Patch3: peazip-help_path.patch
# PATCH-FEATURE-OPENSUSE peazip-debuginfo.patch
Patch4: peazip-debuginfo.patch
BuildRequires: arc
BuildRequires: brotli
BuildRequires: dos2unix
BuildRequires: fdupes
BuildRequires: fpc
BuildRequires: fpc-src
BuildRequires: kf5-filesystem
BuildRequires: lazarus
BuildRequires: unzip
BuildRequires: upx
BuildRequires: zpaq
BuildRequires: zstd
%if 0%{?suse_version} > 1500 || 0%{?sle_version} == 150200
BuildRequires: p7zip-full
Requires: p7zip-full
%else
BuildRequires: p7zip
Requires: p7zip
%endif
Requires: upx
%if 0%{?suse_version} < 1500
BuildRequires: update-desktop-files
%endif
Suggests: arc
Suggests: brotli
Suggests: zpaq
Suggests: zstd
%description
PeaZip is a file and archive manager GUI for many formats.
Create: 7Z, ARC, BZ2, GZ, *PAQ, PEA, QUAD/BALZ, TAR, UPX, WIM, XZ, ZIP files
Extract 150+ archive types: ACE, ARJ, CAB, DMG, ISO, LHA, RAR, UDF, ZIPX and more
It can extract, create and convert multiple archives at once,
create self-extracting archives, split/join files, supports strong encryption with two-factor authentication,
has an encrypted password manager, secure deletion, can find duplicate files, calculate hashes, and
export job definition as a script.
%package kf5
Summary: KF5 servicemenu for peazip
Group: Productivity/Archiving/Compression
Requires: peazip
%if 0%{?suse_version} < 1500
Requires(post): update-desktop-files
Requires(postun): update-desktop-files
%endif
BuildArch: noarch
%description kf5
PeaZip is a file and archive manager GUI for many formats.
This subpackage contains the KF5 integration.
%prep
%autosetup -p1 -n %{name}-%{version}.src
chmod +w res/lang
dos2unix readme
cp %{SOURCE2} peazip_help.pdf
%build
lazbuild \
--lazarusdir=%{_libdir}/lazarus \
%ifarch x86_64
--cpu=x86_64 \
%endif
--widgetset=gtk2 \
--max-process-count=1 \
-B project_pea.lpi project_peach.lpi
%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_peazipinstalldir}
cp -r res %{buildroot}%{_peazipinstalldir}
cp %{SOURCE1} %{buildroot}%{_peazipinstalldir}/res
mkdir -p %{buildroot}%{_peazipinstalldir}/res/7z
mkdir -p %{buildroot}%{_peazipinstalldir}/res/upx
ln -s %{_bindir}/7z %{buildroot}%{_peazipinstalldir}/res/7z/7z
ln -s %{_bindir}/upx %{buildroot}%{_peazipinstalldir}/res/upx/upx
mkdir -p %{buildroot}%{_peazipinstalldir}/res/arc
mkdir -p %{buildroot}%{_peazipinstalldir}/res/brotli
mkdir -p %{buildroot}%{_peazipinstalldir}/res/zpaq
mkdir -p %{buildroot}%{_peazipinstalldir}/res/zstd
ln -s %{_bindir}/arc %{buildroot}%{_peazipinstalldir}/res/arc/arc
ln -s %{_bindir}/brotli %{buildroot}%{_peazipinstalldir}/res/brotli/brotli
ln -s %{_bindir}/zpaq %{buildroot}%{_peazipinstalldir}/res/zpaq/zpaq
ln -s %{_bindir}/zstd %{buildroot}%{_peazipinstalldir}/res/zstd/zstd
install -m755 peazip %{buildroot}%{_peazipinstalldir}
ln -s %{_peazipinstalldir}/peazip %{buildroot}%{_bindir}/peazip
install -m755 pea %{buildroot}%{_peazipinstalldir}/res
ln -s %{_peazipinstalldir}/res/pea %{buildroot}%{_bindir}/pea
install -D -m644 FreeDesktop_integration/peazip.desktop %{buildroot}%{_datadir}/applications/peazip.desktop
install -D -m644 FreeDesktop_integration/peazip.png %{buildroot}%{_datadir}/pixmaps/peazip.png
pushd FreeDesktop_integration/kde4-dolphin/usr/share/kde4/services/ServiceMenus
mkdir -p %{buildroot}%{_kf5_servicesdir}/ServiceMenus
install -m644 *.desktop %{buildroot}%{_kf5_servicesdir}/ServiceMenus
popd
%fdupes %{buildroot}/%{_prefix}
%if 0%{?suse_version} < 1500
%post kf5
%desktop_database_post
%postun kf5
%desktop_database_postun
%endif
%files
%license copying.txt
%doc readme peazip_help.pdf
%{_bindir}/pea
%{_bindir}/peazip
%{_peazipinstalldir}
%{_datadir}/applications/peazip.desktop
%{_datadir}/pixmaps/peazip.png
%files kf5
%dir %{_kf5_servicesdir}/ServiceMenus
%{_kf5_servicesdir}/ServiceMenus/*.desktop
%changelog