- new auto/th/efivar-0.15-1
authorJakub Bogusz <qboosh@pld-linux.org>
Sun, 19 Apr 2015 08:57:24 +0000 (10:57 +0200)
committerJakub Bogusz <qboosh@pld-linux.org>
Sun, 19 Apr 2015 08:57:24 +0000 (10:57 +0200)
efivar.spec [new file with mode: 0644]

diff --git a/efivar.spec b/efivar.spec
new file mode 100644 (file)
index 0000000..ff921b1
--- /dev/null
@@ -0,0 +1,109 @@
+#
+# Conditional build:
+%bcond_without static_libs     # don't build static libraries
+#
+Summary:       Tools to manage UEFI variables
+Summary(pl.UTF-8):     Narzędzia do zarządzania zmiennymi UEFI
+Name:          efivar
+Version:       0.15
+Release:       1
+License:       LGPL v2.1
+Group:         Applications/System
+Source0:       https://github.com/rhinstaller/efivar/archive/%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 23ecc021d79977e9fcf851bdba889aa0
+URL:           https://github.com/rhinstaller/efivar
+BuildRequires: popt-devel
+Requires:      %{name}-libs = %{version}-%{release}
+# Beside (U)EFI architectures, additionally allow x32 userspace for x86_64 boot arch
+ExclusiveArch: %{ix86} %{x8664} x32 arm aarch64 ia64
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+efivar provides a simple command line interface to the UEFI variable
+facility.
+
+%description -l pl.UTF-8
+efivar zapewnia prosty interfejs linii poleceń do zmiennych UEFI.
+
+%package libs
+Summary:       Library to manage UEFI variables
+Summary(pl.UTF-8):     Biblioteka do zarządzania zmiennymi UEFI
+Group:         Libraries
+
+%description libs
+Library to manage UEFI variables.
+
+%description libs -l pl.UTF-8
+Biblioteka do zarządzania zmiennymi UEFI.
+
+%package devel
+Summary:       Header files for efivar library
+Summary(pl.UTF-8):     Pliki nagłówkowe biblioteki efivar
+Group:         Development/Libraries
+Requires:      %{name}-libs = %{version}-%{release}
+
+%description devel
+Header files for efivar library.
+
+%description devel -l pl.UTF-8
+Pliki nagłówkowe biblioteki efivar.
+
+%package static
+Summary:       Static efivar library
+Summary(pl.UTF-8):     Statyczna biblioteka efivar
+Group:         Development/Libraries
+Requires:      %{name}-devel = %{version}-%{release}
+
+%description static
+Static efivar library.
+
+%description static -l pl.UTF-8
+Statyczna biblioteka efivar.
+
+%prep
+%setup -q
+
+%build
+%{__make} \
+       CC="%{__cc}" \
+       CFLAGS="%{rpmcflags}" \
+       %{?with_static_libs:LIBTARGETS="libefivar.so.0 libefivar.a"} \
+       libdir=%{_libdir}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT \
+       %{?with_static_libs:LIBTARGETS="libefivar.so.0 libefivar.a"} \
+       libdir=%{_libdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%post  libs -p /sbin/ldconfig
+%postun        libs -p /sbin/ldconfig
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/efivar
+%{_mandir}/man1/efivar.1*
+
+%files libs
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libefivar.so.0
+
+%files devel
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_libdir}/libefivar.so
+%{_includedir}/efivar.h
+%{_includedir}/efivar-guids.h
+%{_pkgconfigdir}/efivar.pc
+%{_mandir}/man3/efi_*.3*
+
+%if %{with static_libs}
+%files static
+%defattr(644,root,root,755)
+%{_libdir}/libefivar.a
+%endif
This page took 0.229554 seconds and 4 git commands to generate.