File ssss.spec of Package ssss
# norootforbuild
Name: ssss
Version: 0.5
Release: 0
#
License: GPL
Group: Productivity/Security
#
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: gmp-devel xmltoman
URL: http://point-at-infinity.org/ssss/
Source: http://point-at-infinity.org/ssss/ssss-%{version}.tar.gz
Patch: ssss-0.5_build.patch
Patch1: ssss-0.5_memset_swapped_params.patch
#
Summary: Shamir's Secret Sharing Scheme
%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
%patch
%patch1
%build
%{__make} OPTFLAGS="%{optflags}"
%install
%{__install} -D -m 0755 ssss-combine %{buildroot}%{_bindir}/ssss-combine
%{__install} -D -m 0755 ssss-split %{buildroot}%{_bindir}/ssss-split
%{__install} -D -m 0644 ssss.1 %{buildroot}%{_mandir}/man1/ssss.1
%{__ln_s} -f ssss.1 %{buildroot}%{_mandir}/man1/ssss-combine.1
%{__ln_s} -f ssss.1 %{buildroot}%{_mandir}/man1/ssss-split.1
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{_bindir}/ssss-combine
%{_bindir}/ssss-split
%{_mandir}/man1/ssss.1*
%{_mandir}/man1/ssss-combine.1*
%{_mandir}/man1/ssss-split.1*
%doc ssss.1.html doc.html HISTORY LICENSE THANKS