summaryrefslogtreecommitdiff
path: root/packaging/libcryptsvc.spec
blob: fbe1a55b47da6dac26f2fec25dbb678baa1b8f40 (plain)
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
Name:      libcryptsvc 
Summary:   nothing
Version:    0.0.1
Release:    4
Group:      Osp/Security
License:    APLv2
Source0:    %{name}-%{version}.tar.gz
BuildRequires: cmake

BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(openssl)

%description

%package devel
Summary: nothing
Group: Bada/Security
Requires: %{name} = %{version}-%{release}

%description devel

%prep
%setup -q

%build
%ifarch %{ix86}
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DARCH=x86
%else
cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DARCH=arm
%endif
make %{?jobs:-j%jobs}

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/usr/share/license	
cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
cp LICENSE.Flora %{buildroot}/usr/share/license/%{name}

%make_install

%files
%{_libdir}/*.so*
%{_datadir}/license/%{name}

%files devel
%{_includedir}/*
%{_libdir}/pkgconfig/cryptsvc.pc
%{_datadir}/license/%{name}