]> git.proxmox.com Git - libtpms.git/blob - dist/libtpms.spec.in
rpm/debian: Add 0.9.5 entry in changelog
[libtpms.git] / dist / libtpms.spec.in
1 # --- libtpm rpm-spec ---
2
3 %define name @PACKAGE@
4 %define version @VERSION@
5 %define release 1
6
7 # Valid crypto subsystems are 'freebl' and 'openssl'
8 %if "%{?crypto_subsystem}" == ""
9 %define crypto_subsystem openssl
10 %endif
11
12 # Valid build types are 'production' or 'debug'
13 %define build_type production
14
15 Summary: Library providing Trusted Platform Module (TPM) functionality
16 Name: %{name}
17 Version: %{version}
18 Release: %{release}%{?dist}
19 License: BSD
20 Group: Development/Libraries
21 Url: http://github.com/stefanberger/libtpms
22 Source: libtpms-%{version}.tar.gz
23 Provides: libtpms-%{crypto_subsystem} = %{version}-%{release}
24
25 %if "%{crypto_subsystem}" == "openssl"
26 BuildRequires: openssl-devel
27 %else
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
32 %endif
33 BuildRequires: nss-softokn-devel >= 3.12.9-2, gmp-devel
34 %endif
35 BuildRequires: pkgconfig gawk sed
36 BuildRequires: automake autoconf libtool bash coreutils gcc-c++
37
38 %if "%{crypto_subsystem}" == "openssl"
39 Requires: openssl
40 %else
41 Requires: nss-softokn-freebl >= 3.12.9-2, nss-softokn >= 3.12.9-2
42 %endif
43 Requires: gmp
44
45 %description
46 A library providing TPM functionality for VMs. Targeted for integration
47 into Qemu.
48
49 %package devel
50 Summary: Include files for libtpms
51 Group: Development/Libraries
52 Requires: %{name}%{?_isa} = %{version}-%{release}
53
54 %description devel
55 Libtpms header files and documentation.
56
57 %files
58 %defattr(-, root, root, -)
59 %{_libdir}/%{name}.so.%{version}
60 %{_libdir}/%{name}.so.0
61 %doc LICENSE README CHANGES
62
63 %files devel
64 %defattr(-, root, root, -)
65
66 %{_libdir}/%{name}.so
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/*
71
72 %prep
73 %setup -q
74
75 %build
76
77 %if "%{crypto_subsystem}" == "openssl"
78 %define _with_openssl --with-openssl
79 %endif
80
81 %if "%{build_type}" == "debug"
82 %define _enable_debug --enable-debug
83 %endif
84
85 %if "%{build_type}" == "debug"
86 CFLAGS=-O0
87 %endif
88 ./autogen.sh \
89 --with-tpm2 \
90 --disable-static \
91 --prefix=/usr \
92 --libdir=%{_libdir} \
93 %{?_with_openssl} \
94 %{?_enable_debug}
95
96 make %{?_smp_mflags}
97
98 %check
99 make check
100
101 %install
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
105
106 make %{?_smp_mflags} install DESTDIR=${RPM_BUILD_ROOT}
107
108 rm -f $RPM_BUILD_ROOT%{_libdir}/libtpms.la
109
110 %post -p /sbin/ldconfig
111
112 %postun -p /sbin/ldconfig
113
114 %changelog
115 * Fri Jul 01 2022 Stefan Berger - 0.9.5-1
116 - Release of version 0.9.5
117
118 * Mon Apr 25 2022 Stefan Berger - 0.9.4-1
119 - Release of version 0.9.4
120
121 * Mon Mar 07 2022 Stefan Berger - 0.9.3-1
122 - Release of version 0.9.3
123
124 * Thu Jan 06 2022 Stefan Berger - 0.9.2-1
125 - Release of version 0.9.2
126
127 * Wed Nov 24 2021 Stefan Berger - 0.9.1-1
128 - Release of version 0.9.1
129
130 * Wed Sep 29 2021 Stefan Berger - 0.9.0-1
131 - Release of version 0.9.0 (rev. 164)
132
133 * Wed Feb 24 2021 Stefan Berger - 0.8.0-1
134 - Release of version 0.8.0 (rev. 162)
135
136 * Fri Jul 19 2019 Stefan Berger - 0.7.0-1
137 - Release of version 0.7.0 (rev. 150)
138
139 * Mon Jan 14 2018 Stefan Berger - 0.6.0-1
140 - Release of version 0.6.0 with TPM 2.0 support
141
142 * Mon Jun 30 2014 Stefan Berger - 0.5.2-1
143 - Updated to version 0.5.2
144 - coverity fixes
145 - fixes for ARM64 using __aarch64__
146
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
149
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
152
153 * Mon Mar 25 2013 Stefan Berger - 0.5.1-18
154 - Ran autoreconf for support of aarch64
155 - Checking for __arm64__ in code
156
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
159
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
162
163 * Fri Feb 17 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.5.1-15
164 - Add dist tag as required by package guidelines
165
166 * Fri Jan 27 2012 Stefan Berger - 0.5.1-14
167 - fix gcc-4.7 compilation problem
168
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
171
172 * Tue Dec 20 2011 Dan HorĂ¡k <dan[at]danny.cz> - 0.5.1-12
173 - fix build on secondary arches
174
175 * Wed Nov 2 2011 Stefan Berger - 0.5.1-11
176 - added (lib)gmp as runtime dependency
177
178 * Sat Oct 8 2011 Stefan Berger - 0.5.1-10
179 - internal fixes; callback fixes
180
181 * Tue Aug 30 2011 Stefan Berger - 0.5.1-9
182 - new directory structure and build process
183
184 * Tue Jul 12 2011 Stefan Berger - 0.5.1-8
185 - added pkgconfig as build dependency
186 - enabling __powerpc__ build following Bz 728220
187
188 * Wed May 25 2011 Stefan Berger - 0.5.1-7
189 - increasing NVRAM area space to have enough room for certificates
190
191 * Wed May 25 2011 Stefan Berger - 0.5.1-6
192 - adding libtpms.pc pkg-config file
193
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
197 deserialization
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
201
202 * Tue Mar 08 2011 Stefan Berger - 0.5.1-4
203 - small fixes to libtpms makefile
204
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
215 runtime
216 - Extended Requires in devel package with {?_isa}
217
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
222
223 * Mon Jan 17 2011 Stefan Berger - 0.5.1-1
224 - Update version to 0.5.1
225
226 * Fri Jan 14 2011 Stefan Berger - 0.5.0-1
227 - Changes following Fedora review comments
228
229 * Thu Dec 2 2010 Stefan Berger
230 - Small tweaks after reading the FedoreCore packaging requirements
231
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