OSDN Git Service

fix source URL
[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
11 Source0:        https://github.com/rhinstaller/efivar/releases/download/%{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" 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 * Mon Jul 13 2015 Peter Jones <pjones@redhat.com> - 0.21-1
73 - Rename "make test" so packagers don't think it's a good idea to run it
74   during builds.
75 - Error check sizes in vars_get_variable()
76 - Fix some file size comparisons
77 - make SONAME reflect the correct values.
78 - Fix some uses of "const"
79 - Compile with -O2 by default
80 - Fix some strict-aliasing violations
81 - Fix some of the .pc files and how we do linking to work better.
82
83 * Tue Jun 02 2015 Peter Jones <pjones@redhat.com> - 0.20-1
84 - Update to 0.20
85 - Make sure tester is build with the right link order for libraries.
86 - Adjust linker order for pkg-config
87 - Work around LocateDevicePath() not grokking PcieRoot() devices properly.
88 - Rectify some missing changelog entries
89
90 * Thu May 28 2015 Peter Jones <pjones@redhat.com> - 0.19-1
91 - Update to 0.19
92 - add API from efibootmgr so fwupdate and other tools can use it.
93
94 * Wed Oct 15 2014 Peter Jones <pjones@redhat.com> - 0.15-1
95 - Update to 0.15
96 - Make 32-bit builds set variables' DataSize correctly.
97
98 * Wed Oct 08 2014 Peter Jones <pjones@redhat.com> - 0.14-1
99 - Update to 0.14
100 - add efi_id_guid_to_guid() and efi_guid_to_id_guid(), which support {ID GUID}
101   as a concept.
102 - Add some vendor specific guids to our guid list.
103 - Call "empty" "zero" now, as many other places do.  References to
104   efi_guid_is_empty() and efi_guid_empty still exist for ABI compatibility.
105 - add "efivar -L" to the man page.
106
107 * Tue Oct 07 2014 Peter Jones <pjones@redhat.com> - 0.13-1
108 - Update to 0.13:
109 - add efi_symbol_to_guid()
110 - efi_name_to_guid() will now fall back on efi_symbol_to_guid() as a last
111   resort
112 - "efivar -L" to list all the guids we know about
113 - better namespacing on libefivar.so (rename well_known_* -> efi_well_known_*)
114
115 * Thu Sep 25 2014 Peter Jones <pjones@redhat.com> - 0.12-1
116 - Update to 0.12
117
118 * Wed Aug 20 2014 Peter Jones <pjones@redhat.com> - 0.11-1
119 - Update to 0.11
120
121 * Fri May 02 2014 Peter Jones <pjones@redhat.com> - 0.10-1
122 - Update package to 0.10.
123 - Fixes a build error due to different cflags in the builders vs updstream
124   makefile.
125
126 * Fri May 02 2014 Peter Jones <pjones@redhat.com> - 0.9-0.1
127 - Update package to 0.9.
128
129 * Tue Apr 01 2014 Peter Jones <pjones@redhat.com> - 0.8-0.1
130 - Update package to 0.8 as well.
131
132 * Fri Oct 25 2013 Peter Jones <pjones@redhat.com> - 0.7-1
133 - Update package to 0.7
134 - adds --append support to the binary.
135
136 * Fri Sep 06 2013 Peter Jones <pjones@redhat.com> - 0.6-1
137 - Update package to 0.6
138 - fixes to documentation from lersek
139 - more validation of uefi guids
140 - use .xz for archives
141
142 * Thu Sep 05 2013 Peter Jones <pjones@redhat.com> - 0.5-0.1
143 - Update to 0.5
144
145 * Mon Jun 17 2013 Peter Jones <pjones@redhat.com> - 0.4-0.2
146 - Fix ldconfig invocation
147
148 * Mon Jun 17 2013 Peter Jones <pjones@redhat.com> - 0.4-0.1
149 - Initial spec file