VirtualBox

source: vbox/trunk/src/libs/libtpms-0.9.0/dist/libtpms.spec@ 97642

Last change on this file since 97642 was 91612, checked in by vboxsync, 3 years ago

src/libs: Export libtpms-0.9.0, bugref:10078

File size: 6.5 KB
Line 
1# --- libtpm rpm-spec ---
2
3%define name libtpms
4%define version 0.9.0
5%define release 0~dev1
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
15Summary: Library providing Trusted Platform Module (TPM) functionality
16Name: %{name}
17Version: %{version}
18Release: %{release}%{?dist}
19License: BSD
20Group: Development/Libraries
21Url: http://github.com/stefanberger/libtpms
22Source: libtpms-%{version}.tar.gz
23Provides: libtpms-%{crypto_subsystem} = %{version}-%{release}
24
25%if "%{crypto_subsystem}" == "openssl"
26BuildRequires: openssl-devel
27%else
28BuildRequires: nss-devel >= 3.12.9-2
29BuildRequires: nss-softokn-freebl-devel >= 3.12.9-2
30%if 0%{?rhel} > 6 || 0%{?fedora} >= 13
31BuildRequires: nss-softokn-freebl-static >= 3.12.9-2
32%endif
33BuildRequires: nss-softokn-devel >= 3.12.9-2, gmp-devel
34%endif
35BuildRequires: pkgconfig gawk sed
36BuildRequires: automake autoconf libtool bash coreutils gcc-c++
37
38%if "%{crypto_subsystem}" == "openssl"
39Requires: openssl
40%else
41Requires: nss-softokn-freebl >= 3.12.9-2, nss-softokn >= 3.12.9-2
42%endif
43Requires: gmp
44
45%description
46A library providing TPM functionality for VMs. Targeted for integration
47into Qemu.
48
49%package devel
50Summary: Include files for libtpms
51Group: Development/Libraries
52Requires: %{name}%{?_isa} = %{version}-%{release}
53
54%description devel
55Libtpms 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"
86CFLAGS=-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
96make %{?_smp_mflags}
97
98%check
99make check
100
101%install
102install -d -m 0755 $RPM_BUILD_ROOT%{_libdir}
103install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/libtpms
104install -d -m 0755 $RPM_BUILD_ROOT%{_mandir}/man3
105
106make %{?_smp_mflags} install DESTDIR=${RPM_BUILD_ROOT}
107
108rm -f $RPM_BUILD_ROOT%{_libdir}/libtpms.la
109
110%post -p /sbin/ldconfig
111
112%postun -p /sbin/ldconfig
113
114%changelog
115* Wed Sep 29 2021 Stefan Berger - 0.9.0-1
116- Release of version 0.9.0 (rev. 164)
117
118* Wed Feb 24 2021 Stefan Berger - 0.8.0-1
119- Release of version 0.8.0 (rev. 162)
120
121* Fri Jul 19 2019 Stefan Berger - 0.7.0-1
122- Release of version 0.7.0 (rev. 150)
123
124* Mon Jan 14 2018 Stefan Berger - 0.6.0-1
125- Release of version 0.6.0 with TPM 2.0 support
126
127* Mon Jun 30 2014 Stefan Berger - 0.5.2-1
128- Updated to version 0.5.2
129- coverity fixes
130- fixes for ARM64 using __aarch64__
131
132* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-20.1
133- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
134
135* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-19
136- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
137
138* Mon Mar 25 2013 Stefan Berger - 0.5.1-18
139- Ran autoreconf for support of aarch64
140- Checking for __arm64__ in code
141
142* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-17
143- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
144
145* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-16
146- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
147
148* Fri Feb 17 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.5.1-15
149- Add dist tag as required by package guidelines
150
151* Fri Jan 27 2012 Stefan Berger - 0.5.1-14
152- fix gcc-4.7 compilation problem
153
154* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-13
155- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
156
157* Tue Dec 20 2011 Dan Horák <dan[at]danny.cz> - 0.5.1-12
158- fix build on secondary arches
159
160* Wed Nov 2 2011 Stefan Berger - 0.5.1-11
161- added (lib)gmp as runtime dependency
162
163* Sat Oct 8 2011 Stefan Berger - 0.5.1-10
164- internal fixes; callback fixes
165
166* Tue Aug 30 2011 Stefan Berger - 0.5.1-9
167- new directory structure and build process
168
169* Tue Jul 12 2011 Stefan Berger - 0.5.1-8
170- added pkgconfig as build dependency
171- enabling __powerpc__ build following Bz 728220
172
173* Wed May 25 2011 Stefan Berger - 0.5.1-7
174- increasing NVRAM area space to have enough room for certificates
175
176* Wed May 25 2011 Stefan Berger - 0.5.1-6
177- adding libtpms.pc pkg-config file
178
179* Wed Apr 13 2011 Stefan Berger - 0.5.1-5
180- adding BuildRequires for nss-softokn-freebl-static
181- several libtpms-internal changes around state serialization and
182 deserialization
183- fixes to libtpms makefile (makefile-libtpms)
184- adding build_type to generate a debug or production build
185- need nss-devel to have nss-config
186
187* Tue Mar 08 2011 Stefan Berger - 0.5.1-4
188- small fixes to libtpms makefile
189
190* Fri Feb 25 2011 Stefan Berger - 0.5.1-3
191- removing release from tar ball name
192- Use {?_smp_mflags} for make rather than hardcoding it
193- Fixing post and postun scripts; removing the scripts for devel package
194- Fixing usage of defattr
195- Adding version information into the changelog headers and spaces between the changelog entries
196- Adding LICENSE, README and CHANGELOG file into tar ball and main rpm
197- Removing clean section
198- removed command to clean the build root
199- adding library version to the libraries required for building and during
200 runtime
201- Extended Requires in devel package with {?_isa}
202
203* Fri Feb 18 2011 Stefan Berger - 0.5.1-2
204- make rpmlint happy by replacing tabs with spaces
205- providing a valid URL for the tgz file
206- release is now 2 -> 0.5.1-2
207
208* Mon Jan 17 2011 Stefan Berger - 0.5.1-1
209- Update version to 0.5.1
210
211* Fri Jan 14 2011 Stefan Berger - 0.5.0-1
212- Changes following Fedora review comments
213
214* Thu Dec 2 2010 Stefan Berger
215- Small tweaks after reading the FedoreCore packaging requirements
216
217* Tue Nov 16 2010 Stefan Berger
218- Created initial version of rpm spec files
219- Version of library is now 0.5.0
220- Debuginfo rpm is built but empty -- seems to be a known problem
221 Check https://bugzilla.redhat.com/show_bug.cgi?id=209316
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette