2014-01-14 15:53:17 +01:00
|
|
|
#
|
|
|
|
# spec file for package libtpms
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libtpms
|
|
|
|
Version: 0.5.1
|
|
|
|
Release: 0
|
|
|
|
Summary: Library providing Trusted Platform Module (TPM) functionality
|
2014-01-14 15:53:57 +01:00
|
|
|
License: BSD-3-Clause
|
2014-01-14 15:53:17 +01:00
|
|
|
Group: Development/Libraries
|
|
|
|
Url: http://sourceforge.net/projects/ibmswtpm
|
|
|
|
#Source: http://bergerstefan.users.sourceforge.net/libtpms/%{name}-%{version}.tar.gz
|
|
|
|
Source0: %{name}-%{version}.tar.gz
|
|
|
|
BuildRequires: openssl-devel
|
2014-01-15 10:46:21 +01:00
|
|
|
BuildRequires: pkg-config
|
2014-01-15 09:14:16 +01:00
|
|
|
BuildRequires: mozilla-nspr-devel
|
2014-01-14 15:53:17 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
A library providing TPM functionality for VMs. Targeted for integration
|
|
|
|
into Qemu.
|
|
|
|
|
2014-01-15 10:42:37 +01:00
|
|
|
%package -n libtpms0
|
|
|
|
Summary: Library providing Trusted Platform Module (TPM) functionality
|
|
|
|
License: BSD-3-Clause
|
|
|
|
Group: Development/Libraries
|
|
|
|
|
|
|
|
%description -n libtpms0
|
|
|
|
A library providing TPM functionality for VMs. Targeted for integration
|
|
|
|
into Qemu.
|
|
|
|
|
2014-01-14 15:53:17 +01:00
|
|
|
%package devel
|
|
|
|
Summary: Include files for libtpms
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name} = %{version}
|
2014-01-15 11:02:46 +01:00
|
|
|
Requires: libopenssl-devel mozilla-nspr-devel
|
2014-01-14 15:53:17 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
Libtpms header files and documentation.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
%configure \
|
|
|
|
--with-openssl \
|
|
|
|
--disable-static
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%check
|
|
|
|
make check
|
|
|
|
|
|
|
|
%install
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_libdir}
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/libtpms
|
|
|
|
install -d -m 0755 $RPM_BUILD_ROOT%{_mandir}/man3
|
|
|
|
|
|
|
|
make %{?_smp_mflags} install DESTDIR=${RPM_BUILD_ROOT}
|
|
|
|
|
2014-01-15 10:46:04 +01:00
|
|
|
%post -n libtpms0 -p /sbin/ldconfig
|
2014-01-14 15:53:17 +01:00
|
|
|
|
2014-01-15 10:46:04 +01:00
|
|
|
%postun -n libtpms0 -p /sbin/ldconfig
|
2014-01-14 15:53:17 +01:00
|
|
|
|
2014-01-15 10:42:37 +01:00
|
|
|
%files -n libtpms0
|
2014-01-14 15:53:17 +01:00
|
|
|
%defattr(-, root, root, -)
|
|
|
|
%doc LICENSE README CHANGES
|
|
|
|
%{_libdir}/%{name}.so.%{version}
|
|
|
|
%{_libdir}/%{name}.so.0
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
%{_libdir}/%{name}.so
|
2014-01-15 11:11:13 +01:00
|
|
|
%{_libdir}/%{name}.la
|
2014-01-14 15:53:17 +01:00
|
|
|
%dir %{_includedir}/%{name}
|
|
|
|
%attr(644, root, root) %{_libdir}/pkgconfig/*.pc
|
|
|
|
%attr(644, root, root) %{_includedir}/%{name}/*.h
|
|
|
|
%attr(644, root, root) %{_mandir}/man3/*
|
|
|
|
|
|
|
|
%changelog
|