Package rosa-crypto-tool: Specfile

Name:       rosa-crypto-tool
Version:    1.0.0
Release:    alt2

Summary:    Program for working with electronic digital signatures
Group:      Text tools
License:    BSD
URL:        https://abf.io/uxteam/rosa-crypto-tool-devel.git
BuildArch:  noarch

Source0:    %name-%version.tar
Patch:      %name-%version-%release.patch

BuildRequires(pre): rpm-build-python3
BuildRequires: gettext-tools

%description
Program for working with electronic digital signatures.

%prep
%setup -q
%patch -p1
# Set all python shebang to python3 executable
sed -i 's|#!.* python$|#!%__python3|' \
    $(find ./ \( -name '*.py' -o -name '%name' \))

%build
%python3_build

%install
%python3_install
%find_lang %name

%files -f %name.lang
%_bindir/%name
%doc %_defaultdocdir/%name/help.pdf
%python3_sitelibdir/*
%_desktopdir/%name.desktop
%_iconsdir/hicolor/scalable/apps/%name.svg


%changelog
* Tue Nov 30 2021 Andrey Cherepanov <cas@altlinux.org> 1.0.0-alt2
- Finish adapt for Python3 and PyQt5.

* Mon Nov 29 2021 Andrey Cherepanov <cas@altlinux.org> 1.0.0-alt1
- New version.

* Mon Nov 11 2019 Andrey Bychkov <mrdrew@altlinux.org> 0.1.5-alt2
- python2 -> python3

* Wed Nov 02 2016 Andrey Cherepanov <cas@altlinux.org> 0.1.5-alt1
- New version

* Tue Oct 04 2016 Andrey Cherepanov <cas@altlinux.org> 0.1.0-alt0.1.beta
- New beta version
- Added executable and desktop files

* Sun Aug 14 2016 Andrey Cherepanov <cas@altlinux.org> 0.0.8-alt1
- Initial build in Sisyphus