2011-03-08 14:46:43 +00:00
|
|
|
# --- libtpm rpm-spec ---
|
|
|
|
|
|
|
|
%define name libtpms
|
2014-07-01 18:14:20 +00:00
|
|
|
%define version 0.5.2
|
2014-07-14 21:54:38 +00:00
|
|
|
%define release 2
|
2011-03-08 14:46:43 +00:00
|
|
|
|
|
|
|
# Valid crypto subsystems are 'freebl' and 'openssl'
|
|
|
|
%define crypto_subsystem freebl
|
|
|
|
|
2011-04-13 16:39:42 +00:00
|
|
|
# Valid build types are 'production' or 'debug'
|
|
|
|
%define build_type production
|
|
|
|
|
2011-03-08 14:46:43 +00:00
|
|
|
Summary: Library providing Trusted Platform Module (TPM) functionality
|
|
|
|
Name: %{name}
|
|
|
|
Version: %{version}
|
2014-07-01 18:14:20 +00:00
|
|
|
Release: %{release}%{?dist}
|
2011-03-08 14:46:43 +00:00
|
|
|
License: BSD
|
|
|
|
Group: Development/Libraries
|
|
|
|
Url: http://sourceforge.net/projects/ibmswtpm
|
2011-08-30 17:38:36 +00:00
|
|
|
Source: http://bergerstefan.users.sourceforge.net/libtpms/%{name}-%{version}.tar.gz
|
2012-02-17 13:01:32 +00:00
|
|
|
|
2014-07-14 21:39:31 +00:00
|
|
|
# Patches since 0.5.2
|
|
|
|
Patch0001: 0001-Fix-public-header-files-for-c.patch
|
|
|
|
Patch0002: 0002-Some-fixes-to-the-spm-spec.patch
|
|
|
|
|
2011-03-08 14:46:43 +00:00
|
|
|
%if %{crypto_subsystem} == openssl
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
%else
|
2011-04-13 17:02:41 +00:00
|
|
|
BuildRequires: nss-devel >= 3.12.9-2
|
2011-04-13 16:39:42 +00:00
|
|
|
BuildRequires: nss-softokn-freebl-devel >= 3.12.9-2
|
2014-07-14 21:39:31 +00:00
|
|
|
%if 0%{?rhel} > 6
|
2011-04-13 16:39:42 +00:00
|
|
|
BuildRequires: nss-softokn-freebl-static >= 3.12.9-2
|
2014-07-14 21:39:31 +00:00
|
|
|
%endif
|
2011-04-13 16:39:42 +00:00
|
|
|
BuildRequires: nss-softokn-devel >= 3.12.9-2, gmp-devel
|
2011-08-30 17:38:36 +00:00
|
|
|
BuildRequires: pkgconfig gawk
|
2014-07-01 18:14:20 +00:00
|
|
|
BuildRequires: automake autoconf libtool bash coreutils
|
2011-03-08 14:46:43 +00:00
|
|
|
Requires: nss-softokn-freebl >= 3.12.9-2, nss-softokn >= 3.12.9-2
|
2013-03-25 12:47:03 +00:00
|
|
|
Requires: gmp
|
2011-03-08 14:46:43 +00:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
A library providing TPM functionality for VMs. Targeted for integration
|
|
|
|
into Qemu.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Include files for libtpms
|
|
|
|
Group: Development/Libraries
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Libtpms header files and documentation.
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-, root, root, -)
|
2011-08-30 17:38:36 +00:00
|
|
|
%{_libdir}/%{name}.la
|
2011-03-08 14:46:43 +00:00
|
|
|
%{_libdir}/%{name}.so.%{version}
|
|
|
|
%{_libdir}/%{name}.so.0
|
|
|
|
%doc LICENSE README CHANGES
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-, root, root, -)
|
|
|
|
|
|
|
|
%{_libdir}/%{name}.so
|
|
|
|
%dir %{_includedir}/%{name}
|
2011-05-26 02:12:55 +00:00
|
|
|
%attr(644, root, root) %{_libdir}/pkgconfig/*.pc
|
2011-03-08 14:46:43 +00:00
|
|
|
%attr(644, root, root) %{_includedir}/%{name}/*.h
|
|
|
|
%attr(644, root, root) %{_mandir}/man3/*
|
|
|
|
|
|
|
|
%prep
|
2011-08-30 17:38:36 +00:00
|
|
|
%setup -q
|
2011-03-08 14:46:43 +00:00
|
|
|
|
2014-07-14 21:39:31 +00:00
|
|
|
%patch0001 -p1
|
2014-07-14 22:05:31 +00:00
|
|
|
%patch0002 -p1
|
2014-07-14 21:39:31 +00:00
|
|
|
|
2011-03-08 14:46:43 +00:00
|
|
|
%build
|
2011-08-30 17:38:36 +00:00
|
|
|
|
|
|
|
%if %{crypto_subsystem} == openssl
|
|
|
|
%define _with_openssl --with-openssl
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{build_type} == debug
|
|
|
|
%define _enable_debug --enable-debug
|
|
|
|
%endif
|
|
|
|
|
2014-07-01 18:14:20 +00:00
|
|
|
./bootstrap.sh
|
2011-08-30 17:38:36 +00:00
|
|
|
%configure \
|
|
|
|
--disable-static \
|
|
|
|
--prefix=/usr \
|
|
|
|
--libdir=%{_libdir} \
|
|
|
|
%{?_with_openssl} \
|
2014-07-14 21:39:31 +00:00
|
|
|
%{?_enable_debug}
|
2011-08-30 17:38:36 +00:00
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
2014-07-14 21:39:31 +00:00
|
|
|
|
|
|
|
%check
|
2011-08-30 17:38:36 +00:00
|
|
|
make check
|
2011-03-08 14:46:43 +00:00
|
|
|
|
|
|
|
%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
|
|
|
|
|
2011-08-30 17:38:36 +00:00
|
|
|
make %{?_smp_mflags} install DESTDIR=${RPM_BUILD_ROOT}
|
2011-03-08 14:46:43 +00:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%changelog
|
2014-07-01 18:14:20 +00:00
|
|
|
* Mon Jun 30 2014 Stefan Berger - 0.5.2-1
|
|
|
|
- Updated to version 0.5.2
|
|
|
|
- coverity fixes
|
|
|
|
- fixes for ARM64 using __aarch64__
|
|
|
|
|
2014-06-07 05:45:14 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-20.1
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2013-08-03 07:16:31 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-19
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-03-25 12:47:03 +00:00
|
|
|
* Mon Mar 25 2013 Stefan Berger - 0.5.1-18
|
|
|
|
- Ran autoreconf for support of aarch64
|
|
|
|
- Checking for __arm64__ in code
|
|
|
|
|
2013-02-14 05:22:41 +00:00
|
|
|
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-17
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
|
|
2012-07-19 21:26:11 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-16
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-17 13:01:32 +00:00
|
|
|
* Fri Feb 17 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.5.1-15
|
|
|
|
- Add dist tag as required by package guidelines
|
|
|
|
|
2012-01-27 18:21:25 +00:00
|
|
|
* Fri Jan 27 2012 Stefan Berger - 0.5.1-14
|
|
|
|
- fix gcc-4.7 compilation problem
|
|
|
|
|
2012-01-13 08:33:24 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-13
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-12-20 17:29:33 +00:00
|
|
|
* Tue Dec 20 2011 Dan Horák <dan[at]danny.cz> - 0.5.1-12
|
|
|
|
- fix build on secondary arches
|
|
|
|
|
2011-11-04 01:32:38 +00:00
|
|
|
* Wed Nov 2 2011 Stefan Berger - 0.5.1-11
|
|
|
|
- added (lib)gmp as runtime dependency
|
|
|
|
|
2014-07-14 21:39:31 +00:00
|
|
|
* Sat Oct 8 2011 Stefan Berger - 0.5.1-10
|
2011-10-08 19:30:39 +00:00
|
|
|
- internal fixes; callback fixes
|
|
|
|
|
2011-08-30 17:38:36 +00:00
|
|
|
* Tue Aug 30 2011 Stefan Berger - 0.5.1-9
|
|
|
|
- new directory structure and build process
|
|
|
|
|
2011-08-08 10:26:40 +00:00
|
|
|
* Tue Jul 12 2011 Stefan Berger - 0.5.1-8
|
|
|
|
- added pkgconfig as build dependency
|
|
|
|
- enabling __powerpc__ build following Bz 728220
|
|
|
|
|
2011-07-05 12:34:03 +00:00
|
|
|
* Wed May 25 2011 Stefan Berger - 0.5.1-7
|
|
|
|
- increasing NVRAM area space to have enough room for certificates
|
|
|
|
|
2011-05-26 02:12:55 +00:00
|
|
|
* Wed May 25 2011 Stefan Berger - 0.5.1-6
|
|
|
|
- adding libtpms.pc pkg-config file
|
|
|
|
|
2011-04-13 16:39:42 +00:00
|
|
|
* Wed Apr 13 2011 Stefan Berger - 0.5.1-5
|
|
|
|
- adding BuildRequires for nss-softokn-freebl-static
|
|
|
|
- several libtpms-internal changes around state serialization and
|
|
|
|
deserialization
|
|
|
|
- fixes to libtpms makefile (makefile-libtpms)
|
|
|
|
- adding build_type to generate a debug or production build
|
2011-04-13 17:02:41 +00:00
|
|
|
- need nss-devel to have nss-config
|
2011-04-13 16:39:42 +00:00
|
|
|
|
2011-03-08 14:46:43 +00:00
|
|
|
* Tue Mar 08 2011 Stefan Berger - 0.5.1-4
|
|
|
|
- small fixes to libtpms makefile
|
|
|
|
|
|
|
|
* Fri Feb 25 2011 Stefan Berger - 0.5.1-3
|
|
|
|
- removing release from tar ball name
|
|
|
|
- Use {?_smp_mflags} for make rather than hardcoding it
|
|
|
|
- Fixing post and postun scripts; removing the scripts for devel package
|
|
|
|
- Fixing usage of defattr
|
|
|
|
- Adding version information into the changelog headers and spaces between the changelog entries
|
|
|
|
- Adding LICENSE, README and CHANGELOG file into tar ball and main rpm
|
|
|
|
- Removing clean section
|
|
|
|
- removed command to clean the build root
|
|
|
|
- adding library version to the libries required for building and during
|
|
|
|
runtime
|
|
|
|
- Extended Requires in devel package with {?_isa}
|
|
|
|
|
|
|
|
* Fri Feb 18 2011 Stefan Berger - 0.5.1-2
|
|
|
|
- make rpmlint happy by replacing tabs with spaces
|
|
|
|
- providing a valid URL for the tgz file
|
|
|
|
- release is now 2 -> 0.5.1-2
|
|
|
|
|
|
|
|
* Mon Jan 17 2011 Stefan Berger - 0.5.1-1
|
|
|
|
- Update version to 0.5.1
|
|
|
|
|
|
|
|
* Fri Jan 14 2011 Stefan Berger - 0.5.0-1
|
|
|
|
- Changes following Fedora review comments
|
|
|
|
|
2014-07-14 21:39:31 +00:00
|
|
|
* Thu Dec 2 2010 Stefan Berger
|
2011-03-08 14:46:43 +00:00
|
|
|
- Small tweaks after reading the FedoreCore packaging requirements
|
|
|
|
|
|
|
|
* Tue Nov 16 2010 Stefan Berger
|
|
|
|
- Created initial version of rpm spec files
|
|
|
|
- Version of library is now 0.5.0
|
|
|
|
- Debuginfo rpm is built but empty -- seems to be a known problem
|
|
|
|
Check https://bugzilla.redhat.com/show_bug.cgi?id=209316
|