-
Notifications
You must be signed in to change notification settings - Fork 1
/
yaca.spec
92 lines (71 loc) · 2.32 KB
/
yaca.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
Name: yaca
Version: 0.0.6
Release: 0
Source0: %{name}-%{version}.tar.gz
License: Apache-2.0
Group: Security/Other
Summary: Yet Another Crypto API
BuildRequires: cmake
BuildRequires: python3-devel >= 3.4
BuildRequires: pkgconfig(openssl)
BuildRequires: boost-devel
Requires(post): /sbin/ldconfig
Requires(postun): /sbin/ldconfig
%description
The package provides Yet Another Crypto API.
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%license LICENSE
%{_libdir}/libyaca.so.0
%{_libdir}/libyaca.so.%{version}
%prep
%setup -q
%build
%{!?build_type:%define build_type "RELEASE"}
%cmake . -DCMAKE_BUILD_TYPE=%{build_type}
make -k %{?jobs:-j%jobs}
%install
%make_install
%py_byte_compile %{__python3} %{buildroot}/%{python3_sitelib}
%clean
rm -rf %{buildroot}
## Devel Package ###############################################################
%package devel
Summary: Yet Another Crypto API development files
Group: Security/Other
Requires: yaca = %{version}-%{release}
%description devel
The package provides Yet Another Crypto API development files.
%files devel
%{_libdir}/libyaca.so
%{_includedir}/yaca
%{_libdir}/pkgconfig/yaca.pc
## Examples Package ############################################################
%package examples
Summary: Yet Another Crypto API example files
Group: Security/Other
Requires: yaca = %{version}-%{release}
%description examples
The package provides Yet Another Crypto API example files.
%files examples
%{_bindir}/yaca-example*
%{_datadir}/%{name}/examples
## Tests Package ############################################################
%package tests
Summary: Yet Another Crypto API tests
Group: Security/Other
Requires: yaca = %{version}-%{release}
%description tests
The package provides Yet Another Crypto API unit tests.
%files tests
%{_bindir}/yaca-unit-tests*
## Python3 Package ############################################################
%package -n python3-yaca
Summary: Yet Another Crypto API Python3 bindings
Group: Security/Other
Requires: yaca = %{version}-%{release}
%description -n python3-yaca
The package provides Yet Another Crypto API bindings for Python3.
%files -n python3-yaca
%{python3_sitelib}/%{name}