File libsecp256k1.spec of Package libsecp256k1
#
# spec file for package libsecp256k1
#
Name: libsecp256k1
Version: 0
Release: 0
Summary: Optimized C library for EC operations on curve secp256k1
License: MIT
Url: https://github.com/bitcoin/secp256k1
Source0: %{name}-%{version}.tar.gz
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkg-config
%define soname 0
%package -n %{name}-%{soname}
Summary: Optimized C library for EC operations on curve secp256k1
Group: System/Libraries
%package devel
Summary: Development files for %{name}
Group: Development/Libraries/C and C++
Requires: %{name}-%{soname} = %{version}
%description
%description -n %{name}-%{soname}
The %{name} library is a work in progress and is being used to research best practices. Use at your own risk.
Features:
- secp256k1 ECDSA signing/verification and key generation.
- Adding/multiplying private/public keys.
- Serialization/parsing of private keys, public keys, signatures.
- Constant time, constant memory access signing and pubkey generation.
- Derandomized DSA (via RFC6979 or with a caller provided function.)
- Very efficient implementation.
%description devel
The %{name}-devel package contains libraries and header files for developing applications that use %{name}.
%prep
%setup -q
%build
./autogen.sh
%configure --disable-static
%{__make} %{?_smp_mflags}
%install
%{__make} install DESTDIR=%{buildroot}
%{__mkdir_p} %{buildroot}%{_libdir}/pkgconfig
%{__install} -m 0644 -p -t %{buildroot}%{_libdir}/pkgconfig *.pc
find %{buildroot} -name '*.la' -exec rm -f {} ';'
%check
./tests
%post -n %{name}-%{soname}
/sbin/ldconfig
%postun -n %{name}-%{soname}
/sbin/ldconfig
%files -n %{name}-%{soname}
%defattr(-,root,root,-)
%{_libdir}/*.so.*
%files devel
%defattr(-,root,root,-)
%{_includedir}/
%{_libdir}/pkgconfig/
%{_libdir}/*.so
%doc COPYING README.md TODO
%changelog