Blob Blame History Raw
%global __requires_exclude_from ^%{_docdir}/.*$

Name:           lastpass-cli
Version:        0.7.0
Release:        3%{?dist}
Summary:        Command line interface to LastPass.com

License:        GPLv2
URL:            https://github.com/LastPass/lastpass-cli
Source0:        https://github.com/lastpass/lastpass-cli/archive/v0.7.0.tar.gz#/lastpass-cli-0.7.0.tar.gz

BuildRequires:  openssl-devel
BuildRequires:  libxml2-devel
BuildRequires:  libcurl-devel
BuildRequires:  asciidoc
Requires:       /usr/bin/pinentry
# /usr/bin/xclip isn't available in EPEL
%{?fedora:Requires: /usr/bin/xclip}

%description
A command line interface to LastPass.com.

%prep
%setup -q


%build
CFLAGS="${CFLAGS:-%optflags}" LDFLAGS="${LDFLAGS:-%__global_ldflags}" make %{?_smp_mflags}


%install
%make_install install-doc


%files
%{_bindir}/lpass
%{_mandir}/man1/lpass.1.*
%license COPYING
%license LICENSE.OpenSSL
%doc README.md
%doc CONTRIBUTING
%doc contrib/examples


%changelog
* Thu Dec 24 2015 Tom Prince - 0.7.0-3
- Remove xclip dependency for EPEL.

* Sun Dec 6 2015 Tom Prince - 0.7.0-2
- Address review comments.

* Mon Nov 16 2015 Tom Prince - 0.7.0-1
- Version number bump

* Wed Oct 7 2015 Tom Prince - 0.6.0-1
- Version number bump

* Tue Dec 30 2014 Rohan Ferris - 0.4.0-2
- Include asciidoc

* Tue Dec 30 2014 Rohan Ferris - 0.4.0-1
- Version number bump

* Fri Nov  7 2014 Rohan Ferris
- Initial packaging.