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

Name:           lastpass-cli
Version:        1.1.2
Release:        1%{?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/v%{version}.tar.gz#/lastpass-cli-%{version}.tar.gz

BuildRequires:  cmake
BuildRequires:  openssl-devel
BuildRequires:  libxml2-devel
BuildRequires:  libcurl-devel
BuildRequires:  asciidoc
BuildRequires:  pkgconfig(bash-completion)
Requires:       pinentry
# xclip isn't available in EPEL
%{?fedora:Requires: xclip}

%description
A command line interface to LastPass.com.

%prep
%setup -q


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


%install
%make_install install-doc

# Setup bash completion
bashcompdir=$(pkg-config --variable=completionsdir bash-completion)
install -Dpm 644 contrib/lpass_bash_completion %{buildroot}$bashcompdir/lpass


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


%changelog
* Sun Mar 12 2017 Peter Robinson <pbrobinson@fedoraproject.org> 1.1.2-1
- Update to latest 1.1.2 release

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Sun Mar 6 2016 Tom Prince - 0.9.0-1
- Version number bump

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Mon Jan 4 2016 Tom Prince - 0.8.0-1
- Version number bump
- Install bash completions

* 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.