X-Git-Url: http://git.pld-linux.org/?p=packages%2Fefivar.git;a=blobdiff_plain;f=efivar.spec;h=b9cb49bc9d5820d5f89a3e5106b3c195cd47b0f1;hp=95e0d4d405ae975671781454e2f018bca93d24e3;hb=7d8a73df228d246304a5d343b94509dd04bdf9f8;hpb=f8710baa9fe27b2d3b36a02081e7e293a2a3b5ae diff --git a/efivar.spec b/efivar.spec index 95e0d4d..b9cb49b 100644 --- a/efivar.spec +++ b/efivar.spec @@ -12,6 +12,7 @@ Group: Applications/System Source0: https://github.com/rhinstaller/efivar/archive/%{version}/%{name}-%{version}.tar.gz # Source0-md5: 9b2bc790c267614b46b9c9c6528629d6 Patch0: %{name}-build.patch +Patch1: %{name}-static.patch URL: https://github.com/rhinstaller/efivar BuildRequires: popt-devel Requires: %{name}-libs = %{version}-%{release} @@ -64,12 +65,13 @@ Statyczna biblioteka efivar. %prep %setup -q %patch0 -p1 +%patch1 -p1 %build %{__make} \ CC="%{__cc}" \ CFLAGS="%{rpmcflags}" \ - %{?with_static_libs:LIBTARGETS="libefivar.so.0 libefiboot.so.0 libefivar.a libefiboot.a"} \ + %{!?with_static_libs:STATICLIBTARGETS=} \ libdir=%{_libdir} %install @@ -77,7 +79,7 @@ rm -rf $RPM_BUILD_ROOT %{__make} install \ DESTDIR=$RPM_BUILD_ROOT \ - %{?with_static_libs:LIBTARGETS="libefivar.so.0 libefiboot.so.0 libefivar.a libefiboot.a"} \ + %{!?with_static_libs:STATICLIBTARGETS=} \ libdir=%{_libdir} %clean @@ -94,8 +96,10 @@ rm -rf $RPM_BUILD_ROOT %files libs %defattr(644,root,root,755) -%attr(755,root,root) %{_libdir}/libefiboot.so.0 -%attr(755,root,root) %{_libdir}/libefivar.so.0 +%attr(755,root,root) %{_libdir}/libefiboot.so.0.* +%attr(755,root,root) %ghost %{_libdir}/libefiboot.so.0 +%attr(755,root,root) %{_libdir}/libefivar.so.0.* +%attr(755,root,root) %ghost %{_libdir}/libefivar.so.0 %files devel %defattr(644,root,root,755)