File password-store.spec of Package password-store
#
# spec file for package password-store
#
# Copyright (c) 2014 SUSE LINUX Products 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: password-store
Version: 1.6.5
Release: 0
Summary: Stores, retrieves, generates, and synchronizes passwords
License: GPL-2.0+
Group: Productivity/Other
Url: http://zx2c4.com/projects/password-store/
Source: http://git.zx2c4.com/password-store/snapshot/%{name}-%{version}.tar.xz
BuildRequires: git
BuildRequires: gpg2
%if 0%{?suse_version} != 1315
BuildRequires: pwgen
%endif
BuildRequires: tree
BuildRequires: xz
BuildRequires: bash-completion
BuildRequires: zsh
%if 0%{?suse_version} > 1320
BuildRequires: fish
%endif
Requires: gpg2
%if 0%{?suse_version} != 1315
Requires: pwgen
%endif
Requires: tree
Recommends: xclip
Suggests: git
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
With password-store, each password lives inside of a gpg encrypted file whose
filename is the title of the website or resource that requires the password.
These encrypted files may be organized into meaningful folder hierarchies,
copied from computer to computer, and, in general, manipulated using standard
command line file management utilities.
%package dmenu
Summary: A dmenu interface to pass
Group: Productivity/Other
Requires: dmenu
Recommends: xdotool
BuildArch: noarch
%description dmenu
A dmenu interface to pass, the standard Unix password manager.
%prep
%setup -q
%build
%install
make DESTDIR=%{buildroot} FISHCOMP_PATH=%{buildroot}%{_datadir}/fish/completions FORCE_ALL=1 install %{?_smp_mflags}
install -D -m 0755 contrib/dmenu/passmenu %{buildroot}%{_bindir}/passmenu
%check
%if 0%{?suse_version} >= 1320
make test %{?_smp_mflags}
%endif
%files
%defattr(-,root,root)
%doc README COPYING
%{_mandir}/man1/pass.1.gz
%{_bindir}/pass
%if 0%{suse_version} <= 1320
%dir %{_datadir}/fish
%dir %{_datadir}/fish/completions
%endif
%{_datadir}/bash-completion/completions/pass
%{_datadir}/fish/completions/pass.fish
%{_datadir}/zsh/site-functions/_pass
%files dmenu
%defattr(-,root,root)
%doc contrib/dmenu/README.md
%{_bindir}/passmenu
%changelog