4 Source0: %{name}-%{version}.tar.gz
7 Summary: Yet Another Crypto API
9 BuildRequires: python3 >= 3.4
10 BuildRequires: pkgconfig(capi-base-common)
11 BuildRequires: pkgconfig(openssl1.1)
12 Requires(post): /sbin/ldconfig
13 Requires(postun): /sbin/ldconfig
16 The package provides Yet Another Crypto API.
18 %post -p /sbin/ldconfig
20 %postun -p /sbin/ldconfig
24 %manifest yaca.manifest
25 %{_libdir}/libyaca.so.0
26 %{_libdir}/libyaca.so.%{version}
32 %{!?build_type:%define build_type "RELEASE"}
34 %cmake . -DCMAKE_BUILD_TYPE=%{build_type}
35 make -k %{?jobs:-j%jobs}
39 %py3_compile %{buildroot}/%{python3_sitelib}
44 ## Devel Package ###############################################################
46 Summary: Yet Another Crypto API development files
48 Requires: yaca = %{version}-%{release}
51 The package provides Yet Another Crypto API development files.
56 %{_libdir}/pkgconfig/yaca.pc
58 ## Examples Package ############################################################
60 Summary: Yet Another Crypto API example files
62 Requires: yaca = %{version}-%{release}
65 The package provides Yet Another Crypto API example files.
68 %{_bindir}/yaca-example*
69 %{_datadir}/%{name}/examples
71 ## Python3 Package ############################################################
72 %package -n python3-yaca
73 Summary: Yet Another Crypto API Python3 bindings
75 Requires: yaca = %{version}-%{release}
77 %description -n python3-yaca
78 The package provides Yet Another Crypto API bindings for Python3.
80 %files -n python3-yaca
81 %{python3_sitelib}/%{name}