File lastpass-cli.spec of Package lastpass-cli

#
# spec file for package lastpass-cli
#
# Copyright (c) 2016 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:           lastpass-cli
Version:        1.0.0
Release:        0
Summary:        LastPass command line interface tool
License:        GPL-2.0
Group:          Productivity/Security
Url:            https://github.com/LastPass/lastpass-cli
Source:         https://github.com/lastpass/lastpass-cli/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  asciidoc
BuildRequires:  libxslt-tools
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(openssl)
Recommends:     bash-completion
Recommends:     pinentry
Recommends:     xclip
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
LastPass is a freemium password management service which stores encrypted
passwords in the cloud. This package provided it's command line interface
tool.

%prep
%setup -q

%build
export CFLAGS="%{optflags} -pipe"
make %{?_smp_mflags} all doc-man

%install
%make_install install-doc

%files
%defattr(-,root,root)
%doc CHANGELOG.md README.md COPYING
%{_bindir}/lpass
%{_mandir}/man1/lpass.1%{ext_man}
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/lpass

%changelog
openSUSE Build Service is sponsored by