Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-12:Update
trousers
trousers.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File trousers.spec of Package trousers
# # spec file for package trousers # # Copyright (c) 2022 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # %define tpmstatedir %{_localstatedir}/lib/tpm BuildRequires: gtk2-devel BuildRequires: libtool BuildRequires: openssl-devel BuildRequires: pkgconfig Name: trousers URL: http://trousers.sourceforge.net/ Version: 0.3.13 Release: 0 Summary: TSS (TCG Software Stack) access daemon for a TPM chip License: BSD-3-Clause Group: Productivity/Security Source0: http://downloads.sourceforge.net/project/trousers/trousers/0.3.13/%name-%version.tar.gz Source1: tcsd.init Source2: baselibs.conf Source3: 91-trousers.rules Patch1: bsc1164472.patch BuildRequires: udev BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %install_info_prereq pwdutils %description The trousers package provides a TSS implementation through the help of a user-space daemon, the tcsd, and a library Trousers aims to be compliant to the 1.1b and 1.2 TSS specifications as available from the Trusted Computing website http://www.trustedcomputinggroup.org/. The package needs the /dev/tpm device file to be present on your system. It is a character device file major 10 minor 224, 0600 tss:tss. %package devel Summary: TSS (TCG Software Stack) access daemon for a TPM chip Group: Development/Libraries/C and C++ Requires: glibc-devel Requires: libopenssl-devel Requires: libtspi1 = %version Requires: trousers = %version %description devel The trousers package provides a TSS implementation through the help of a user-space daemon, the tcsd, and a library Trousers aims to be compliant to the 1.1b and 1.2 TSS specifications as available from the Trusted Computing website http://www.trustedcomputinggroup.org/. The package needs the /dev/tpm device file to be present on your system. It is a character device file major 10 minor 224, 0600 tss:tss. %package -n libtspi1 Summary: TSS (TCG Software Stack) access daemon for a TPM chip Group: Productivity/Security Requires: trousers %description -n libtspi1 The trousers package provides a TSS implementation through the help of a user-space daemon, the tcsd, and a library Trousers aims to be compliant to the 1.1b and 1.2 TSS specifications as available from the Trusted Computing website http://www.trustedcomputinggroup.org/. The package needs the /dev/tpm device file to be present on your system. It is a character device file major 10 minor 224, 0600 tss:tss. %prep %setup -q cp %{S:1} . %patch1 -p1 %build CC=gcc CFLAGS="$RPM_OPT_FLAGS -Wall -fno-strict-aliasing" SHARE=/usr/share DOC=%_defaultdocdir export CC CFLAGS autoreconf -i -f %configure --libdir=/%{_lib} --disable-static --with-pic --with-gui=none --disable-usercheck %{__make} %{?jobs:-j%jobs} %install make DESTDIR=$RPM_BUILD_ROOT install mkdir -p $RPM_BUILD_ROOT/var/lib/tpm mkdir -p $RPM_BUILD_ROOT/etc/init.d cp -p tcsd.init $RPM_BUILD_ROOT/etc/init.d/tcsd chmod 755 $RPM_BUILD_ROOT/etc/init.d/tcsd ln -s /etc/init.d/tcsd $RPM_BUILD_ROOT/usr/sbin/rctcsd cp -a dist/system.data* $RPM_BUILD_ROOT/var/lib/tpm %{__mkdir_p} %{buildroot}%{_libdir} %{__ln_s} -v /%{_lib}/$(readlink %{buildroot}/%{_lib}/libtspi.so) %{buildroot}%{_libdir}/libtspi.so %{__rm} -v %{buildroot}/%{_lib}/libtspi.{so,la} %{__mv} -v %{buildroot}/%{_lib}/*.a %{buildroot}%{_libdir} # we want to run tcsd as tss user right away. therefore we need to install a # suitable udev rule file. mkdir -p %{buildroot}%{_udevrulesdir} install -m 0644 %{SOURCE3} %{buildroot}%{_udevrulesdir} %clean rm -rf $RPM_BUILD_ROOT %pre /usr/sbin/groupadd -g 98 tss 2> /dev/null || : /usr/sbin/useradd -u 98 -o -g tss -s /bin/false -c "TSS daemon" -d /var/lib/tpm tss 2> /dev/null || : %post %_bindir/udevadm trigger -s tpm || : # bsc#1164472: adjust potential root ownership to allow tcsd to open the file # as unprivileged user. Be careful not to follow a symlink target. system_data=%{tpmstatedir}/system.data if [ -e "${system_data}" ]; then chown --no-dereference tss:tss %{tpmstatedir}/system.data fi %postun %insserv_cleanup %preun %stop_on_removal %post -n libtspi1 -p /sbin/ldconfig %postun -n libtspi1 -p /sbin/ldconfig %files %defattr(-,root,root) %config(noreplace) %attr(640,root,tss) %{_sysconfdir}/tcsd.conf %doc README README.selinux AUTHORS ChangeLog LICENSE NICETOHAVES TODO doc/* %{_mandir}/man5/* %{_mandir}/man8/* %attr(750,tss,tss) %{tpmstatedir} /usr/sbin/tcsd /usr/sbin/rctcsd /etc/init.d/tcsd %{_udevrulesdir}/91-trousers.rules %files devel %defattr(-,root,root) %{_includedir}/trousers %{_includedir}/tss %{_mandir}/man3/* %{_libdir}/*.so #only available in static form %{_libdir}/libtddl.a %files -n libtspi1 %defattr(-,root,root) /%{_lib}/*.so.* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor