trousers/trousers.spec

97 lines
2.6 KiB
RPMSpec

%define majver %(echo %version | cut -d. -f1-3)
Name: trousers
Version: 0.3.15
Release: 1mamba
Summary: An open-source TCG Software Stack implementation
Group: System/Libraries
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://sourceforge.net/projects/trousers/
Source: http://downloads.sourceforge.net/project/trousers/trousers/%{majver}/trousers-%{version}.tar.gz
Source1: tcsd.service
Patch0: trousers-0.3.13-gcc-5.patch
Patch1: trousers-0.3.14-fno-fcommon.patch
License: Common Public Attribution License 1.0
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libopenssl-devel
## AUTOBUILDREQ-END
%description
TrouSerS is an open-source TCG Software Stack implementation, created and released by IBM.
%package devel
Group: Development/Libraries
Summary: Development files for %{name}
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
%description devel
This package contains libraries and header files for developing applications that use %{name}.
%debug_package
%prep
%setup -q
./bootstrap.sh
%build
%configure
%make
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/tcsd.service
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/tcsd.conf
%{_sbindir}/tcsd
%{_libdir}/libtspi.so.*
%{_unitdir}/tcsd.service
%{_mandir}/man5/tcsd.conf.5*
%{_mandir}/man8/tcsd.8*
%doc AUTHORS LICENSE
%files devel
%defattr(-,root,root)
%dir %{_includedir}/trousers
%{_includedir}/trousers/*.h
%dir %{_includedir}/tss
%{_includedir}/tss/*.h
%{_libdir}/libtddl.a
%{_libdir}/libtspi.la
%{_libdir}/libtspi.so
%{_mandir}/man3/*
%doc ChangeLog README README.selinux TODO
%changelog
* Mon Jun 28 2021 Automatic Build System <autodist@mambasoft.it> 0.3.15-1mamba
- automatic version update by autodist
* Sat Nov 28 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.14-1mamba
- update to 0.3.14
* Sat Aug 20 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.13-3mamba
- added patch for gcc 5
* Sun Jul 24 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.13-2mamba
- rebuilt with libopenssl 1.0.2h
* Sat May 24 2014 Automatic Build System <autodist@mambasoft.it> 0.3.13-1mamba
- automatic update by autodist
* Sun Aug 25 2013 Automatic Build System <autodist@mambasoft.it> 0.3.11.2-1mamba
- update to 0.3.11.2
* Mon Jun 25 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 0.3.9-1mamba
- package created by autospec