9f27d56793100a9ebf2ca68401beddb971388ba1
[platform/core/security/dukgenerator.git] / packaging / dukgenerator.spec
1 Name:      dukgenerator 
2 Summary:   nothing
3 Version:    1.0.0
4 Release:    5
5 Group:      security
6 License:    Apache License, Version 2.0
7 Source0:    %{name}-%{version}.tar.gz
8 BuildRequires: cmake
9
10 BuildRequires: pkgconfig(openssl)
11 BuildRequires: libcryptsvc-devel
12
13 %description
14
15 %package devel
16 Summary: nothing
17 Group: security
18 Requires: %{name} = %{version}-%{release}
19
20 %description devel
21
22 %prep
23 %setup -q
24
25 %build
26 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix}
27 make %{?jobs:-j%jobs}
28
29
30 %install
31 rm -rf %{buildroot}
32 #%make_install
33 %{__make} DESTDIR=%{?buildroot:%{buildroot}} INSTALL_ROOT=%{?buildroot:%{buildroot}} install
34 rm -f %{?buildroot:%{buildroot}}%{_infodir}/dir
35 find %{?buildroot:%{buildroot}} -regex ".*\\.la$" | xargs rm -f --
36
37 mkdir -p %{buildroot}/usr/share/license
38 cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
39
40
41 %files
42 %{_libdir}/*.a
43 %{_datadir}/license/%{name}
44
45
46 %files devel
47 %{_includedir}/*
48 %{_libdir}/pkgconfig/dukgenerator.pc
49 %{_datadir}/license/%{name}
50