]>
Commit | Line | Data |
---|---|---|
1 | ############################################################################### | |
2 | # IPFire.org - An Open Source Firewall Solution # | |
3 | # Copyright (C) - IPFire Development Team <info@ipfire.org> # | |
4 | ############################################################################### | |
5 | ||
6 | name = grubby | |
7 | version = 8.11 | |
8 | release = 4 | |
9 | ||
10 | groups = System/Base | |
11 | url = http://git.fedorahosted.org/git/grubby.git | |
12 | license = GPLv2+ | |
13 | summary = Command line tool for updating bootloader configs. | |
14 | ||
15 | description | |
16 | grubby is a command line tool for updating and displaying information about | |
17 | the configuration files for the grub, lilo, elilo (ia64), yaboot (powerpc) | |
18 | and zipl (s390) boot loaders. It is primarily designed to be used from scripts | |
19 | which install new kernels and need to find information about the current boot | |
20 | environment. | |
21 | end | |
22 | ||
23 | # Source tarballs must be generated from git. | |
24 | sources = %{thisapp}.tar.bz2 | |
25 | ||
26 | build | |
27 | requires | |
28 | glib2-devel | |
29 | libblkid-devel | |
30 | popt-devel | |
31 | util-linux | |
32 | end | |
33 | ||
34 | test | |
35 | make test | |
36 | end | |
37 | ||
38 | make_install_targets += mandir=%{mandir} | |
39 | ||
40 | install_cmds | |
41 | mkdir -pv %{BUILDROOT}%{prefix} | |
42 | mv -v %{BUILDROOT}{,%{prefix}}/sbin | |
43 | end | |
44 | end | |
45 | ||
46 | packages | |
47 | package %{name} | |
48 | # Pull in u-boot-tools on ARM platforms. | |
49 | if "%{DISTRO_ARCH}" == "armv7hl" | |
50 | requires += u-boot-tools | |
51 | end | |
52 | ||
53 | if "%{DISTRO_ARCH}" == "armv5tel" | |
54 | requires += u-boot-tools | |
55 | end | |
56 | ||
57 | provides | |
58 | /sbin/grubby | |
59 | /sbin/installkernel | |
60 | /sbin/new-kernel-pkg | |
61 | end | |
62 | end | |
63 | ||
64 | package %{name}-debuginfo | |
65 | template DEBUGINFO | |
66 | end | |
67 | end |