Sophie

Sophie

distrib > Mageia > 7 > x86_64 > by-pkgid > fc11cf2cb30a8795cce334db501a3c0d > files > 3

ate-pairing-1.2-0.20161029.3.mga7.src.rpm

%define debug_package %{nil}
%define develname %mklibname zm -s -d

Name:       ate-pairing
Version:    1.2
Release:    %mkrel 0.20161029.3
Summary:    High-Speed Software Implementation of the Optimal Ate Pairing over Barreto-Naehrig Curves
License:    BSD
Group:      System/Libraries
Url:        https://github.com/herumi/ate-pairing
Source0:    https://github.com/herumi/ate-pairing/archive/ate-pairing-master.zip
Patch0:		ate-pairing-dynamic.patch
BuildRequires: 	swig
BuildRequires:	xbyak-devel
BuildRequires:	gmpxx-devel
ExclusiveArch:	x86_64

%description
This library provides functionality to compute the optimal ate pairing over 
Barreto-Naehrig (BN) curves. It is released under the BSD 3-Clause License.

%package -n     %{develname}
Summary:        Development files for %{name}
Group:          System/Libraries
Provides:	zm-static-devel

%description -n    %{develname}
This library provides functionality to compute the optimal ate pairing over 
Barreto-Naehrig (BN) curves. It is released under the BSD 3-Clause License.

%prep 
%setup -q  -n ate-pairing-master

%build
cd src
%make_build SUPPORT_SNARK=1

%install
%{__mkdir_p} %{buildroot}/%{_libdir}/
%{__mkdir_p} %{buildroot}/%{_includedir}/cybozu/
%{__install} -p lib/libzm.a %{buildroot}/%{_libdir}
%{__install} -p include/{bn.h,zm2.h,zm.h}  %{buildroot}/%{_includedir}
%{__install} -p include/cybozu/{benchmark.hpp,inttype.hpp,test.hpp}  %{buildroot}/%{_includedir}/cybozu/

%files -n %develname
%{_libdir}/libzm.a
%{_includedir}/*


%changelog
* Fri Sep 21 2018 umeabot <umeabot> 1.2-0.20161029.3.mga7
  (not released yet)
+ Revision: 1295005
- Mageia 7 Mass Rebuild

* Sun Oct 30 2016 dlucio <dlucio> 1.2-0.20161029.2.mga6
+ Revision: 1064126
- provides zm-static-devel

* Sun Oct 30 2016 dlucio <dlucio> 1.2-0.20161029.1.mga6
+ Revision: 1064102
- no usless macros
- no debug package
- only in 64 bits
- no comments
- use make_build macro
- gmpxx-devel as BR
- xbyak-devel as BR
- imported package ate-pairing