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

#
# spec file for package yubikey-neo-manager
#
# Copyright (c) 2015 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:           yubikey-neo-manager
Version:        1.4.0
Release:        0
Summary:        YubiKey NEO CCID Manager GUI
License:        BSD-2-Clause
Group:          System/Security
Url:            https://developers.yubico.com/yubikey-neo-manager/
Source0:        https://developers.yubico.com/yubikey-neo-manager/Releases/%{name}-%{version}.tar.gz
Source1:        https://developers.yubico.com/yubikey-neo-manager/Releases/%{name}-%{version}.tar.gz.sig
BuildRequires:  fdupes
BuildRequires:  pkg-config
BuildRequires:  python-libxml2
BuildRequires:  python-nose
BuildRequires:  python-setuptools >= 0.6b3
BuildRequires:  update-desktop-files
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  pkgconfig(pyside)
BuildRequires:  pkgconfig(python) >= 2.6.6
BuildRequires:  pkgconfig(u2f-host)
BuildRequires:  pkgconfig(ykneomgr) >= 0.1.6
BuildRequires:  pkgconfig(ykpers-1) >= 1.11
Requires:       libu2f-host0
Requires:       libykneomgr0 >= 0.1.6
Requires:       libykpers-1-1 >= 1.11
Requires:       python-pycrypto
Requires:       python-pyside
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
GUI for managing your YubiKey NEO configuration.
Connecting multiple keys at once is supported,
but only if CCID mode is active for all of them.

%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/neoman.xpm %{buildroot}%{_datadir}/pixmaps/
mkdir -p %{buildroot}%{_mandir}/man1
install -p -m 0644 man/neoman.1 %{buildroot}%{_mandir}/man1/neoman.1
%suse_update_desktop_file -i neoman System Security
%fdupes %{buildroot}

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

%changelog
openSUSE Build Service is sponsored by