6 License: Apache License, Version 2.0
7 Source0: %{name}-%{version}.tar.gz
10 BuildRequires: pkgconfig(openssl)
11 BuildRequires: pkgconfig(cryptsvc)
18 Requires: %{name} = %{version}-%{release}
26 MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
27 cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DDESCRIPTION=%{summary}
34 %{__make} DESTDIR=%{?buildroot:%{buildroot}} INSTALL_ROOT=%{?buildroot:%{buildroot}} install
35 rm -f %{?buildroot:%{buildroot}}%{_infodir}/dir
36 find %{?buildroot:%{buildroot}} -regex ".*\\.la$" | xargs rm -f --
38 mkdir -p %{buildroot}/usr/share/license
39 cp LICENSE.APLv2 %{buildroot}/usr/share/license/%{name}
44 %{_datadir}/license/%{name}
49 %{_libdir}/pkgconfig/dukgenerator.pc