1 %{!?build_type:%define build_type "RELEASE"}
6 Source0: %{name}-%{version}.tar.gz
9 Summary: Yet Another Crypto API
11 BuildRequires: python3 >= 3.4
12 BuildRequires: pkgconfig(capi-base-common)
13 BuildRequires: pkgconfig(openssl1.1)
14 BuildRequires: boost-devel
15 %if %{build_type} == "COVERAGE"
18 Requires(post): /sbin/ldconfig
19 Requires(postun): /sbin/ldconfig
22 The package provides Yet Another Crypto API.
24 %post -p /sbin/ldconfig
26 %postun -p /sbin/ldconfig
30 %manifest yaca.manifest
31 %{_libdir}/libyaca.so.0
32 %{_libdir}/libyaca.so.%{version}
37 %global coverage_dir %{_datadir}/yaca-coverage
41 -DCMAKE_BUILD_TYPE=%{build_type} \
42 -DCOVERAGE_DIR=%{coverage_dir}
44 make -k %{?jobs:-j%jobs}
48 %py3_compile %{buildroot}/%{python3_sitearch}
53 ## Devel Package ##############################################################
55 Summary: Yet Another Crypto API development files
57 Requires: yaca = %{version}-%{release}
60 The package provides Yet Another Crypto API development files.
65 %{_libdir}/pkgconfig/yaca.pc
67 ## Examples Package ###########################################################
69 Summary: Yet Another Crypto API example files
71 Requires: yaca = %{version}-%{release}
74 The package provides Yet Another Crypto API example files.
77 %{_bindir}/yaca-example*
78 %{_datadir}/%{name}/examples
80 ## Tests Package ##############################################################
82 Summary: Yet Another Crypto API tests
84 Requires: yaca = %{version}-%{release}
87 The package provides Yet Another Crypto API unit tests.
90 %{_bindir}/yaca-unit-tests*
92 ## Python3 Package ############################################################
93 %package -n python3-yaca
94 Summary: Yet Another Crypto API Python3 bindings
96 Requires: yaca = %{version}-%{release}
98 %description -n python3-yaca
99 The package provides Yet Another Crypto API bindings for Python3.
101 %files -n python3-yaca
102 %{python3_sitearch}/%{name}
104 ## Coverage Package ###########################################################
105 %if "%{build_type}" == "COVERAGE"
107 Summary: Yet Another Crypto API code coverage data
108 Group: Security/Other
109 Requires: yaca-tests = %{version}-%{release}
110 Requires: yaca-debugsource = %{version}-%{release}
114 %description coverage
115 Yet Another Crypto API code coverage data
118 %{_bindir}/yaca-coverage.sh