OSDN Git Service

Replace popt usage with getopt_long in efivar.c.
[android-x86/external-efivar.git] / efivar.spec.in
1 Name:           efivar
2 Version:        @@VERSION@@
3 Release:        1%{?dist}
4 Summary:        Tools to manage UEFI variables
5 License:        LGPLv2.1
6 URL:            https://github.com/rhinstaller/efivar
7 Requires:       %{name}-libs = %{version}-%{release}
8 ExclusiveArch:  %{ix86} x86_64 aarch64
9
10 BuildRequires:  popt-devel git glibc-static libabigail
11 Source0:        https://github.com/rhboot/efivar/archive/%{version}.tar.gz
12
13 %description
14 efivar provides a simple command line interface to the UEFI variable facility.
15
16 %package libs
17 Summary: Library to manage UEFI variables
18
19 %description libs
20 Library to allow for the simple manipulation of UEFI variables.
21
22 %package devel
23 Summary: Development headers for libefivar
24 Requires: %{name}-libs = %{version}-%{release}
25
26 %description devel
27 development headers required to use libefivar.
28
29 %prep
30 %setup -q -n %{name}-%{version}
31 git init
32 git config user.email "%{name}-owner@fedoraproject.org"
33 git config user.name "Fedora Ninjas"
34 git add .
35 git commit -a -q -m "%{version} baseline."
36 git am %{patches} </dev/null
37 git config --unset user.email
38 git config --unset user.name
39
40 %build
41 make libdir=%{_libdir} bindir=%{_bindir} CFLAGS="$RPM_OPT_FLAGS -flto" LDFLAGS="$RPM_LD_FLAGS -flto"
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 %makeinstall
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %check
51 %ifarch x86_64
52 make abicheck
53 %endif
54
55 %post libs -p /sbin/ldconfig
56
57 %postun libs -p /sbin/ldconfig
58
59 %files
60 %{!?_licensedir:%global license %%doc}
61 %license COPYING
62 %doc README.md
63 %{_bindir}/efivar
64 %exclude %{_bindir}/efivar-static
65 %{_mandir}/man1/*
66
67 %files devel
68 %{_mandir}/man3/*
69 %{_includedir}/*
70 %{_libdir}/*.so
71 %{_libdir}/pkgconfig/*.pc
72
73 %files libs
74 %{_libdir}/*.so.*
75
76 %changelog
77 * Tue Sep 12 2017 Peter Jones <pjones@redhat.com> - 32-1
78 - efivar 32
79 - lots of coverity fixes; mostly leaked memory and fds and the like
80 - fix sysfs pci path formats
81 - handle device paths for dns, nfit, bluetooth, wifi, emmc, btle.
82 - improved abi checking on releases
83 - Fix failures on EDIT_WRITE in edit_variable() when the variable doesn't exist
84 - Add efi_guid_ux_capsule_guid to our guids
85 - Now with %%check
86
87 * Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 31-3
88 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
89
90 * Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 31-2
91 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
92
93 * Mon Mar 06 2017 Peter Jones <pjones@redhat.com> - 31-1
94 - Update to efivar 31
95 - Work around NVMe EUI sysfs change
96 - Provide some oldish version strings we should have kept.
97 - lots of overflow checking on our pointer math in dp parsing
98 - fix major/minor device number handling in the linux code
99 - Do better formatting checks for MBR partitions
100 - Fixes for gcc 7
101
102 * Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 30-5
103 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
104
105 * Mon Oct 17 2016 Peter Jones <pjones@redhat.com> - 30-4
106 - Handle NVMe device attributes paths moving around in sysfs.
107
108 * Wed Sep 28 2016 Peter Jones <pjones@redhat.com> - 30-3
109 - Maybe even provide the *right* old linker deps.
110
111 * Tue Sep 27 2016 Peter Jones <pjones@redhat.com> - 30-2
112 - Try not to screw up SONAME stuff quite so badly.
113
114 * Tue Sep 27 2016 Peter Jones <pjones@redhat.com> - 30-1
115 - Fix efidp_*() functions with __pure__ that break with some optimizations
116 - Fix NVMe EUI parsing.
117
118 * Tue Sep 27 2016 Peter Jones <pjones@redhat.com> - 29-1
119 - Use -pie not -PIE in our linker config
120 - Fix some overflow checks for gcc < 5.x
121 - Make variable class probes other than the first one actually work
122 - Move -flto to CFLAGS
123 - Pack all of the efi device path headers
124 - Fix redundant decl of efi_guid_zero()
125
126 * Wed Aug 17 2016 Peter Jones <pjones@redhat.com> - 28-1
127 - Make our sonames always lib$FOO.1 , not lib$FOO.$VERSION .
128
129 * Tue Aug 16 2016 Peter Jones <pjones@redhat.com> - 27-1
130 - Bug fix for 086eeb17 in efivar 26.
131
132 * Thu Aug 11 2016 Peter Jones <pjones@redhat.com> - 26-1
133 - Use symmacros.h to make newer compilers happy
134 - Fix a bug in efidp_size() double-counting End nodes sometimes.
135 - Handle nonnull comparisons in the headers more gracefully.
136
137 * Wed Aug 10 2016 Peter Jones <pjones@redhat.com> - 25-1
138 - Rework version numbers.
139 - Add error tracking API.
140 - Remove use of deprecated readdir_r
141 - SATA device path fixes.
142
143 * Mon Jul 13 2015 Peter Jones <pjones@redhat.com> - 0.21-1
144 - Rename "make test" so packagers don't think it's a good idea to run it
145   during builds.
146 - Error check sizes in vars_get_variable()
147 - Fix some file size comparisons
148 - make SONAME reflect the correct values.
149 - Fix some uses of "const"
150 - Compile with -O2 by default
151 - Fix some strict-aliasing violations
152 - Fix some of the .pc files and how we do linking to work better.
153
154 * Tue Jun 02 2015 Peter Jones <pjones@redhat.com> - 0.20-1
155 - Update to 0.20
156 - Make sure tester is build with the right link order for libraries.
157 - Adjust linker order for pkg-config
158 - Work around LocateDevicePath() not grokking PcieRoot() devices properly.
159 - Rectify some missing changelog entries
160
161 * Thu May 28 2015 Peter Jones <pjones@redhat.com> - 0.19-1
162 - Update to 0.19
163 - add API from efibootmgr so fwupdate and other tools can use it.
164
165 * Wed Oct 15 2014 Peter Jones <pjones@redhat.com> - 0.15-1
166 - Update to 0.15
167 - Make 32-bit builds set variables' DataSize correctly.
168
169 * Wed Oct 08 2014 Peter Jones <pjones@redhat.com> - 0.14-1
170 - Update to 0.14
171 - add efi_id_guid_to_guid() and efi_guid_to_id_guid(), which support {ID GUID}
172   as a concept.
173 - Add some vendor specific guids to our guid list.
174 - Call "empty" "zero" now, as many other places do.  References to
175   efi_guid_is_empty() and efi_guid_empty still exist for ABI compatibility.
176 - add "efivar -L" to the man page.
177
178 * Tue Oct 07 2014 Peter Jones <pjones@redhat.com> - 0.13-1
179 - Update to 0.13:
180 - add efi_symbol_to_guid()
181 - efi_name_to_guid() will now fall back on efi_symbol_to_guid() as a last
182   resort
183 - "efivar -L" to list all the guids we know about
184 - better namespacing on libefivar.so (rename well_known_* -> efi_well_known_*)
185
186 * Thu Sep 25 2014 Peter Jones <pjones@redhat.com> - 0.12-1
187 - Update to 0.12
188
189 * Wed Aug 20 2014 Peter Jones <pjones@redhat.com> - 0.11-1
190 - Update to 0.11
191
192 * Fri May 02 2014 Peter Jones <pjones@redhat.com> - 0.10-1
193 - Update package to 0.10.
194 - Fixes a build error due to different cflags in the builders vs updstream
195   makefile.
196
197 * Fri May 02 2014 Peter Jones <pjones@redhat.com> - 0.9-0.1
198 - Update package to 0.9.
199
200 * Tue Apr 01 2014 Peter Jones <pjones@redhat.com> - 0.8-0.1
201 - Update package to 0.8 as well.
202
203 * Fri Oct 25 2013 Peter Jones <pjones@redhat.com> - 0.7-1
204 - Update package to 0.7
205 - adds --append support to the binary.
206
207 * Fri Sep 06 2013 Peter Jones <pjones@redhat.com> - 0.6-1
208 - Update package to 0.6
209 - fixes to documentation from lersek
210 - more validation of uefi guids
211 - use .xz for archives
212
213 * Thu Sep 05 2013 Peter Jones <pjones@redhat.com> - 0.5-0.1
214 - Update to 0.5
215
216 * Mon Jun 17 2013 Peter Jones <pjones@redhat.com> - 0.4-0.2
217 - Fix ldconfig invocation
218
219 * Mon Jun 17 2013 Peter Jones <pjones@redhat.com> - 0.4-0.1
220 - Initial spec file