2014-10-01 07:20:23 +00:00
|
|
|
#
|
|
|
|
# spec file for package efivar
|
|
|
|
#
|
|
|
|
# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: efivar
|
2014-10-31 10:20:55 +00:00
|
|
|
Version: 0.15
|
2014-10-01 07:20:23 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: Tools to manage UEFI variables
|
|
|
|
License: LGPL-2.1
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Url: https://github.com/vathpela/efivar
|
2014-10-31 10:20:55 +00:00
|
|
|
Source0: https://github.com/vathpela/efivar/releases/download/%{version}/%{name}-%{version}.tar.bz2
|
2014-10-01 07:20:23 +00:00
|
|
|
Patch0: efivar-suse-build.patch
|
|
|
|
BuildRequires: pkg-config
|
2014-10-31 10:20:55 +00:00
|
|
|
BuildRequires: popt-devel
|
2014-10-01 07:20:23 +00:00
|
|
|
Requires: libefivar0 = %{version}-%{release}
|
|
|
|
|
|
|
|
%description
|
|
|
|
efivar provides a simple command line interface to the UEFI variable facility.
|
|
|
|
|
|
|
|
%package -n libefivar0
|
2014-10-31 10:20:55 +00:00
|
|
|
Summary: Library to manage UEFI variables
|
|
|
|
Group: Development/Libraries/Other
|
2014-10-01 07:20:23 +00:00
|
|
|
|
|
|
|
%description -n libefivar0
|
|
|
|
Library to allow for the simple manipulation of UEFI variables.
|
|
|
|
|
|
|
|
%package devel
|
2014-10-31 10:20:55 +00:00
|
|
|
Summary: Development headers for libefivar
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: libefivar0 = %{version}-%{release}
|
2014-10-01 07:20:23 +00:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
development headers required to use libefivar.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
%patch0 -p1
|
|
|
|
|
|
|
|
%build
|
|
|
|
make libdir=%{_libdir} bindir=%{_bindir} OPT_FLAGS="$RPM_OPT_FLAGS"
|
|
|
|
|
|
|
|
%install
|
|
|
|
make DESTDIR=%{buildroot} libdir=%{_libdir} install
|
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf $RPM_BUILD_ROOT
|
|
|
|
|
|
|
|
%post -n libefivar0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun -n libefivar0 -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc
|
|
|
|
%{_bindir}/efivar
|
|
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_mandir}/man3/*
|
|
|
|
%{_includedir}/*
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/*.pc
|
|
|
|
|
|
|
|
%files -n libefivar0
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%changelog
|