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: python3-setuptools
13 BuildRequires: pkgconfig(capi-base-common)
14 BuildRequires: pkgconfig(openssl3)
15 BuildRequires: boost-devel
16 %if "%build_type" == "COVERAGE"
19 Requires(post): /sbin/ldconfig
20 Requires(postun): /sbin/ldconfig
23 The package provides Yet Another Crypto API.
25 %post -p /sbin/ldconfig
27 %postun -p /sbin/ldconfig
31 %manifest yaca.manifest
32 %{_libdir}/libyaca.so.0
33 %{_libdir}/libyaca.so.%{version}
38 %global coverage_dir %{_datadir}/yaca-coverage
42 -DCMAKE_BUILD_TYPE=%{build_type} \
43 -DCOVERAGE_DIR=%{coverage_dir}
45 make -k %{?jobs:-j%jobs}
49 %py3_compile %{buildroot}/%{python3_sitelib}
54 ## Devel Package ##############################################################
56 Summary: Yet Another Crypto API development files
58 Requires: yaca = %{version}-%{release}
61 The package provides Yet Another Crypto API development files.
66 %{_libdir}/pkgconfig/yaca.pc
68 ## Examples Package ###########################################################
70 Summary: Yet Another Crypto API example files
72 Requires: yaca = %{version}-%{release}
75 The package provides Yet Another Crypto API example files.
78 %{_bindir}/yaca-example*
79 %{_datadir}/%{name}/examples
81 ## Tests Package ##############################################################
83 Summary: Yet Another Crypto API tests
85 Requires: yaca = %{version}-%{release}
88 The package provides Yet Another Crypto API unit tests.
91 %{_bindir}/yaca-unit-tests*
93 ## Python3 Package ############################################################
94 %package -n python3-yaca
95 Summary: Yet Another Crypto API Python3 bindings
97 Requires: yaca = %{version}-%{release}
99 %description -n python3-yaca
100 The package provides Yet Another Crypto API bindings for Python3.
102 %files -n python3-yaca
103 %{python3_sitelib}/%{name}
105 ## Coverage Package ###########################################################
106 %if "%build_type" == "COVERAGE"
108 Summary: Yet Another Crypto API code coverage data
109 Group: Security/Other
110 Requires: yaca-tests = %{version}-%{release}
111 Requires: yaca-debugsource = %{version}-%{release}
115 %description coverage
116 Yet Another Crypto API code coverage data
119 %{_bindir}/yaca-coverage.sh