File hpqpswdd.spec of Package hpqpswdd
#
# spec file for package hpqpswdd
#
# Copyright (c) 2021, Martin Hauke <mardnh@gmx.de>
#
# 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/
#
Name: hpqpswdd
Version: 0~git20161015
Release: 0
Summary: Utility that can be used to decrypt HPQPswd encrypted passwords
License: GPL-3.0-or-later
Group: Productivity/Security
URL: https://www.serializing.me/project/hpqpswdd/
#Git-Clone: https://github.com/serializingme/hpqpswdd.git
Source: %{name}-%{version}.tar.xz
BuildRequires: pkgconfig
BuildRequires: pkgconfig(mono)
Requires: mono-core
BuildArch: noarch
%description
Utility that can be used to decrypt HPQPswd encrypted passwords.
%prep
%setup -q
%build
mcs /out:hpqpswdd.exe Program.cs Native.cs
%install
install -D -m0644 hpqpswdd.exe %{buildroot}%{_prefix}/lib/hpqpswdd/hpqpswdd.exe
# Bin wrapper
install -d %{buildroot}%{_bindir}
cat << EOF > %{buildroot}%{_bindir}/hpqpswdd
#!/bin/sh
exec mono %{_prefix}/lib/hpqpswdd/hpqpswdd.exe "\$@"
EOF
%files
%license LICENSE.md
%doc README.md
%attr(755,root,root) %{_bindir}/hpqpswdd
%{_prefix}/lib/hpqpswdd
%changelog