]>
Commit | Line | Data |
---|---|---|
3a2f623c JB |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without static_libs # don't build static libraries | |
4 | # | |
5 | Summary: Tools to manage UEFI variables | |
6 | Summary(pl.UTF-8): Narzędzia do zarządzania zmiennymi UEFI | |
7 | Name: efivar | |
7744232a JB |
8 | Version: 0.17 |
9 | # unfortunately the last tagged version is 0.15; for later, look changelog of dp branch | |
10 | %define gitref a49b223a42e07989f775aca55eb7f2e9d1b6e82b | |
3a2f623c JB |
11 | Release: 1 |
12 | License: LGPL v2.1 | |
13 | Group: Applications/System | |
7744232a JB |
14 | Source0: https://github.com/rhinstaller/efivar/archive/%{gitref}/%{name}-%{version}.tar.gz |
15 | # Source0-md5: 390dd8192e288116fc17597fbe4baef4 | |
3a2f623c JB |
16 | URL: https://github.com/rhinstaller/efivar |
17 | BuildRequires: popt-devel | |
18 | Requires: %{name}-libs = %{version}-%{release} | |
19 | # Beside (U)EFI architectures, additionally allow x32 userspace for x86_64 boot arch | |
20 | ExclusiveArch: %{ix86} %{x8664} x32 arm aarch64 ia64 | |
21 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
22 | ||
23 | %description | |
24 | efivar provides a simple command line interface to the UEFI variable | |
25 | facility. | |
26 | ||
27 | %description -l pl.UTF-8 | |
28 | efivar zapewnia prosty interfejs linii poleceń do zmiennych UEFI. | |
29 | ||
30 | %package libs | |
31 | Summary: Library to manage UEFI variables | |
32 | Summary(pl.UTF-8): Biblioteka do zarządzania zmiennymi UEFI | |
33 | Group: Libraries | |
34 | ||
35 | %description libs | |
36 | Library to manage UEFI variables. | |
37 | ||
38 | %description libs -l pl.UTF-8 | |
39 | Biblioteka do zarządzania zmiennymi UEFI. | |
40 | ||
41 | %package devel | |
42 | Summary: Header files for efivar library | |
43 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki efivar | |
44 | Group: Development/Libraries | |
45 | Requires: %{name}-libs = %{version}-%{release} | |
46 | ||
47 | %description devel | |
48 | Header files for efivar library. | |
49 | ||
50 | %description devel -l pl.UTF-8 | |
51 | Pliki nagłówkowe biblioteki efivar. | |
52 | ||
53 | %package static | |
54 | Summary: Static efivar library | |
55 | Summary(pl.UTF-8): Statyczna biblioteka efivar | |
56 | Group: Development/Libraries | |
57 | Requires: %{name}-devel = %{version}-%{release} | |
58 | ||
59 | %description static | |
60 | Static efivar library. | |
61 | ||
62 | %description static -l pl.UTF-8 | |
63 | Statyczna biblioteka efivar. | |
64 | ||
65 | %prep | |
7744232a | 66 | %setup -q -n %{name}-%{gitref} |
3a2f623c JB |
67 | |
68 | %build | |
69 | %{__make} \ | |
70 | CC="%{__cc}" \ | |
71 | CFLAGS="%{rpmcflags}" \ | |
72 | %{?with_static_libs:LIBTARGETS="libefivar.so.0 libefivar.a"} \ | |
73 | libdir=%{_libdir} | |
74 | ||
75 | %install | |
76 | rm -rf $RPM_BUILD_ROOT | |
77 | ||
78 | %{__make} install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT \ | |
80 | %{?with_static_libs:LIBTARGETS="libefivar.so.0 libefivar.a"} \ | |
81 | libdir=%{_libdir} | |
82 | ||
83 | %clean | |
84 | rm -rf $RPM_BUILD_ROOT | |
85 | ||
86 | %post libs -p /sbin/ldconfig | |
87 | %postun libs -p /sbin/ldconfig | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
91 | %doc README | |
92 | %attr(755,root,root) %{_bindir}/efivar | |
93 | %{_mandir}/man1/efivar.1* | |
94 | ||
95 | %files libs | |
96 | %defattr(644,root,root,755) | |
97 | %attr(755,root,root) %{_libdir}/libefivar.so.0 | |
98 | ||
99 | %files devel | |
100 | %defattr(644,root,root,755) | |
101 | %attr(755,root,root) %{_libdir}/libefivar.so | |
7744232a | 102 | %{_includedir}/efivar |
3a2f623c JB |
103 | %{_pkgconfigdir}/efivar.pc |
104 | %{_mandir}/man3/efi_*.3* | |
105 | ||
106 | %if %{with static_libs} | |
107 | %files static | |
108 | %defattr(644,root,root,755) | |
109 | %{_libdir}/libefivar.a | |
110 | %endif |