%define libnamedev %mklibname snark -d %define libnamestaticdev %mklibname snark -s -d Name: libsnark Version: 20140603 Release: %mkrel 9 Summary: A C++ library for zkSNARK proofs Group: System/Libraries License: MIT URL: https://github.com/scipr-lab/libsnark/ Source0: https://github.com/scipr-lab/libsnark/archive/%{name}-master.zip Patch0: libsnark-makefile.patch Patch1: libsnark-gcc7.patch # ate-paring (aka zm-static-devel) won't compile under i586 or ARM ExclusiveArch: x86_64 BuildRequires: gmp-devel BuildRequires: zm-static-devel BuildRequires: pkgconfig(libprocps) BuildRequires: gmpxx-devel BuildRequires: libboost-devel BuildRequires: pkgconfig(openssl) %description This library implements zkSNARK schemes, which are a cryptographic method for proving/verifying, in zero knowledge, the integrity of computations. %package -n %libnamedev Summary: Development files for %{name} Provides: snark-devel %description -n %libnamedev This library implements zkSNARK schemes, which are a cryptographic method for proving/verifying, in zero knowledge, the integrity of computations. %package -n %libnamestaticdev Summary: Development files for %{name} Provides: snark-static-devel %description -n %libnamestaticdev This library implements zkSNARK schemes, which are a cryptographic method for proving/verifying, in zero knowledge, the integrity of computations. %prep %setup -q -n libsnark-master %autopatch -p1 %build %make_build lib OPTFLAGS="%{optflags} -march=native -mtune=native" %install %make_install PREFIX=%{buildroot}%{_prefix} LIBDIR=%{buildroot}%{_libdir} %make_install PREFIX=%{buildroot}%{_prefix} LIBDIR=%{buildroot}%{_libdir} STATIC=1 %files -n %libnamedev %doc README.md AUTHORS %license LICENSE %{_includedir}/libsnark/ %{_libdir}/libsnark.so %files -n %libnamestaticdev %{_libdir}/libsnark.a %changelog * Fri Jan 11 2019 daviddavid <daviddavid> 20140603-9.mga7 + Revision: 1354729 - rebuild for new procps 3.3.15 * Tue Oct 16 2018 wally <wally> 20140603-8.mga7 + Revision: 1321059 - rebuild for new boost 1.68.0 * Sun Sep 23 2018 umeabot <umeabot> 20140603-7.mga7 + Revision: 1299155 - Mageia 7 Mass Rebuild * Mon Dec 25 2017 wally <wally> 20140603-6.mga7 + Revision: 1184757 - rebuild for new boost * Tue Nov 21 2017 tv <tv> 20140603-5.mga7 + Revision: 1178332 - rebuild for boost 1.65 * Sat Sep 16 2017 daviddavid <daviddavid> 20140603-4.mga7 + Revision: 1154677 - add patch to fix build with gcc7 - reenable debug package - fix owner of include dir + tv <tv> - rebuild with latest boost * Sun Oct 30 2016 dlucio <dlucio> 20140603-3.mga6 + Revision: 1064145 - add some provides * Sun Oct 30 2016 dlucio <dlucio> 20140603-2.mga6 + Revision: 1064136 - only works on x86_64 - openssl-devel as BR - libboost-devel as BR - gmpxx-devel as BR - procps-devel as BR - zm-static-devel as BR - gmp-devel as BR - imported package libsnark