diff --git a/README.md b/README.md index 16ca42a..8533ba0 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,4 @@ # efivar +Tools and library to manipulate EFI variables. + diff --git a/efivar.spec b/efivar.spec new file mode 100644 index 0000000..e6651bf --- /dev/null +++ b/efivar.spec @@ -0,0 +1,81 @@ +Name: efivar +Version: 0.14 +Release: 1mamba +Summary: Tools and library to manipulate EFI variables +Group: System/Kernel and Hardware +Vendor: openmamba +Distribution: openmamba +Packager: Silvan Calarco +URL: https://github.com/vathpela/efivar +## GITSOURCE https://github.com/vathpela/efivar.git 0.14 +Source: https://github.com/vathpela/efivar.git/%{version}/efivar-%{version}.tar.bz2 +License: LGPL +## AUTOBUILDREQ-BEGIN +BuildRequires: glibc-devel +BuildRequires: libpopt-devel +## AUTOBUILDREQ-END +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +BuildRoot: %{_tmppath}/%{name}-%{version}-root + +%description +Tools and library to manipulate EFI variables. + +%package -n lib%{name} +Group: System/Libraries +Summary: Shared libraries for %{name} + +%description -n lib%{name} +This package contains shared libraries for %{name}. + +%package -n lib%{name}-devel +Group: Development/Libraries +Summary: Development files for %{name} +Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release} +Requires: pkg-config + +%description -n lib%{name}-devel +This package contains libraries and header files for developing applications that use %{name}. + + +%debug_package + +%prep +%setup -q + +%build +%make \ + libdir=%{_libdir} + +%install +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" +%makeinstall \ + libdir=%{_libdir} + +%clean +[ "%{buildroot}" != / ] && rm -rf "%{buildroot}" + +%post -n lib%{name} -p /sbin/ldconfig +%postun -n lib%{name} -p /sbin/ldconfig + +%files +%defattr(-,root,root) +%{_bindir}/efivar +%{_mandir}/man1/efivar.1* + +%files -n lib%{name} +%defattr(-,root,root) +%{_libdir}/libefivar.so.* +%doc COPYING + +%files -n lib%{name}-devel +%defattr(-,root,root) +%{_includedir}/efivar-guids.h +%{_includedir}/efivar.h +%{_libdir}/libefivar.so +%{_libdir}/pkgconfig/efivar.pc +%{_mandir}/man3/efi_*.3* +%doc README + +%changelog +* Thu Oct 09 2014 Silvan Calarco 0.14-1mamba +- package created using the webbuild interface