File master-pdf-editor.spec of Package master-pdf-editor

#
# spec file for package master-pdf-editor
#
# Copyright (c) 2023 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/
#


%global version_major 5
Name:           master-pdf-editor
Version:        %{version_major}.9.86
Release:        2.2
Summary:        Master PDF Editor for Linux
License:        SUSE-EULA
URL:            https://code-industry.net
Patch0:         desktop-file.patch
BuildRequires:  fdupes
BuildRequires:  filesystem
ExclusiveArch:  x86_64 aarch64
%ifarch aarch64
Source0:        https://code-industry.net/public/%{name}-%{version}-qt5.arm64.tar.gz
%else
Source0:        https://code-industry.net/public/%{name}-%{version}-qt5.%{_arch}-qt_include.tar.gz
%endif
NoSource:       0

%description
Master PDF Editor is the optimal solution for editing PDF files in Linux.
It enables you to create, edit, view, encrypt, sign and print interactive
PDF documents.

%prep
%setup -q -n %{name}-%{version_major}
%patch -P 0 -p1
perl -pi -e 's#/opt#%{_libdir}#g' masterpdfeditor%{version_major}.desktop

%build

%install
install -dm 0755 %{buildroot}%{_bindir}
install -dm 0755 %{buildroot}%{_datadir}/applications
install -dm 0755 %{buildroot}/%{_libdir}/%{name}-%{version_major}
cp -r * %{buildroot}%{_libdir}/%{name}-%{version_major}/
%fdupes -s %{buildroot}%{_libdir}/%{name}-%{version_major}
ln -sf %{_libdir}/%{name}-%{version_major}/masterpdfeditor%{version_major} \
	%{buildroot}%{_bindir}/masterpdfeditor%{version_major}
mv %{buildroot}%{_libdir}/%{name}-%{version_major}/masterpdfeditor%{version_major}.desktop \
	%{buildroot}%{_datadir}/applications/

%files
%{_libdir}/%{name}-%{version_major}
%{_bindir}/masterpdfeditor%{version_major}
%{_datadir}/applications/masterpdfeditor%{version_major}.desktop

%changelog
* Fri Mar 29 2024 Stan8 <stasiek000@poczta.onet.pl>
- Upgrade to version 5.9.82
* Tue Feb 20 2024 Fridrich Strba <fstrba@suse.com>
- Use %%patch -P N instead of deprecated %%patchN.
* Sun Jul 10 2022 Fridrich Strba <fstrba@suse.com>
- Upgrade to version 5.8.70
  * Fixed several different issues.
- Upgrade to version 5.8.63
  * Implemented fully native UI in macOS.
  * Reworked scanning module in macOS.
  * Reworked printing module in macOS.
  * Introduced full native support of M1 and M2 CPUs in macOS.
  * Added new scanning options for all operating systems.
  * Fixed fonts loading in Windows.
  * Improved “Optimize scanned pages” option.
  * Fixed numerous issues with JavaScript.
  * Other minor fixes and improvements.
* Tue May 31 2022 Fridrich Strba <fstrba@suse.com>
- Upgrade to version 5.8.52
  * Fixed several different issues.
- Upgrade to version 5.8.49
  * Fixed several different issues.
- Upgrade to version 5.8.46
  * New options for scanning: automatic page rotation, background
    removal, empty pages skip.
  * Added “Optimize scanned pages” option.
  * Introduced new JavaScript engine, which drastically increases
    performance in most cases.
  * Reworked Attachments panel: added multiple removal and a new
    form with buttons, fixed display of the attachment size, added
    drag and drop support and hotkeys.
  * Fixed issue with the create second signature.
  * Fixed issue with forms copying which caused freezes.
  * Added floating pop up panel for comments.
  * Fixed printing issue in Multiple mode.
  * Fixed issue with re saving of some files.
  * Fixed several issues which caused application crash.
  * Other minor fixes and improvements.
* Fri Jan 21 2022 Fridrich Strba <fstrba@suse.com>
- Upgrade to version 5.8.33
  * Fixed multiple issues, which appeared only on Linux and macOS.
  * Added scanning preset functionality in Linux.
  * Added native colors support for macOS.
- Upgrade to version 5.8.30
  * Added full support for editing static XFA.
  * Fixed printing issues.
  * Fixed scanning issues in Linux. Improved support of various
    scanners.
  * Fixed issues with resaving of some files.
  * Added document size optimization when removing pages.
  * Improved vector images and comments adding and editing.
  * Added fast dictionaries for OCR for some languages.
  * Increased performance in Linux by switching to newer compiler.
  * Released arm64 version support for Linux.
  * Other fixes and improvements.
- Upgrade to version 5.8.20
  * Fixed several different issues.
- Upgrade to version 5.8.18
  * Updated Tesseract to 4.1, extended settings for OCR.
  * For virtual PDF printer: added color selection, 2400 DPI, A0
    and A1 paper sizes.
  * Added "Replace image" function.
  * Fixed image editing function, now the image is saved with the
    dialogue.
  * Implemented search by all kinds of comments.
  * Fixed display of some raster JBIG2 images.
  * Fixed some issues with XFA.
  * Extended JavaScript API support.
  * Fixed other minor issues.
* Wed Oct 13 2021 Fridrich Strba <fstrba@suse.com>
- Upgrade to version 5.8.06
  * Improved work with scanners on Linux, added page size selection
    fixed issues with some kinds of scanners.
  * Modified certificates validation behavior. Now default
    verification is weak, it allows to create a new signature field
    in the signed file and sign it without invalidation of the old
    field. Strong verification can be enabled in settings.
  * Fixed optimization for HiDPI screens for 150%% scaling. 200%%
    scaling was implemented earlier.
  * Implemented "Take snapshot" function for XFA documents.
  * Added tab order modification. Forms -> Edit Tab Order.
  * Fixed issue with text anti-aliasing on some systems.
  * Added file saving with specific PDF version.
  * Fixed issue with incorrect text display in some documents.
  * Fixed multiple other bugs and issues.
* Tue Sep  7 2021 Fridrich Strba <fstrba@suse.com>
- Upgrade to version 5.7.90
  * Added quick creation for 19 different comments.
    (Comments -> Label). If the application was already installed
    before update, toolbar button for must be manually added from
    Toolbar settings.
  * Added scrolling when moving page with mouse on Pages tab in
    Navigation bar.
  * Enlarged menu on \u201cPages\u201d tab, added export for
    selected pages.
  * Reworked Take a Snapshot function. Now the image is created with
    300 DPI minimum, the DPI information is also written into
    created image.
  * When pasting an image from the clipboard, DPI of the image is
    accounted for.
  * Fixed issue with floating menu with quick actions for text.
  * Added possibility to merge files (PDF, XPS, TIF, JPEG, PNG)
    from Windows explorer. Right click selected button and choose
    "Combine in Master PDF Editor" item. It is now also possible to
    merge files from Linux command line.
  * Fixed display of some PDF files in Facing pages mode.
  * Added progress bar when exporting to image, it is now possible
    to cancel export.
  * Fixed several critical issues with display of some PDF files.
  * Fixed several critical issues with saving of some PDF files.
  * Fixed other critical issues, which caused the application crash.
  * Fixed other minor issues.
- Modified patch:
  * desktop-file.patch
    + rediff to changed file-name
* Mon May 31 2021 Fridrich Strba <fstrba@suse.com>
- Initial re-packaging of master-pdf-editor 5.7.60
openSUSE Build Service is sponsored by