File pkg2zip.spec of Package pkg2zip

#
# spec file for package pkg2zip
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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 http://bugs.opensuse.org/
#


Name:           pkg2zip
Version:        1.8
Release:        0
Summary:        Decrypts PlayStation Vita pkg file and packages to zip archive
License:        SUSE-Public-Domain
Group:          Hardware/Mobile
URL:            https://github.com/lusid1/pkg2zip
Source0:        %{name}-%{version}.tar.gz
Source1:        %{name}.1

%description
Utility that decrypts PlayStation Vita pkg file and creates zip package. Supported pkg files - main application, DLC, patch and PSM files. Supports also PSX files for use with Adrenaline.

Optionally writes NoNpDrm or NoPsmDrm fake license file from zRIF string. You must provide license key.

%prep
%setup -q

%build
make %{?_smp_mflags}

%install
install -D -m0755 %{name} %{buildroot}%{_bindir}/%{name}
install -D -m0755 zrif2rif.py %{buildroot}%{_bindir}/zrif2rif
install -D -m0755 rif2zrif.py %{buildroot}%{_bindir}/rif2zrif
install -D -m0644 %{S:1} %{buildroot}%{_mandir}/man7/%{name}.1

%files
%doc LICENSE README.md
%{_bindir}/%{name}
%{_bindir}/zrif2rif
%{_bindir}/rif2zrif
%{_mandir}/man7/pkg2zip.1.gz

%changelog