File notepad++-64bit.spec of Package notepad++-64bit

#
# spec file for package avidemux
#
# 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/
#

%define url2 https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v%{version}
%define _name notepad++

Name:           notepad++-64bit
Version:        8.6.7
Release:        0%{?dist}
Group:          Productivity/Text/Editors
Summary:        A free source code editor for Windows
License:        GPL2
URL:            https://notepad-plus-plus.org/
BuildRequires:  unzip
Requires:       wine
Requires:       bash-sh
Requires:       fuse-overlayfs
Conflicts:      notepad++
Source0:        notepad++
Source1:        notepad++.desktop
Source2:        notepad++.png
Source3:        %{url2}/npp.%{version}.portable.x64.zip
Source4:        %{url2}/npp.%{version}.portable.x64.zip.sig
Source5:        package.files
Source6:        %{_name}.keyring

%description
A free source code editor for Windows running on linux (via wine script) .

%prep

%install
install -d -m755 "%{buildroot}/usr/share/%{_name}";
unzip "%{_sourcedir}/npp.%{version}.portable.x64.zip" -d "%{buildroot}/usr/share/%{_name}";
rm -rf "%{buildroot}/usr/share/%{_name}/updater" "%{buildroot}/usr/share/%{_name}/license.txt";
find "%{buildroot}/usr/share/%{_name}" -type d -exec chmod 755 "{}" \;;
find "%{buildroot}/usr/share/%{_name}" -type f -exec chmod 644 "{}" \;;
install -D -m755 "%{_sourcedir}/notepad++" "%{buildroot}/usr/bin/notepad++";
install -D -m644 "%{_sourcedir}/notepad++.png" "%{buildroot}/usr/share/pixmaps/notepad++.png";
install -D -m644 "%{_sourcedir}/notepad++.desktop" "%{buildroot}/usr/share/applications/notepad++.desktop"


%files
%include %{SOURCE5}

%changelog
openSUSE Build Service is sponsored by