-
Notifications
You must be signed in to change notification settings - Fork 63
/
aes256.spec
80 lines (58 loc) · 2.22 KB
/
aes256.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
# Copyright (c) 2014, Danilo Treffiletti urban82@gmail.com
# All rights reserved.
# Aes256 is free software: you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation, either version 2.1 of the License, or (at your option) any later version.
# Aes256 is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
# You should have received a copy of the GNU Lesser General Public License along with Aes256. If not, see http://www.gnu.org/licenses/.
# A copy of the license is included in the files COPYING and COPYING.LESSER.
%global _prefix /usr/local
%global SONAME aes256
Name: Aes256
Version: 0.1
Release: 0%{?dist}
Summary: AES 256 bit encryption and decryption
License: LGPL-2.1
Group: Productivity
Url: https://github.com/Urban82/Aes256
Source0: %{name}.tar.gz
BuildRequires: cmake
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: x86_64
%description
Aes256 is a library written in C++ that offer AES 256 bit encryption and decryption.
%package devel
Summary: Header files and libraries for %{name}
Group: Development/Libraries/C and C++
Requires: lib%{SONAME} = %{version}
%description devel
The %{name}-devel package contains the header files and
libraries for aes256.
%package libs
Summary: Shared library for %{name}
Group: Productivity
%description libs
Shared library for %{name}.
%prep
%setup -n %{name}
%build
mkdir -p build && cd build && cmake ../ && make -j16
%install
cd build && make install DESTDIR=%{buildroot}
find %{buildroot} -type f -name '*.a' -delete
%post
# -n %{libname} -p /sbin/ldconfig
%postun
# -n %{libname} -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc COPYING README.md
%{_bindir}/encrypt
%{_bindir}/decrypt
#%attr(0755,root,root) %{_bindir}/*
%files devel
%defattr(-,root,root,-)
%{_includedir}/
%{_libdir}/lib%{SONAME}.so*
%files libs
%defattr(0755,root,root,0755)
%{_libdir}/lib%{SONAME}.so.*
%changelog