]> git.proxmox.com Git - libtpms.git/blame - dist/libtpms.spec.in
Sync libtpms.spec.in with Fedora repository
[libtpms.git] / dist / libtpms.spec.in
CommitLineData
a0098eda
CB
1# --- libtpm rpm-spec ---
2
3%define name @PACKAGE@
4%define version @VERSION@
ea5d4557 5%define release 19
a0098eda
CB
6
7# Valid crypto subsystems are 'freebl' and 'openssl'
8%define crypto_subsystem freebl
9
10# Valid build types are 'production' or 'debug'
11%define build_type production
12
13Summary: Library providing Trusted Platform Module (TPM) functionality
14Name: %{name}
15Version: %{version}
ea5d4557 16Release: %{release}%{?dist}
a0098eda
CB
17License: BSD
18Group: Development/Libraries
19Url: http://sourceforge.net/projects/ibmswtpm
20Source: http://bergerstefan.users.sourceforge.net/libtpms/%{name}-%{version}.tar.gz
ea5d4557 21
a0098eda
CB
22%if %{crypto_subsystem} == openssl
23BuildRequires: openssl-devel
24%else
25BuildRequires: nss-devel >= 3.12.9-2
26BuildRequires: nss-softokn-freebl-devel >= 3.12.9-2
27BuildRequires: nss-softokn-freebl-static >= 3.12.9-2
28BuildRequires: nss-softokn-devel >= 3.12.9-2, gmp-devel
29BuildRequires: pkgconfig gawk
30Requires: nss-softokn-freebl >= 3.12.9-2, nss-softokn >= 3.12.9-2
ea5d4557 31Requires: gmp
a0098eda
CB
32%endif
33
34%description
35A library providing TPM functionality for VMs. Targeted for integration
36into Qemu.
37
38%package devel
39Summary: Include files for libtpms
40Group: Development/Libraries
41Requires: %{name}%{?_isa} = %{version}-%{release}
42
43%description devel
44Libtpms header files and documentation.
45
46%files
47%defattr(-, root, root, -)
48%{_libdir}/%{name}.la
49%{_libdir}/%{name}.so.%{version}
50%{_libdir}/%{name}.so.0
51%doc LICENSE README CHANGES
52
53%files devel
54%defattr(-, root, root, -)
55
56%{_libdir}/%{name}.so
57%dir %{_includedir}/%{name}
58%attr(644, root, root) %{_libdir}/pkgconfig/*.pc
59%attr(644, root, root) %{_includedir}/%{name}/*.h
60%attr(644, root, root) %{_mandir}/man3/*
61
62%prep
63%setup -q
64
65%build
66
67%if %{crypto_subsystem} == openssl
68%define _with_openssl --with-openssl
69%endif
70
71%if %{build_type} == debug
72%define _enable_debug --enable-debug
73%endif
74
75%configure \
76 --disable-static \
77 --prefix=/usr \
78 --libdir=%{_libdir} \
79 %{?_with_openssl} \
80 %{?_enable_debug}
81
82make %{?_smp_mflags}
83make check
84
85%install
86install -d -m 0755 $RPM_BUILD_ROOT%{_libdir}
87install -d -m 0755 $RPM_BUILD_ROOT%{_includedir}/libtpms
88install -d -m 0755 $RPM_BUILD_ROOT%{_mandir}/man3
89
90make %{?_smp_mflags} install DESTDIR=${RPM_BUILD_ROOT}
91
92%post -p /sbin/ldconfig
93
94%postun -p /sbin/ldconfig
95
96%changelog
ea5d4557
SB
97* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-19
98- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
99
100* Mon Mar 25 2013 Stefan Berger - 0.5.1-18
101- Ran autoreconf for support of aarch64
102- Checking for __arm64__ in code
103
104* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-17
105- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
106
107* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-16
108- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
109
110* Fri Feb 17 2012 Peter Robinson <pbrobinson@fedoraproject.org> - 0.5.1-15
111- Add dist tag as required by package guidelines
112
a0098eda
CB
113* Fri Jan 27 2012 Stefan Berger - 0.5.1-14
114- fix gcc-4.7 compilation problem
115
116* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.1-13
117- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
118
119* Tue Dec 20 2011 Dan HorĂ¡k <dan[at]danny.cz> - 0.5.1-12
120- fix build on secondary arches
121
122* Wed Nov 2 2011 Stefan Berger - 0.5.1-11
123- added (lib)gmp as runtime dependency
124
125* Tue Oct 8 2011 Stefan Berger - 0.5.1-10
126- internal fixes; callback fixes
127
128* Tue Aug 30 2011 Stefan Berger - 0.5.1-9
129- new directory structure and build process
130
131* Tue Jul 12 2011 Stefan Berger - 0.5.1-8
132- added pkgconfig as build dependency
133- enabling __powerpc__ build following Bz 728220
134
135* Wed May 25 2011 Stefan Berger - 0.5.1-7
136- increasing NVRAM area space to have enough room for certificates
137
138* Wed May 25 2011 Stefan Berger - 0.5.1-6
139- adding libtpms.pc pkg-config file
140
141* Wed Apr 13 2011 Stefan Berger - 0.5.1-5
142- adding BuildRequires for nss-softokn-freebl-static
143- several libtpms-internal changes around state serialization and
144 deserialization
145- fixes to libtpms makefile (makefile-libtpms)
146- adding build_type to generate a debug or production build
147- need nss-devel to have nss-config
148
149* Tue Mar 08 2011 Stefan Berger - 0.5.1-4
150- small fixes to libtpms makefile
151
152* Fri Feb 25 2011 Stefan Berger - 0.5.1-3
153- removing release from tar ball name
154- Use {?_smp_mflags} for make rather than hardcoding it
155- Fixing post and postun scripts; removing the scripts for devel package
156- Fixing usage of defattr
157- Adding version information into the changelog headers and spaces between the changelog entries
158- Adding LICENSE, README and CHANGELOG file into tar ball and main rpm
159- Removing clean section
160- removed command to clean the build root
161- adding library version to the libries required for building and during
162 runtime
163- Extended Requires in devel package with {?_isa}
164
165* Fri Feb 18 2011 Stefan Berger - 0.5.1-2
166- make rpmlint happy by replacing tabs with spaces
167- providing a valid URL for the tgz file
168- release is now 2 -> 0.5.1-2
169
170* Mon Jan 17 2011 Stefan Berger - 0.5.1-1
171- Update version to 0.5.1
172
173* Fri Jan 14 2011 Stefan Berger - 0.5.0-1
174- Changes following Fedora review comments
175
176* Tue Dec 02 2010 Stefan Berger
177- Small tweaks after reading the FedoreCore packaging requirements
178
179* Tue Nov 16 2010 Stefan Berger
180- Created initial version of rpm spec files
181- Version of library is now 0.5.0
182- Debuginfo rpm is built but empty -- seems to be a known problem
183 Check https://bugzilla.redhat.com/show_bug.cgi?id=209316