Initial import (#668052).
This commit is contained in:
parent
f13d1bc360
commit
9a7bbae282
108
libtpms.spec
Normal file
108
libtpms.spec
Normal file
@ -0,0 +1,108 @@
|
|||||||
|
# --- libtpm rpm-spec ---
|
||||||
|
|
||||||
|
%define name libtpms
|
||||||
|
%define version 0.5.1
|
||||||
|
%define release 4
|
||||||
|
|
||||||
|
# Valid crypto subsystems are 'freebl' and 'openssl'
|
||||||
|
%define crypto_subsystem freebl
|
||||||
|
|
||||||
|
Summary: Library providing Trusted Platform Module (TPM) functionality
|
||||||
|
Name: %{name}
|
||||||
|
Version: %{version}
|
||||||
|
Release: %{release}
|
||||||
|
License: BSD
|
||||||
|
Group: Development/Libraries
|
||||||
|
Url: http://sourceforge.net/projects/ibmswtpm
|
||||||
|
Source: http://bergerstefan.users.sourceforge.net/libtpms/%{name}-%{version}.tgz
|
||||||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
|
%if %{crypto_subsystem} == openssl
|
||||||
|
BuildRequires: openssl-devel
|
||||||
|
%else
|
||||||
|
BuildRequires: nss-softokn-freebl-devel >= 3.12.9-2, nss-softokn-devel >= 3.12.9-2, gmp-devel
|
||||||
|
Requires: nss-softokn-freebl >= 3.12.9-2, nss-softokn >= 3.12.9-2
|
||||||
|
%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, -)
|
||||||
|
%{_libdir}/%{name}.so.%{version}
|
||||||
|
%{_libdir}/%{name}.so.0
|
||||||
|
%doc LICENSE README CHANGES
|
||||||
|
|
||||||
|
%files devel
|
||||||
|
%defattr(-, root, root, -)
|
||||||
|
|
||||||
|
%{_libdir}/%{name}.so
|
||||||
|
%dir %{_includedir}/%{name}
|
||||||
|
%attr(644, root, root) %{_includedir}/%{name}/*.h
|
||||||
|
%attr(644, root, root) %{_mandir}/man3/*
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n libtpms
|
||||||
|
|
||||||
|
%build
|
||||||
|
make %{?_smp_mflags} -f makefile-libtpms all RPM_OPT_FLAGS="$RPM_OPT_FLAGS" \
|
||||||
|
CRYPTO_SUBSYSTEM=%{crypto_subsystem}
|
||||||
|
|
||||||
|
%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} -f makefile-libtpms install \
|
||||||
|
RPM_OPT_FLAGS="$RPM_OPT_FLAGS" \
|
||||||
|
DESTDIR="$RPM_BUILD_ROOT" \
|
||||||
|
CRYPTO_SUBSYSTEM=%{crypto_subsystem}
|
||||||
|
|
||||||
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* 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
|
||||||
|
|
||||||
|
* Tue Dec 02 2010 Stefan Berger
|
||||||
|
- 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
|
Loading…
Reference in New Issue
Block a user