]> git.pld-linux.org Git - packages/efivar.git/blob - efivar.spec
- updated to 39
[packages/efivar.git] / efivar.spec
1 #
2 # Conditional build:
3 %bcond_without  static          # efivar-static binary (static version of efivar)
4 %bcond_without  static_libs     # static libraries
5 #
6 Summary:        Tools to manage UEFI variables
7 Summary(pl.UTF-8):      Narzędzia do zarządzania zmiennymi UEFI
8 Name:           efivar
9 Version:        35
10 Release:        1
11 License:        LGPL v2.1
12 Group:          Applications/System
13 #Source0Download: https://github.com/rhinstaller/efivar/releases
14 Source0:        https://github.com/rhinstaller/efivar/releases/download/%{version}/%{name}-%{version}.tar.bz2
15 # Source0-md5:  53da18ea0cf7bba1fd9edf3098037edf
16 Patch0:         %{name}-static.patch
17 URL:            https://github.com/rhinstaller/efivar
18 BuildRequires:  linux-libc-headers >= 7:3.3
19 BuildRequires:  popt-devel
20 %if %{with static}
21 BuildRequires:  glibc-static
22 BuildRequires:  popt-static
23 %endif
24 Requires:       %{name}-libs = %{version}-%{release}
25 # Beside (U)EFI architectures, additionally allow x32 userspace for x86_64 boot arch
26 ExclusiveArch:  %{ix86} %{x8664} x32 %{arm} aarch64 ia64
27 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28
29 %description
30 efivar provides a simple command line interface to the UEFI variable
31 facility.
32
33 %description -l pl.UTF-8
34 efivar zapewnia prosty interfejs linii poleceń do zmiennych UEFI.
35
36 %package libs
37 Summary:        Library to manage UEFI variables
38 Summary(pl.UTF-8):      Biblioteka do zarządzania zmiennymi UEFI
39 Group:          Libraries
40
41 %description libs
42 Library to manage UEFI variables.
43
44 %description libs -l pl.UTF-8
45 Biblioteka do zarządzania zmiennymi UEFI.
46
47 %package devel
48 Summary:        Header files for efivar library
49 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki efivar
50 Group:          Development/Libraries
51 Requires:       %{name}-libs = %{version}-%{release}
52
53 %description devel
54 Header files for efivar library.
55
56 %description devel -l pl.UTF-8
57 Pliki nagłówkowe biblioteki efivar.
58
59 %package static
60 Summary:        Static efivar library
61 Summary(pl.UTF-8):      Statyczna biblioteka efivar
62 Group:          Development/Libraries
63 Requires:       %{name}-devel = %{version}-%{release}
64
65 %description static
66 Static efivar library.
67
68 %description static -l pl.UTF-8
69 Statyczna biblioteka efivar.
70
71 %prep
72 %setup -q
73 %patch0 -p1
74
75 %build
76 %{__make} -j1 all static \
77         CC="%{__cc}" \
78         CFLAGS="%{rpmcflags}" \
79         LDFLAGS="%{rpmldflags} -Wl,-z,muldefs" \
80         %{!?with_static:STATICBINTARGETS=} \
81         %{!?with_static_libs:STATICLIBTARGETS=} \
82         libdir=%{_libdir}
83
84 %install
85 rm -rf $RPM_BUILD_ROOT
86
87 %{__make} install \
88         DESTDIR=$RPM_BUILD_ROOT \
89         %{!?with_static:STATICBINTARGETS=} \
90         %{!?with_static_libs:STATICLIBTARGETS=} \
91         libdir=%{_libdir}
92
93 %clean
94 rm -rf $RPM_BUILD_ROOT
95
96 %post   libs -p /sbin/ldconfig
97 %postun libs -p /sbin/ldconfig
98
99 %files
100 %defattr(644,root,root,755)
101 %doc README.md TODO
102 %attr(755,root,root) %{_bindir}/efivar
103 %if %{with static}
104 %attr(755,root,root) %{_bindir}/efivar-static
105 %endif
106 %{_mandir}/man1/efivar.1*
107
108 %files libs
109 %defattr(644,root,root,755)
110 %attr(755,root,root) %{_libdir}/libefiboot.so.1.*
111 %attr(755,root,root) %ghost %{_libdir}/libefiboot.so.1
112 %attr(755,root,root) %{_libdir}/libefivar.so.1.*
113 %attr(755,root,root) %ghost %{_libdir}/libefivar.so.1
114
115 %files devel
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libefiboot.so
118 %attr(755,root,root) %{_libdir}/libefivar.so
119 %{_includedir}/efivar
120 %{_pkgconfigdir}/efiboot.pc
121 %{_pkgconfigdir}/efivar.pc
122 %{_mandir}/man3/efi_*.3*
123
124 %if %{with static_libs}
125 %files static
126 %defattr(644,root,root,755)
127 %{_libdir}/libefiboot.a
128 %{_libdir}/libefivar.a
129 %endif
This page took 0.066065 seconds and 3 git commands to generate.