File ssss.spec of Package ssss
#
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: ssss
Version: 0.5
Release: 0
License: GPL-2.0
Summary: Shamir's Secret Sharing Scheme
Url: http://point-at-infinity.org/ssss/
Group: Productivity/Security
Source: http://point-at-infinity.org/ssss/ssss-%{version}.tar.gz
Source1: %{name}.1
Patch0: ssss-0.5_memset_swapped_params.patch
BuildRequires: gmp-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
In cryptography, a secret sharing scheme is a method for distributing a secret
amongst a group of participants, each of which is allocated a share of the
secret. The secret can only be reconstructed when the shares are combined
together; individual shares are of no use on their own.
More formally, in a secret sharing scheme there is one dealer and n players.
The dealer gives a secret to the players, but only when specific conditions are
fulfilled. The dealer accomplishes this by giving each player a share in such a
way that any group of t (for threshold) or more players can together
reconstruct the secret but no group of less than t players can. Such a system
is called a (t,n)-threshold scheme.
%prep
%setup -q
%patch0
%build
gcc -W -Wall %{optflags} ssss.c -lgmp -o ssss
%install
for tool in ssss-combine ssss-split ; do
install -D -m 0755 ssss %{buildroot}%{_bindir}/$tool
install -D -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/$tool.1
done
%clean
rm -rf %{buildroot}
%files
%defattr(-,root,root,-)
%doc HISTORY LICENSE THANKS doc.html
%{_mandir}/man1/ssss-combine.1*
%{_mandir}/man1/ssss-split.1*
%{_bindir}/ssss-combine
%{_bindir}/ssss-split
%changelog