Hello, I recently had a need to install openssl-tpm-engine on an RPM based system and created a simplistic spec file for it, and thought it might be useful to others if only as a basis for a proper spec file.
There's probably a number of things Wrong(tm) with it, but for whatever it's worth, it's attached. -Jan
%define name openssl-tpm-engine
%define version 0.4.2
%define release 1
Name: %{name}
Version: %{version}
Release: %{release}
Summary: OpenSSL engine and tools to interface with the TSS API
Group: Applications/System
License: OpenSSL
URL:
http://sourceforge.net/projects/trousers/files/OpenSSL%20TPM%20Engine/
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: autoconf automake libtool openssl-devel
%description
This package contains 2 sets of code, a command-line utility used to
generate a TSS key blob and write it to disk and an OpenSSL engine which
interfaces with the TSS API.
%prep
%setup -q
%build
sh bootstrap.sh
sh configure --with-openssl=/usr --prefix=/usr
make %{?_smp_mflags}
%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT
if [ "$RPM_BUILD_ROOT/usr/lib" != "$RPM_BUILD_ROOT/%{_libdir}" ]; then
mkdir -p $RPM_BUILD_ROOT/%{_libdir}
cp -R $RPM_BUILD_ROOT/usr/lib/* $RPM_BUILD_ROOT/%{_libdir}/
rm -fr $RPM_BUILD_ROOT/usr/lib
fi
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%doc LICENSE README
%{_libdir}/openssl/engines/libtpm.so.0.0.0
%{_libdir}/openssl/engines/libtpm.so
%{_libdir}/openssl/engines/libtpm.so.0
%{_libdir}/openssl/engines/libtpm.la
%{_bindir}/create_tpm_key
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%changelog
* Thu Feb 27 2014 Jan Schaumann <[email protected]> - 0.4.2-1
- initial rpm spec file, pulling sources of 0.4.2 from
pgp39rsVKjqtN.pgp
Description: PGP signature
------------------------------------------------------------------------------ Subversion Kills Productivity. Get off Subversion & Make the Move to Perforce. With Perforce, you get hassle-free workflows. Merge that actually works. Faster operations. Version large binaries. Built-in WAN optimization and the freedom to use Git, Perforce or both. Make the move to Perforce. http://pubads.g.doubleclick.net/gampad/clk?id=122218951&iu=/4140/ostg.clktrk
_______________________________________________ TrouSerS-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/trousers-users
