]> git.pld-linux.org Git - packages/fwupdate.git/blame - fwupdate.spec
- updated to 0.4
[packages/fwupdate.git] / fwupdate.spec
CommitLineData
3b56ddd5
JB
1#
2# Conditional build:
3%bcond_with pesign # EFI apps signing with pesign
4#
5Summary: Tools to manage UEFI firmware updates
6Summary(pl.UTF-8): Narzędzia do zarządzania aktualizacjami firmware'u przez UEFI
7Name: fwupdate
a3b339a3 8Version: 0.4
3b56ddd5
JB
9Release: 1
10License: GPL v2
11Group: Libraries
a3b339a3
JB
12Source0: https://github.com/rhinstaller/fwupdate/archive/%{version}/%{name}-%{version}.tar.gz
13# Source0-md5: b016615c506aba60c5a2de3de7ce1bab
3b56ddd5
JB
14Patch0: %{name}-open.patch
15URL: https://github.com/rhinstaller/fwupdate
a3b339a3 16BuildRequires: efivar-devel >= 0.19
3b56ddd5
JB
17BuildRequires: gnu-efi
18%{?with_pesign:BuildRequires: pesign}
19BuildRequires: popt-devel
20BuildRequires: sed >= 4.0
21Requires: %{name}-libs = %{version}-%{release}
a3b339a3 22#Requires(post): efibootmgr >= 0.12
19b8d83c 23ExclusiveArch: %{ix86} %{x8664} arm aarch64 ia64
3b56ddd5
JB
24BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
25
26%define efidir pld
27
28%description
29fwupdate provides a simple command line interface to the UEFI firmware
30updates.
31
32%description -l pl.UTF-8
33fwupdate zapewnia prosty interfejs linii poleceń do aktualizacji
34firmware'u przez UEFI.
35
36%package libs
37Summary: Library to manage UEFI firmware updates
38Summary(pl.UTF-8): Biblioteka do zarządzania aktualizacjami firmware'u przez UEFI
39Group: Libraries
a3b339a3 40Requires: efivar-libs >= 0.19
3b56ddd5
JB
41
42%description libs
43Library to manage UEFI firmware updates.
44
45%description libs -l pl.UTF-8
46Biblioteka do zarządzania aktualizacjami firmware'u przez UEFI.
47
48%package devel
49Summary: Header files for libfwup library
50Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libfwup
51Group: Development/Libraries
52Requires: %{name}-libs = %{version}-%{release}
a3b339a3 53Requires: efivar-devel >= 0.19
3b56ddd5
JB
54
55%description devel
56Header files for libfwup library.
57
58%description devel -l pl.UTF-8
59Pliki nagłówkowe biblioteki libfwup.
60
61%prep
a3b339a3 62%setup -q
3b56ddd5
JB
63%patch0 -p1
64
3b56ddd5
JB
65%if %{without pesign}
66%{__sed} -i -e 's/pesign/cp $< $@ \&\& : &/' efi/Makefile
67%endif
68
69%build
70%{__make} \
71%ifarch x32
72 ARCH=x86_64 \
73%endif
74 CC="%{__cc}" \
75 CFLAGS="%{rpmcflags}" \
76 EFIDIR=%{efidir} \
a3b339a3 77 GNUEFIDIR=%{_libdir} \
3b56ddd5
JB
78 libdir=%{_libdir}
79
80%install
81rm -rf $RPM_BUILD_ROOT
82
83%{__make} install \
84%ifarch x32
85 ARCH=x86_64 \
86%endif
87 DESTDIR=$RPM_BUILD_ROOT \
88 EFIDIR=%{efidir} \
a3b339a3 89 libdir=%{_libdir}
3b56ddd5
JB
90
91# empty
92%{__rm} $RPM_BUILD_ROOT%{_localedir}/en/*.po
93
94%clean
95rm -rf $RPM_BUILD_ROOT
96
97%if 0
98# Fedora script below - but we don't want to hardcode /dev/sda
99%post
100efibootmgr -b 1337 -B >/dev/null || :
101efibootmgr -C -b 1337 -d /dev/sda -p 1 -l /EFI/%{efidir}/fwupdate.efi -L "Firmware Update" >/dev/null || :
102%endif
103
104%post libs -p /sbin/ldconfig
105%postun libs -p /sbin/ldconfig
106
107%files
108%defattr(644,root,root,755)
a3b339a3 109%doc TODO
3b56ddd5 110%attr(755,root,root) %{_bindir}/fwupdate
a3b339a3 111%{_mandir}/man1/fwupdate.1*
3b56ddd5
JB
112%dir /boot/efi/EFI/%{efidir}
113/boot/efi/EFI/%{efidir}/fwupdate.efi
114%dir /boot/efi/EFI/%{efidir}/fw
115
116%files libs
117%defattr(644,root,root,755)
a3b339a3 118%attr(755,root,root) %{_libdir}/libfwup.so.0.4
3b56ddd5
JB
119
120%files devel
121%defattr(644,root,root,755)
122%attr(755,root,root) %{_libdir}/libfwup.so
123%{_includedir}/fwup.h
124%{_pkgconfigdir}/fwup.pc
a3b339a3
JB
125%{_mandir}/man3/fwup_*.3*
126%{_mandir}/man3/libfwup.3*
127%{_mandir}/man3/libfwup.h.3*
This page took 0.738003 seconds and 4 git commands to generate.