]>
Commit | Line | Data |
---|---|---|
fe6ca997 MB |
1 | Summary: Flash firmware on to Samsung Galaxy S devices |
2 | Name: Heimdall | |
3 | Version: 1.4.1 | |
4 | Release: 1 | |
5 | License: MIT | |
6 | Group: Development/Tools | |
7 | Source0: https://github.com/Benjamin-Dobell/Heimdall/archive/v1.4.1/%{name}-%{version}.tar.gz | |
8 | # Source0-md5: 22c911e9042f5ed8fd90cbeeb9589015 | |
9 | Source1: %{name}.desktop | |
10 | Patch0: %{name}-udev-rules.patch | |
11 | URL: http://glassechidna.com.au/heimdall/ | |
12 | BuildRequires: QtGui-devel | |
13 | BuildRequires: autoconf >= 2.59 | |
14 | BuildRequires: automake >= 1:1.10 | |
15 | BuildRequires: libstdc++-devel | |
16 | BuildRequires: libusb-devel >= 1.0.8 | |
17 | BuildRequires: pkgconfig | |
18 | BuildRequires: qt4-build | |
19 | BuildRequires: qt4-qmake | |
20 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
21 | ||
22 | %description | |
23 | Heimdall is a cross-platform open-source tool suite used to flash | |
24 | firmware (aka ROMs) onto Samsung mobile devices. | |
25 | ||
26 | %package frontend | |
27 | Summary: Qt4 based frontend for Heimdall | |
28 | Group: X11/Development/Tools | |
29 | Requires: %{name} = %{version}-%{release} | |
30 | ||
31 | %description frontend | |
32 | Heimdall is a cross-platform open-source tool suite used to flash | |
33 | firmware (aka ROMs) onto Samsung mobile devices. | |
34 | ||
35 | This package provides Qt4 based frontend for Heimdall. | |
36 | ||
37 | %prep | |
38 | %setup -q | |
39 | %patch0 -p1 | |
40 | ||
41 | sed -i -e 's|/usr/local/bin|%{_bindir}|g' heimdall-frontend/heimdall-frontend.pro | |
42 | ||
43 | # remove unneeded files | |
44 | rm -rf libusbx-1.0 | |
45 | rm -rf Win32 | |
46 | rm -rf heimdall-frontend/lib/win32 | |
47 | rm -rf heimdall-frontend/include | |
48 | rm -rf heimdall/autom4te.cache | |
49 | rm -rf libpit/autom4te.cache | |
50 | rm -rf OSX | |
51 | rm -f heimdall/postremove-pak | |
52 | rm -f heimdall/postinstall-pak | |
53 | ||
54 | %build | |
55 | cd libpit | |
56 | %configure | |
57 | %{__make} | |
58 | cd .. | |
59 | ||
60 | cd heimdall | |
61 | %{__aclocal} -I m4 | |
62 | %{__autoconf} | |
63 | %{__autoheader} | |
64 | %{__automake} | |
65 | %configure | |
66 | %{__make} | |
67 | cd .. | |
68 | ||
69 | cd heimdall-frontend | |
70 | qmake-qt4 | |
71 | %{__make} | |
72 | cd .. | |
73 | ||
74 | %install | |
75 | rm -rf $RPM_BUILD_ROOT | |
76 | install -d $RPM_BUILD_ROOT%{_desktopdir} | |
77 | ||
78 | %{__make} -C heimdall install \ | |
79 | DESTDIR=$RPM_BUILD_ROOT | |
80 | ||
81 | %{__make} -C heimdall-frontend install \ | |
82 | INSTALL_ROOT=$RPM_BUILD_ROOT | |
83 | ||
84 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}/heimdall.desktop | |
85 | ||
86 | %clean | |
87 | rm -rf $RPM_BUILD_ROOT | |
88 | ||
89 | %files | |
90 | %defattr(644,root,root,755) | |
91 | %attr(755,root,root) %{_bindir}/heimdall | |
92 | /lib/udev/rules.d/60-heimdall.rules | |
93 | ||
94 | %files frontend | |
95 | %defattr(644,root,root,755) | |
96 | %attr(755,root,root) %{_bindir}/heimdall-frontend | |
97 | %{_desktopdir}/heimdall.desktop |