]> git.ipfire.org Git - people/ms/ipfire-3.x.git/blobdiff - grubby/grubby.nm
docbook2X: New package.
[people/ms/ipfire-3.x.git] / grubby / grubby.nm
index 92c1a58605909cd1baf0bd38a336bb28dac516c2..33274c141353cd26f0b90b7188f8f45a1e605aee 100644 (file)
@@ -4,8 +4,8 @@
 ###############################################################################
 
 name       = grubby
-version    = 8.3
-release    = 1
+version    = 8.11
+release    = 3
 
 groups     = System/Base
 url        = http://git.fedorahosted.org/git/grubby.git
@@ -20,7 +20,8 @@ description
        environment.
 end
 
-sources = %{thisapp}.tar.bz2
+# Source tarballs must be generated from git.
+sources    = %{thisapp}.tar.bz2
 
 build
        requires
@@ -34,11 +35,27 @@ build
                make test
        end
 
-       make_install_targets += mandir=/usr/share/man
+       make_install_targets += mandir=%{mandir}
+
+       install_cmds
+               mkdir -pv %{BUILDROOT}%{prefix}
+               mv -v %{BUILDROOT}{,%{prefix}}/sbin
+       end
 end
 
 packages
        package %{name}
+               # Pull in u-boot-tools on ARM platforms.
+               if "%{DISTRO_PLATFORM}" == "arm"
+                       requires += u-boot-tools
+               end
+
+               provides
+                       /sbin/grubby
+                       /sbin/installkernel
+                       /sbin/new-kernel-pkg
+               end
+       end
 
        package %{name}-debuginfo
                template DEBUGINFO