1 # --- libtpm rpm-spec ---
4 %define version @VERSION@
7 # Valid crypto subsystems are 'freebl' and 'openssl'
8 %if "
%{?crypto_subsystem}"
== ""
9 %define crypto_subsystem openssl
12 # Valid build types are 'production' or 'debug'
13 %define build_type production
15 Summary: Library providing Trusted Platform Module
(TPM
) functionality
18 Release: %{release}%{?dist}
20 Group: Development
/Libraries
21 Url
: http
://github.com
/stefanberger
/libtpms
22 Source: libtpms
-%{version}.tar.gz
23 Provides: libtpms
-%{crypto_subsystem} = %{version}-%{release}
25 %if "
%{crypto_subsystem}"
== "openssl"
26 BuildRequires
: openssl
-devel
28 BuildRequires
: nss
-devel
>= 3.12.9-2
29 BuildRequires
: nss
-softokn
-freebl
-devel
>= 3.12.9-2
30 %if 0%{?rhel} > 6 || 0%{?fedora} >= 13
31 BuildRequires
: nss
-softokn
-freebl
-static
>= 3.12.9-2
33 BuildRequires
: nss
-softokn
-devel
>= 3.12.9-2, gmp
-devel
35 BuildRequires
: pkgconfig gawk sed
36 BuildRequires
: automake autoconf libtool bash coreutils gcc
-c
++
38 %if "
%{crypto_subsystem}"
== "openssl"
41 Requires: nss
-softokn
-freebl
>= 3.12.9-2, nss
-softokn
>= 3.12.9-2
46 A library providing TPM functionality
for VMs. Targeted
for integration
50 Summary: Include files
for libtpms
51 Group: Development
/Libraries
52 Requires: %{name}%{?_isa} = %{version}-%{release}
55 Libtpms header files and documentation.
58 %defattr(-, root
, root
, -)
59 %{_libdir}/%{name}.so.%{version}
60 %{_libdir}/%{name}.so
.0
61 %doc LICENSE README CHANGES
64 %defattr(-, root
, root
, -)
67 %dir %{_includedir}/%{name}
68 %attr(644, root
, root
) %{_libdir}/pkgconfig
/*.pc
69 %attr(644, root
, root
) %{_includedir}/%{name}/*.h
70 %attr(644, root
, root
) %{_mandir}/man3
/*
77 %if "
%{crypto_subsystem}"
== "openssl"
78 %define _with_openssl
--with
-openssl
81 %if "
%{build_type}"
== "debug"
82 %define _enable_debug
--enable-debug
85 %if "
%{build_type}"
== "debug"
102 install -d
-m
0755 $RPM_BUILD_ROOT
%{_libdir}
103 install -d
-m
0755 $RPM_BUILD_ROOT
%{_includedir}/libtpms
104 install -d
-m
0755 $RPM_BUILD_ROOT
%{_mandir}/man3
106 make %{?_smp_mflags} install DESTDIR=${RPM_BUILD_ROOT}
108 rm -f $RPM_BUILD_ROOT
%{_libdir}/libtpms.la
110 %post -p
/sbin
/ldconfig
112 %postun -p
/sbin
/ldconfig
115 * Fri Jul
01 2022 Stefan Berger
- 0.9.5-1
116 - Release of version
0.9.5
118 * Mon Apr
25 2022 Stefan Berger
- 0.9.4-1
119 - Release of version
0.9.4
121 * Mon Mar
07 2022 Stefan Berger
- 0.9.3-1
122 - Release of version
0.9.3
124 * Thu Jan
06 2022 Stefan Berger
- 0.9.2-1
125 - Release of version
0.9.2
127 * Wed Nov
24 2021 Stefan Berger
- 0.9.1-1
128 - Release of version
0.9.1
130 * Wed Sep
29 2021 Stefan Berger
- 0.9.0-1
131 - Release of version
0.9.0 (rev.
164)
133 * Wed Feb
24 2021 Stefan Berger
- 0.8.0-1
134 - Release of version
0.8.0 (rev.
162)
136 * Fri Jul
19 2019 Stefan Berger
- 0.7.0-1
137 - Release of version
0.7.0 (rev.
150)
139 * Mon Jan
14 2018 Stefan Berger
- 0.6.0-1
140 - Release of version
0.6.0 with TPM
2.0 support
142 * Mon Jun
30 2014 Stefan Berger
- 0.5.2-1
143 - Updated to version
0.5.2
145 - fixes
for ARM64 using __aarch64__
147 * Sat Jun
07 2014 Fedora
Release Engineering
<rel
-eng@lists.fedoraproject.org
> - 0.5.1-20.1
148 - Rebuilt
for https
://fedoraproject.org
/wiki
/Fedora_21_Mass_Rebuild
150 * Sat Aug
03 2013 Fedora
Release Engineering
<rel
-eng@lists.fedoraproject.org
> - 0.5.1-19
151 - Rebuilt
for https
://fedoraproject.org
/wiki
/Fedora_20_Mass_Rebuild
153 * Mon Mar
25 2013 Stefan Berger
- 0.5.1-18
154 - Ran autoreconf
for support of aarch64
155 - Checking
for __arm64__
in code
157 * Thu Feb
14 2013 Fedora
Release Engineering
<rel
-eng@lists.fedoraproject.org
> - 0.5.1-17
158 - Rebuilt
for https
://fedoraproject.org
/wiki
/Fedora_19_Mass_Rebuild
160 * Thu Jul
19 2012 Fedora
Release Engineering
<rel
-eng@lists.fedoraproject.org
> - 0.5.1-16
161 - Rebuilt
for https
://fedoraproject.org
/wiki
/Fedora_18_Mass_Rebuild
163 * Fri Feb
17 2012 Peter Robinson
<pbrobinson@fedoraproject.org
> - 0.5.1-15
164 - Add dist tag as required by package guidelines
166 * Fri Jan
27 2012 Stefan Berger
- 0.5.1-14
167 - fix gcc
-4.7 compilation problem
169 * Fri Jan
13 2012 Fedora
Release Engineering
<rel
-eng@lists.fedoraproject.org
> - 0.5.1-13
170 - Rebuilt
for https
://fedoraproject.org
/wiki
/Fedora_17_Mass_Rebuild
172 * Tue Dec
20 2011 Dan HorĂ¡k
<dan
[at
]danny.cz
> - 0.5.1-12
173 - fix build on secondary arches
175 * Wed Nov
2 2011 Stefan Berger
- 0.5.1-11
176 - added
(lib
)gmp as runtime dependency
178 * Sat Oct
8 2011 Stefan Berger
- 0.5.1-10
179 - internal fixes
; callback fixes
181 * Tue Aug
30 2011 Stefan Berger
- 0.5.1-9
182 - new directory structure and build process
184 * Tue Jul
12 2011 Stefan Berger
- 0.5.1-8
185 - added pkgconfig as build dependency
186 - enabling __powerpc__ build following Bz
728220
188 * Wed May
25 2011 Stefan Berger
- 0.5.1-7
189 - increasing NVRAM area space to have enough room
for certificates
191 * Wed May
25 2011 Stefan Berger
- 0.5.1-6
192 - adding libtpms.pc pkg
-config file
194 * Wed Apr
13 2011 Stefan Berger
- 0.5.1-5
195 - adding BuildRequires
for nss
-softokn
-freebl
-static
196 - several libtpms
-internal changes around state serialization and
198 - fixes to libtpms makefile
(makefile
-libtpms
)
199 - adding build_type to generate a debug or production build
200 - need nss
-devel to have nss
-config
202 * Tue Mar
08 2011 Stefan Berger
- 0.5.1-4
203 - small fixes to libtpms makefile
205 * Fri Feb
25 2011 Stefan Berger
- 0.5.1-3
206 - removing release from tar ball name
207 - Use
{?_smp_mflags
} for make rather than hardcoding it
208 - Fixing post and postun scripts
; removing the scripts
for devel package
209 - Fixing usage of defattr
210 - Adding version information into the changelog headers and spaces between the changelog entries
211 - Adding LICENSE
, README and CHANGELOG file into tar ball and main rpm
212 - Removing clean section
213 - removed
command to clean the build root
214 - adding library version to the libraries required
for building and during
216 - Extended
Requires in devel package with
{?_isa
}
218 * Fri Feb
18 2011 Stefan Berger
- 0.5.1-2
219 - make rpmlint happy by replacing tabs with spaces
220 - providing a valid
URL for the tgz file
221 - release is now
2 -> 0.5.1-2
223 * Mon Jan
17 2011 Stefan Berger
- 0.5.1-1
224 - Update version to
0.5.1
226 * Fri Jan
14 2011 Stefan Berger
- 0.5.0-1
227 - Changes following Fedora review comments
229 * Thu Dec
2 2010 Stefan Berger
230 - Small tweaks after reading the FedoreCore packaging requirements
232 * Tue Nov
16 2010 Stefan Berger
233 - Created initial version of rpm spec files
234 - Version of library is now
0.5.0
235 - Debuginfo rpm is built but empty
-- seems to be a known problem
236 Check https
://bugzilla.redhat.com
/show_bug.cgi?id
=209316