Name: libcryptsvc
-Summary: nothing
+Summary: Crypto Service Library
Version: 0.0.1
Release: 6
-Group: Osp/Security
-License: APLv2
+Group: Security/Libraries
+License: Apache-2.0
Source0: %{name}-%{version}.tar.gz
BuildRequires: cmake
-
BuildRequires: pkgconfig(dlog)
BuildRequires: pkgconfig(openssl)
%description
+Crypto Service Library.
%package devel
-Summary: nothing
-Group: Bada/Security
+Summary: Crypto Service Library (Development)
+Group: Security/Libraries
Requires: %{name} = %{version}-%{release}
%description devel
+Crypto Service Library (Development).
%prep
%setup -q
%build
MAJORVER=`echo %{version} | awk 'BEGIN {FS="."}{print $1}'`
%ifarch %ix86 x86_64
-%cmake . -DARCH=x86 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DDESCRIPTION=%{summary}
+%cmake . -DARCH=x86 -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DDESCRIPTION="%{summary}"
%else
-%cmake . -DARCH=arm -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DDESCRIPTION=%{summary}
+%cmake . -DARCH=arm -DFULLVER=%{version} -DMAJORVER=${MAJORVER} -DDESCRIPTION="%{summary}"
%endif
make %{?jobs:-j%jobs}
%install
-rm -rf %{buildroot}
-mkdir -p %{buildroot}/usr/share/license
-cat LICENSE.APLv2 > %{buildroot}/usr/share/license/%{name}
-cat LICENSE.Flora >> %{buildroot}/usr/share/license/%{name}
-
%make_install
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
%files
+%license LICENSE.APLv2 LICENSE.Flora
%{_libdir}/*.so*
-%{_datadir}/license/%{name}
%files devel
%{_includedir}/*