fwupd.spec.in 2.84 KB
Newer Older
1
2
3
4
5
6
7
8
%define alphatag                #ALPHATAG#

Summary:   Firmware update daemon
Name:      fwupd
Version:   #VERSION#
Release:   0.#BUILD#%{?alphatag}%{?dist}
License:   GPLv2+
URL:       https://github.com/hughsie/fwupd
9
Source0:   http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
10
11
12
13
14
15

BuildRequires: docbook-utils
BuildRequires: gettext
BuildRequires: glib2-devel
BuildRequires: intltool
BuildRequires: libgudev1-devel
Richard Hughes's avatar
Richard Hughes committed
16
BuildRequires: colord-devel >= 1.0.0
17
BuildRequires: polkit-devel >= 0.103
18
BuildRequires: libgcab1-devel
19
BuildRequires: sqlite-devel
Richard Hughes's avatar
Richard Hughes committed
20
BuildRequires: gpgme-devel
21
BuildRequires: systemd
22
BuildRequires: libsoup-devel
23
BuildRequires: libarchive-devel
Richard Hughes's avatar
Richard Hughes committed
24
BuildRequires: gobject-introspection-devel
25
BuildRequires: libappstream-glib-devel >= 0.3.6
26
BuildRequires: gcab
27
28

%ifarch x86_64 %{ix86} aarch64
29
BuildRequires: fwupdate-devel >= 0.5
30
%endif
31
32
33
34

Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
35

36
37
Obsoletes: fwupd-sign

38
%description
39
fwupd is a daemon to allow session software to update device firmware.
40

41
42
43
44
45
46
47
%package devel
Summary: Development package for %{name}
Requires: %{name} = %{version}-%{release}

%description devel
Files for development with %{name}.

48
49
50
51
52
%prep
%setup -q

%build
%configure \
53
        --disable-static        \
54
55
56
%ifnarch x86_64 %{ix86} aarch64
        --disable-uefi          \
%endif
57
58
        --disable-rpath         \
        --disable-silent-rules  \
59
60
61
62
63
64
        --disable-dependency-tracking

make %{?_smp_mflags}

%install
make install DESTDIR=$RPM_BUILD_ROOT
65
66
67
find %{buildroot} -name '*.la' -exec rm -f {} ';'

%find_lang %{name}
68

69
70
%post
/sbin/ldconfig
Richard Hughes's avatar
Richard Hughes committed
71
%systemd_post fwupd.service
72
73

%preun
Richard Hughes's avatar
Richard Hughes committed
74
75
%systemd_preun fwupd.service

76
77
78
%postun
/sbin/ldconfig
%systemd_postun_with_restart fwupd.service
79
80

%files -f %{name}.lang
81
82
%doc README.md AUTHORS NEWS
%license COPYING
83
%config(noreplace)%{_sysconfdir}/fwupd.conf
84
85
%dir %{_libexecdir}/fwupd
%{_libexecdir}/fwupd/fwupd
86
%{_bindir}/fwupdmgr
87
%{_sysconfdir}/pki/fwupd
88
%{_sysconfdir}/pki/fwupd-metadata
89
90
91
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.fwupd.conf
%{_datadir}/dbus-1/interfaces/org.freedesktop.fwupd.xml
%{_datadir}/polkit-1/actions/org.freedesktop.fwupd.policy
92
%{_datadir}/polkit-1/rules.d/org.freedesktop.fwupd.rules
93
94
%{_datadir}/dbus-1/system-services/org.freedesktop.fwupd.service
%{_datadir}/man/man1/fwupdmgr.1.gz
95
96
%{_unitdir}/fwupd-offline-update.service
%{_unitdir}/fwupd.service
97
%{_unitdir}/system-update.target.wants/*.service
98
%dir %{_localstatedir}/lib/fwupd
99
100
%{_libdir}/lib*.so.*
%{_libdir}/girepository-1.0/*.typelib
101
102
103
%dir %{_localstatedir}/cache/app-info
%dir %{_localstatedir}/cache/app-info/icons
%dir %{_localstatedir}/cache/app-info/xmls
Richard Hughes's avatar
Richard Hughes committed
104
/usr/lib/udev/rules.d/*.rules
105
106
107
108
109
110

%files devel
%{_includedir}/fwupd-1
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/*.gir
111
112
113
114
115

%changelog
* #LONGDATE# Richard Hughes <richard@hughsie.com> #VERSION#-0.#BUILD##ALPHATAG#
- Update from git