OSDN Git Service

makeguids: free our input buffer.
[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 popt-static git glibc-static libabigail
11 Source0:        https://github.com/rhinstaller/efivar/releases/download/efivar-%{version}/efivar-%{version}.tar.bz2
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"
42
43 %install
44 rm -rf $RPM_BUILD_ROOT
45 %makeinstall
46
47 %clean
48 rm -rf $RPM_BUILD_ROOT
49
50 %post libs -p /sbin/ldconfig
51
52 %postun libs -p /sbin/ldconfig
53
54 %files
55 %{!?_licensedir:%global license %%doc}
56 %license COPYING
57 %doc README.md
58 %{_bindir}/efivar
59 %exclude %{_bindir}/efivar-static
60 %{_mandir}/man1/*
61
62 %files devel
63 %{_mandir}/man3/*
64 %{_includedir}/*
65 %{_libdir}/*.so
66 %{_libdir}/pkgconfig/*.pc
67
68 %files libs
69 %{_libdir}/*.so.*
70
71 %changelog
72 * Tue Sep 27 2016 Peter Jones <pjones@redhat.com> - 30-1
73 - Fix efidp_*() functions with __pure__ that break with some optimizations
74 - Fix NVMe EUI parsing.
75
76 * Tue Sep 27 2016 Peter Jones <pjones@redhat.com> - 29-1
77 - Use -pie not -PIE in our linker config
78 - Fix some overflow checks for gcc < 5.x
79 - Make variable class probes other than the first one actually work
80 - Move -flto to CFLAGS
81 - Pack all of the efi device path headers
82 - Fix redundant decl of efi_guid_zero()
83
84 * Wed Aug 17 2016 Peter Jones <pjones@redhat.com> - 28-1
85 - Make our sonames always lib$FOO.1 , not lib$FOO.$VERSION .
86
87 * Tue Aug 16 2016 Peter Jones <pjones@redhat.com> - 27-1
88 - Bug fix for 086eeb17 in efivar 26.
89
90 * Thu Aug 11 2016 Peter Jones <pjones@redhat.com> - 26-1
91 - Use symmacros.h to make newer compilers happy
92 - Fix a bug in efidp_size() double-counting End nodes sometimes.
93 - Handle nonnull comparisons in the headers more gracefully.
94
95 * Wed Aug 10 2016 Peter Jones <pjones@redhat.com> - 25-1
96 - Rework version numbers.
97 - Add error tracking API.
98 - Remove use of deprecated readdir_r
99 - SATA device path fixes.
100
101 * Mon Jul 13 2015 Peter Jones <pjones@redhat.com> - 0.21-1
102 - Rename "make test" so packagers don't think it's a good idea to run it
103   during builds.
104 - Error check sizes in vars_get_variable()
105 - Fix some file size comparisons
106 - make SONAME reflect the correct values.
107 - Fix some uses of "const"
108 - Compile with -O2 by default
109 - Fix some strict-aliasing violations
110 - Fix some of the .pc files and how we do linking to work better.
111
112 * Tue Jun 02 2015 Peter Jones <pjones@redhat.com> - 0.20-1
113 - Update to 0.20
114 - Make sure tester is build with the right link order for libraries.
115 - Adjust linker order for pkg-config
116 - Work around LocateDevicePath() not grokking PcieRoot() devices properly.
117 - Rectify some missing changelog entries
118
119 * Thu May 28 2015 Peter Jones <pjones@redhat.com> - 0.19-1
120 - Update to 0.19
121 - add API from efibootmgr so fwupdate and other tools can use it.
122
123 * Wed Oct 15 2014 Peter Jones <pjones@redhat.com> - 0.15-1
124 - Update to 0.15
125 - Make 32-bit builds set variables' DataSize correctly.
126
127 * Wed Oct 08 2014 Peter Jones <pjones@redhat.com> - 0.14-1
128 - Update to 0.14
129 - add efi_id_guid_to_guid() and efi_guid_to_id_guid(), which support {ID GUID}
130   as a concept.
131 - Add some vendor specific guids to our guid list.
132 - Call "empty" "zero" now, as many other places do.  References to
133   efi_guid_is_empty() and efi_guid_empty still exist for ABI compatibility.
134 - add "efivar -L" to the man page.
135
136 * Tue Oct 07 2014 Peter Jones <pjones@redhat.com> - 0.13-1
137 - Update to 0.13:
138 - add efi_symbol_to_guid()
139 - efi_name_to_guid() will now fall back on efi_symbol_to_guid() as a last
140   resort
141 - "efivar -L" to list all the guids we know about
142 - better namespacing on libefivar.so (rename well_known_* -> efi_well_known_*)
143
144 * Thu Sep 25 2014 Peter Jones <pjones@redhat.com> - 0.12-1
145 - Update to 0.12
146
147 * Wed Aug 20 2014 Peter Jones <pjones@redhat.com> - 0.11-1
148 - Update to 0.11
149
150 * Fri May 02 2014 Peter Jones <pjones@redhat.com> - 0.10-1
151 - Update package to 0.10.
152 - Fixes a build error due to different cflags in the builders vs updstream
153   makefile.
154
155 * Fri May 02 2014 Peter Jones <pjones@redhat.com> - 0.9-0.1
156 - Update package to 0.9.
157
158 * Tue Apr 01 2014 Peter Jones <pjones@redhat.com> - 0.8-0.1
159 - Update package to 0.8 as well.
160
161 * Fri Oct 25 2013 Peter Jones <pjones@redhat.com> - 0.7-1
162 - Update package to 0.7
163 - adds --append support to the binary.
164
165 * Fri Sep 06 2013 Peter Jones <pjones@redhat.com> - 0.6-1
166 - Update package to 0.6
167 - fixes to documentation from lersek
168 - more validation of uefi guids
169 - use .xz for archives
170
171 * Thu Sep 05 2013 Peter Jones <pjones@redhat.com> - 0.5-0.1
172 - Update to 0.5
173
174 * Mon Jun 17 2013 Peter Jones <pjones@redhat.com> - 0.4-0.2
175 - Fix ldconfig invocation
176
177 * Mon Jun 17 2013 Peter Jones <pjones@redhat.com> - 0.4-0.1
178 - Initial spec file