diff --git a/libtpms.spec b/libtpms.spec index 3329ec7..79426d0 100644 --- a/libtpms.spec +++ b/libtpms.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # +%define lname libtpms0 Name: libtpms Version: 0.5.1 @@ -33,19 +34,19 @@ BuildRequires: mozilla-nspr-devel A library providing TPM functionality for VMs. Targeted for integration into Qemu. -%package -n libtpms0 +%package -n %lname Summary: Library providing Trusted Platform Module (TPM) functionality License: BSD-3-Clause Group: Development/Libraries -%description -n libtpms0 +%description -n %lname A library providing TPM functionality for VMs. Targeted for integration into Qemu. %package devel Summary: Include files for libtpms Group: Development/Libraries -Requires: %{name} = %{version} +Requires: %{lname} = %{version} Requires: libopenssl-devel mozilla-nspr-devel %description devel @@ -72,11 +73,11 @@ install -d -m 0755 $RPM_BUILD_ROOT%{_mandir}/man3 make %{?_smp_mflags} install DESTDIR=${RPM_BUILD_ROOT} -%post -n libtpms0 -p /sbin/ldconfig +%post -n %lname -p /sbin/ldconfig -%postun -n libtpms0 -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig -%files -n libtpms0 +%files -n %lname %defattr(-, root, root, -) %doc LICENSE README CHANGES %{_libdir}/%{name}.so.%{version}