Accepting request 394096 from home:jengelh:branches:security

- Correct package naming to be in line with shared library guideline
- Remove unused systemd build and runtime dependencies

OBS-URL: https://build.opensuse.org/request/show/394096
OBS-URL: https://build.opensuse.org/package/show/security/tpm2-0-tss?expand=0&rev=19
This commit is contained in:
Marcus Meissner 2016-05-07 08:25:53 +00:00 committed by Git OBS Bridge
parent d52c5d119f
commit 47c374c550
3 changed files with 16 additions and 9 deletions

View File

@ -1 +1 @@
libtss2
libtss2-0

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri May 6 19:45:29 UTC 2016 - jengelh@inai.de
- Correct package naming to be in line with shared library guideline
- Remove unused systemd build and runtime dependencies
-------------------------------------------------------------------
Fri Apr 8 07:54:36 UTC 2016 - dimstar@opensuse.org

View File

@ -29,10 +29,8 @@ BuildRequires: automake
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: pkg-config
BuildRequires: systemd-rpm-macros
Requires(pre): pwdutils
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{?systemd_requires}
%description
The tpm2-0-tss package provides a TPM 2.0 TSS implementation.
@ -41,18 +39,21 @@ The tpm2-0-tss package provides a TPM 2.0 TSS implementation.
Summary: Development headers for the TSS (TCG Software Stack) access library for TPM 2.0 chips
Group: Development/Libraries/C and C++
Requires: glibc-devel
Requires: libtss2 = %{version}
Requires: libtss2-0 = %{version}
%description devel
This package provides the development files for the libtss2 library
for accessing TPM 2.0 chips.
%package -n libtss2
%package -n libtss2-0
Summary: TSS (TCG Software Stack) access library for TPM 2.0 chip
Group: System/Libraries
Requires: trousers
# Non-SLPP package name from earlier
Obsoletes: libtss2 < %version-%release
Provides: libtss2 = %version-%release
%description -n libtss2
%description -n libtss2-0
This package provides the library to access the TSS (TCG Software Stack) for
accessing TPM 2.0 chips.
@ -68,8 +69,8 @@ make %{?_smp_mflags} PTHREAD_LDFLAGS=-pthread
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
%post -n libtss2 -p /sbin/ldconfig
%postun -n libtss2 -p /sbin/ldconfig
%post -n libtss2-0 -p /sbin/ldconfig
%postun -n libtss2-0 -p /sbin/ldconfig
%files
%defattr(-,root,root)
@ -84,7 +85,7 @@ find %{buildroot} -type f -name "*.la" -delete -print
##only available in static form
#%{_libdir}/libtddl.a
%files -n libtss2
%files -n libtss2-0
%defattr(-,root,root)
/%{_libdir}/libtss2.so.*
/%{_libdir}/libtctidevice.so.*