Update to revision 9
This commit is contained in:
parent
b2a1dfb3a3
commit
d6d61354bd
1
.gitignore
vendored
1
.gitignore
vendored
@ -1 +1,2 @@
|
|||||||
/libtpms-0.5.1.tgz
|
/libtpms-0.5.1.tgz
|
||||||
|
/libtpms-0.5.1.tar.gz
|
||||||
|
39
libtpms.spec
39
libtpms.spec
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
%define name libtpms
|
%define name libtpms
|
||||||
%define version 0.5.1
|
%define version 0.5.1
|
||||||
%define release 8
|
%define release 9
|
||||||
|
|
||||||
# Valid crypto subsystems are 'freebl' and 'openssl'
|
# Valid crypto subsystems are 'freebl' and 'openssl'
|
||||||
%define crypto_subsystem freebl
|
%define crypto_subsystem freebl
|
||||||
@ -17,7 +17,7 @@ Release: %{release}
|
|||||||
License: BSD
|
License: BSD
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
Url: http://sourceforge.net/projects/ibmswtpm
|
Url: http://sourceforge.net/projects/ibmswtpm
|
||||||
Source: http://bergerstefan.users.sourceforge.net/libtpms/%{name}-%{version}.tgz
|
Source: http://bergerstefan.users.sourceforge.net/libtpms/%{name}-%{version}.tar.gz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
%if %{crypto_subsystem} == openssl
|
%if %{crypto_subsystem} == openssl
|
||||||
BuildRequires: openssl-devel
|
BuildRequires: openssl-devel
|
||||||
@ -26,7 +26,7 @@ BuildRequires: nss-devel >= 3.12.9-2
|
|||||||
BuildRequires: nss-softokn-freebl-devel >= 3.12.9-2
|
BuildRequires: nss-softokn-freebl-devel >= 3.12.9-2
|
||||||
BuildRequires: nss-softokn-freebl-static >= 3.12.9-2
|
BuildRequires: nss-softokn-freebl-static >= 3.12.9-2
|
||||||
BuildRequires: nss-softokn-devel >= 3.12.9-2, gmp-devel
|
BuildRequires: nss-softokn-devel >= 3.12.9-2, gmp-devel
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig gawk
|
||||||
Requires: nss-softokn-freebl >= 3.12.9-2, nss-softokn >= 3.12.9-2
|
Requires: nss-softokn-freebl >= 3.12.9-2, nss-softokn >= 3.12.9-2
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
@ -44,6 +44,7 @@ Libtpms header files and documentation.
|
|||||||
|
|
||||||
%files
|
%files
|
||||||
%defattr(-, root, root, -)
|
%defattr(-, root, root, -)
|
||||||
|
%{_libdir}/%{name}.la
|
||||||
%{_libdir}/%{name}.so.%{version}
|
%{_libdir}/%{name}.so.%{version}
|
||||||
%{_libdir}/%{name}.so.0
|
%{_libdir}/%{name}.so.0
|
||||||
%doc LICENSE README CHANGES
|
%doc LICENSE README CHANGES
|
||||||
@ -58,29 +59,43 @@ Libtpms header files and documentation.
|
|||||||
%attr(644, root, root) %{_mandir}/man3/*
|
%attr(644, root, root) %{_mandir}/man3/*
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n libtpms
|
%setup -q
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make %{?_smp_mflags} -f makefile-libtpms all RPM_OPT_FLAGS="$RPM_OPT_FLAGS" \
|
|
||||||
CRYPTO_SUBSYSTEM=%{crypto_subsystem} \
|
%if %{crypto_subsystem} == openssl
|
||||||
BUILD_TYPE=%{build_type}
|
%define _with_openssl --with-openssl
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%if %{build_type} == debug
|
||||||
|
%define _enable_debug --enable-debug
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%configure \
|
||||||
|
--disable-static \
|
||||||
|
--prefix=/usr \
|
||||||
|
--libdir=%{_libdir} \
|
||||||
|
%{?_with_openssl} \
|
||||||
|
%{?_enable_debug}
|
||||||
|
|
||||||
|
make %{?_smp_mflags}
|
||||||
|
make check
|
||||||
|
|
||||||
%install
|
%install
|
||||||
install -d -m 0755 $RPM_BUILD_ROOT%{_libdir}
|
install -d -m 0755 $RPM_BUILD_ROOT%{_libdir}
|
||||||
install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/libtpms
|
install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/libtpms
|
||||||
install -d -m 0755 $RPM_BUILD_ROOT%{_mandir}/man3
|
install -d -m 0755 $RPM_BUILD_ROOT%{_mandir}/man3
|
||||||
|
|
||||||
make %{?_smp_mflags} -f makefile-libtpms install \
|
make %{?_smp_mflags} install DESTDIR=${RPM_BUILD_ROOT}
|
||||||
RPM_OPT_FLAGS="$RPM_OPT_FLAGS" \
|
|
||||||
DESTDIR="$RPM_BUILD_ROOT" \
|
|
||||||
CRYPTO_SUBSYSTEM=%{crypto_subsystem} \
|
|
||||||
BUILD_TYPE=%{build_type}
|
|
||||||
|
|
||||||
%post -p /sbin/ldconfig
|
%post -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -p /sbin/ldconfig
|
%postun -p /sbin/ldconfig
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Aug 30 2011 Stefan Berger - 0.5.1-9
|
||||||
|
- new directory structure and build process
|
||||||
|
|
||||||
* Tue Jul 12 2011 Stefan Berger - 0.5.1-8
|
* Tue Jul 12 2011 Stefan Berger - 0.5.1-8
|
||||||
- added pkgconfig as build dependency
|
- added pkgconfig as build dependency
|
||||||
- enabling __powerpc__ build following Bz 728220
|
- enabling __powerpc__ build following Bz 728220
|
||||||
|
Loading…
Reference in New Issue
Block a user