File yubikey-piv-manager.spec of Package yubikey-piv-manager

#
# spec file for package yubikey-piv-manager
#
# 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/
#


%define bname   pivman
Name:           yubikey-piv-manager
Version:        1.4.2
Release:        0
Summary:        YubiKey PIV Manager GUI
License:        GPL-3.0+
Group:          Productivity/Security
Url:            https://developers.yubico.com/yubikey-piv-manager/Releases
Source0:        https://developers.yubico.com/yubikey-piv-manager/Releases/%{name}-%{version}.tar.gz
Source1:        https://developers.yubico.com/yubikey-piv-manager/Releases/%{name}-%{version}.tar.gz.sig
BuildRequires:  pkg-config
BuildRequires:  python-nose
BuildRequires:  python-setuptools >= 0.6b3
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(pyside)
BuildRequires:  pkgconfig(python) >= 2.6.6
BuildRequires:  pkgconfig(ykpiv)
Requires:       libykcs11-1
Requires:       libykpiv1
Requires:       python-pycrypto
Requires:       python-pyside
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
Tool for configuring your PIV-enabled YubiKey.

%prep
%setup -q

%build
python setup.py qt_resources
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -p -m 0644 resources/%{bname}.xpm %{buildroot}%{_datadir}/pixmaps/
mkdir -p %{buildroot}%{_mandir}/man1
install -p -m 0644 man/%{bname}.1 %{buildroot}%{_mandir}/man1/%{bname}.1
%suse_update_desktop_file -i %{bname} System Security

%files
%defattr(-,root,root)
%doc COPYING NEWS README
%{_mandir}/man1/*
%{_bindir}/%{bname}
%{python_sitelib}
%{_datadir}/applications/%{bname}.desktop
%{_datadir}/pixmaps/%{bname}.xpm

%changelog
openSUSE Build Service is sponsored by